[asterisk-bugs] [JIRA] (ASTERISK-23244) [patch] testsuite: run-local fails to recognize modules
Walter Doekes (JIRA)
noreply at issues.asterisk.org
Wed Feb 5 03:37:03 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214841#comment-214841 ]
Walter Doekes commented on ASTERISK-23244:
------------------------------------------
... like these:
{noformat}
$ find . -name run-test -or -name \*.py | xargs grep -F .directories
./tests/channels/SIP/sip_tls_register/run-test: self.keysdir = "%s%s" % (self.ast[0].base, self.ast[0].directories['astkeydir'])
./tests/channels/SIP/sip_tls_register/run-test: self.etcdir = "%s%s" % (self.ast[0].base, self.ast[0].directories['astetcdir'])
./tests/cdr/cdr-tests.py: self.test_object.ast[0].directories['astlogdir'], "cdrtest_local"))
./tests/cdr/cdr-tests.py: self.test_object.ast[0].directories['astlogdir'],
./tests/cdr/cdr-tests.py: self.test_object.ast[0].directories['astlogdir'],
./tests/cdr/sqlite3/cdr_sqlite3.py: ast_instance.directories['astetcdir']))
./tests/cdr/sqlite3/cdr_sqlite3.py: ast_instance.directories['astlogdir'],
./tests/apps/mixmonitor_audiohook_inherit/run-test: self.ast[0].directories['astspooldir'], "monitor/testaudio1.raw")
./tests/pbx/callerid_match/run-test: (self.ast[0].base, self.ast[0].directories["astspooldir"]))
./tests/pbx/call-files/run-test: (self.ast[0].base, self.ast[0].directories["astspooldir"]))
./tests/fax/sip/gateway_mix2/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/voxfax_g711/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[1].base, self.ast[1].directories['astdatadir']))
./tests/fax/sip/gateway_timeout2/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_g711_t38/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_mix3/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_native_t38/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_timeout1/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_no_t38/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_mix4/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_timeout4/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_timeout5/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_mix1/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_timeout3/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_t38_g711/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/sip/gateway_native_t38_ced/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/pjsip/t38/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/pjsip/gateway_native_t38/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./tests/fax/pjsip/gateway_t38_g711/run-test: shutil.copy("%s/send.tiff" % (os.path.dirname(os.path.realpath(__file__)),), "%s%s" % (self.ast[0].base, self.ast[0].directories['astdatadir']))
./lib/python/asterisk/cdr.py: ast_instance.directories['astlogdir'],
./lib/python/asterisk/cel.py: self.test_object.ast[0].directories['astlogdir'],
./lib/python/asterisk/asterisk.py: self.directories = {}
./lib/python/asterisk/asterisk.py: self.directories[var] = val
./lib/python/asterisk/voicemail.py: self.voicemail_directory = (self.__ast.directories['astspooldir'] +
./lib/python/asterisk/voicemail.py: file_path = (self.__ast.base + self.__ast.directories['astetcdir'] +
./lib/python/asterisk/test_config.py: if "astmoddir" not in Dependency.ast.directories:
./lib/python/asterisk/test_config.py: module = "%s/%s.so" % (Dependency.ast.directories["astmoddir"], name)
{noformat}
> [patch] testsuite: run-local fails to recognize modules
> -------------------------------------------------------
>
> Key: ASTERISK-23244
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23244
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Tests/testsuite
> Affects Versions: SVN
> Reporter: Corey Farrell
> Attachments: issueA23244_testsuite-run-locals-local-modules.patch, testsuite-run-local.patch
>
>
> When lib/python/asterisk/test_config.py checks for an asterisk module, it fails to adjust path by $AST_TEST_ROOT. This prevents asterisk modules from being found from within run-local.
> Additionally when 'run-local setup' configures asterisk, it does not enable dev-mode, TEST_FRAMEWORK or DONT_OPTIMIZE. This change can be avoided by running configure yourself before run-local setup, but a large number of tests require TEST_FRAMEWORK. Since run-local doesn't currently work, now seems like a good time to set reasonable defaults.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list