[asterisk-scf-commits] asterisk-scf/integration/test-utf.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Apr 6 17:57:11 CDT 2011
branch "master" has been updated
via b369e703bd13c9e99afb65e84c7aa6fbcff5526e (commit)
from 96e4a7757c342197c6c9254b1a561cdb168c6a66 (commit)
Summary of changes:
src/UtfConfigurationIf.ice | 8 +++++++-
src/UtfTestMockConfigurator.py | 14 ++++++++++++++
src/UtfTestPythonConfig.py | 19 +++++++++++++++++--
3 files changed, 38 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit b369e703bd13c9e99afb65e84c7aa6fbcff5526e
Author: Ken Hunt <ken.hunt at digium.com>
Date: Wed Apr 6 17:56:50 2011 -0500
Minor cleanup. Copyright headers, comments, etc.
diff --git a/src/UtfConfigurationIf.ice b/src/UtfConfigurationIf.ice
index eaf4b5a..ab2a02d 100644
--- a/src/UtfConfigurationIf.ice
+++ b/src/UtfConfigurationIf.ice
@@ -1,7 +1,7 @@
/*
* Asterisk SCF -- An open-source communications framework.
*
- * Copyright (C) 2010, Digium, Inc.
+ * Copyright (C) 2010-2011, Digium, Inc.
*
* See http://www.asterisk.org for more information about
* the Asterisk SCF project. Please do not directly contact
@@ -16,6 +16,12 @@
#pragma once
+//////////////////////////////////////
+// This file defines a test interface
+// for a simple configuration item.
+// Used for verifying correct handling
+// of UTF strings.
+
#include "ConfigurationIf.ice"
module AsteriskSCF
diff --git a/src/UtfTestMockConfigurator.py b/src/UtfTestMockConfigurator.py
index 4974063..fc58ad4 100644
--- a/src/UtfTestMockConfigurator.py
+++ b/src/UtfTestMockConfigurator.py
@@ -1,5 +1,19 @@
#!/usr/bin/env python
+# Asterisk SCF -- An open-source communications framework.
+#
+# Copyright (C) 2010-2011, Digium, Inc.
+#
+# See http://www.asterisk.org for more information about
+# the Asterisk SCF project. Please do not directly contact
+# any of the maintainers of this project for assistance;
+# the project provides a web site, mailing lists and IRC
+# channels for your use.
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License Version 2. See the LICENSE.txt file
+# at the top of the source tree.
+
# UTF-8 Testing mock configurator
# Bring in the common configuration infrastructure
diff --git a/src/UtfTestPythonConfig.py b/src/UtfTestPythonConfig.py
index c208c3f..acec12a 100644
--- a/src/UtfTestPythonConfig.py
+++ b/src/UtfTestPythonConfig.py
@@ -1,5 +1,19 @@
#!/usr/bin/env python
+# Asterisk SCF -- An open-source communications framework.
+#
+# Copyright (C) 2010-2011, Digium, Inc.
+#
+# See http://www.asterisk.org for more information about
+# the Asterisk SCF project. Please do not directly contact
+# any of the maintainers of this project for assistance;
+# the project provides a web site, mailing lists and IRC
+# channels for your use.
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License Version 2. See the LICENSE.txt file
+# at the top of the source tree.
+
# UTF-8 Testing of Python configurator
# Bring in the common configuration infrastructure
@@ -13,6 +27,7 @@ Ice.loadSlice('-I. --all TestUtfConfigurationIf.ice')
Ice.loadSlice('-I. --all LoggerIf.ice')
import AsteriskSCF.System.Configuration.UtfTest.V1
+# Get the command line options.
usage = "usage: %prog [options] arg1 arg2"
parser = OptionParser(usage=usage)
parser.add_option("--c", "--config", metavar="FILE",
@@ -26,7 +41,7 @@ parser.add_option("--Ice.Config", metavar="FILE",
if options.configfile:
configfile=options.configfile
-# Make a configurator application and let it run
+# Make a configurator-like application and let it run
iceapp = UtfTestMockConfigurator.ConfiguratorStub(configfile)
# UtfTestMockConfigurator class is NOT dervied from Ice.Application,
@@ -34,7 +49,7 @@ iceapp = UtfTestMockConfigurator.ConfiguratorStub(configfile)
iceapp.run(sys.argv)
print >> sys.stdout, "Ice app completed."
-# I am purposely not letting the communicator shutdown() operation get called.
+# I am purposely preventing the call to communicator shutdown().
# It hangs when on Windows when this script is invoked via std::system.
# val=iceapp.shutdown() # <<< HANGS
-----------------------------------------------------------------------
--
asterisk-scf/integration/test-utf.git
More information about the asterisk-scf-commits
mailing list