[asterisk-bugs] [JIRA] (ASTERISK-23244) [patch] testsuite: run-local fails to recognize modules

Corey Farrell (JIRA) noreply at issues.asterisk.org
Thu Feb 6 10:41:03 CST 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Corey Farrell updated ASTERISK-23244:
-------------------------------------

    Attachment: testsuite-run-local-r2.patch

testsuite-run-local-r2.patch is what I believe is the lowest impact way to get run-local working.

Prefixing .directories with self.localtest_root caused problems since it's included in self.base.  It made it impossible to fix the tests that use ast.base + ast.directories["..."].

Module dependencies are checked before the asterisk instance folder structure is created, so it has to be treated differently than .directories for run-local but not runtests.py.  This is why I created self.original_astmoddir.

I've tested this with tests/channels/SIP and tests/cdr in both local and system mode.
                
> [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, testsuite-run-local-r2.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