Index: run-local =================================================================== --- run-local (revision 4663) +++ run-local (working copy) @@ -22,7 +22,9 @@ cd .. # The user may have already run ./configure and make if [ ! -f config.status ]; then - ./configure + ./configure --enable-dev-mode + make menuselect.makeopts + menuselect/menuselect --enable DONT_OPTIMIZE --enable TEST_FRAMEWORK fi make make install samples DESTDIR="$HERE/astroot" Index: tests/dynamic-modules/run-test =================================================================== --- tests/dynamic-modules/run-test (revision 4663) +++ tests/dynamic-modules/run-test (working copy) @@ -25,7 +25,8 @@ self.create_asterisk() def check_file(self, module): - module[1] = (os.path.isfile(self.ast[0].base + "/usr/lib/asterisk/modules/" + module[0])) + module[1] = (os.path.isfile("%s%s/%s" % (self.ast[0].base, + self.ast[0].directories["astmoddir"], module[0]))) return module[1] def pre_load_next(self): Index: tests/example/run-test =================================================================== --- tests/example/run-test (revision 4663) +++ tests/example/run-test (working copy) @@ -2,7 +2,7 @@ echo "Checking to see if Asterisk is installed ..." -if [ ! -f /usr/sbin/asterisk ] && [ ! -f /usr/local/sbin/asterisk ] ; then +if [ ! -f ${AST_TEST_ROOT}/usr/sbin/asterisk ] && [ ! -f /usr/local/sbin/asterisk ] ; then echo "Asterisk not found!" exit 1 fi Index: lib/python/asterisk/test_config.py =================================================================== --- lib/python/asterisk/test_config.py (revision 4663) +++ lib/python/asterisk/test_config.py (working copy) @@ -199,10 +199,10 @@ def _find_asterisk_module(self, name): """Determine if an Asterisk module exists""" - if "astmoddir" not in Dependency.ast.directories: + if Dependency.ast.original_astmoddir == "": return False - module = "%s/%s.so" % (Dependency.ast.directories["astmoddir"], name) + module = "%s/%s.so" % (Dependency.ast.original_astmoddir, name) if os.path.exists(module): return True Index: lib/python/asterisk/asterisk.py =================================================================== --- lib/python/asterisk/asterisk.py (revision 4663) +++ lib/python/asterisk/asterisk.py (working copy) @@ -216,6 +216,7 @@ self.process_protocol = None self.process = None self.astetcdir = "" + self.original_astmoddir = "" if base is not None: self.base = "%s/%s" % (self.base, base) @@ -260,6 +261,14 @@ for (var, val) in cat.options: self.directories[var] = val + # self.original_astmoddir is for dependency checking only + if "astmoddir" in self.directories: + if self.localtest_root: + self.original_astmoddir = "%s%s" % ( + self.localtest_root, self.directories["astmoddir"]) + else: + self.original_astmoddir = self.directories["astmoddir"] + def start(self, deps=None): """Start this instance of Asterisk.