[asterisk-commits] pabelanger: testsuite/asterisk/trunk r1495 - in /asterisk/trunk: ./ asttest/ ...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 12 13:36:28 CDT 2011


Author: pabelanger
Date: Thu May 12 13:36:24 2011
New Revision: 1495

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1495
Log:
Rename option --test-name to -n

Also create a reserved option for astest.

Modified:
    asterisk/trunk/asttest/asttest.c
    asterisk/trunk/lib/python/asterisk/TestCase.py
    asterisk/trunk/runtests.py
    asterisk/trunk/tests/agi/exit_status/   (props changed)

Modified: asterisk/trunk/asttest/asttest.c
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/asttest.c?view=diff&rev=1495&r1=1494&r2=1495
==============================================================================
--- asterisk/trunk/asttest/asttest.c (original)
+++ asterisk/trunk/asttest/asttest.c Thu May 12 13:36:24 2011
@@ -55,6 +55,7 @@
 		"  -v <version>   Specify the version of asterisk we are testing against.  If\n"
 		"                 not specified, the version.h file from the specified asterisk\n"
 		"                 path will be usedi to determine the version number.\n"
+		"  -n <name>      Reserved.\n"
 		"\n"
 		, prog_name, prog_name);
 }
@@ -81,8 +82,8 @@
 	opts->log_filename = default_log_filename;
 	opts->asterisk_path = "asterisk";
 
-	/* parse options */	
-	while ((c = getopt(argc, argv, "l:a:s:v:wh")) != -1) {
+	/* parse options */
+	while ((c = getopt(argc, argv, "l:a:s:v:n:wh")) != -1) {
 		switch (c) {
 		case 'l':
 			opts->log_filename = optarg;
@@ -92,6 +93,9 @@
 			break;
 		case 'a':
 			opts->asterisk_path = optarg;
+			break;
+		case 'n':
+			/* Reserved */
 			break;
 		case 's':
 			opts->single_test_mode = optarg;

Modified: asterisk/trunk/lib/python/asterisk/TestCase.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/TestCase.py?view=diff&rev=1495&r1=1494&r2=1495
==============================================================================
--- asterisk/trunk/lib/python/asterisk/TestCase.py (original)
+++ asterisk/trunk/lib/python/asterisk/TestCase.py Thu May 12 13:36:24 2011
@@ -31,7 +31,7 @@
         parser = OptionParser()
         parser.add_option("-v", "--version", dest="ast_version",
                 help="Asterisk version string")
-        parser.add_option("--test-name", dest="test_name",
+        parser.add_option("-n", dest="test_name",
                 help="Test name")
         parser.add_option("--valgrind", action="store_true",
                 dest="valgrind", default=False,

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=1495&r1=1494&r2=1495
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Thu May 12 13:36:24 2011
@@ -147,7 +147,7 @@
         cmd = [
             "%s/run-test" % self.test_name,
             "-v", str(self.ast_version),
-            "--test-name", str(self.test_name)
+            "-n", str(self.test_name)
         ]
         if self.options.valgrind:
             cmd.append("--valgrind")

Propchange: asterisk/trunk/tests/agi/exit_status/
            ('svn:mergeinfo' removed)




More information about the asterisk-commits mailing list