get castxml tests to work
This commit is contained in:
1 parent
84f81b13bc
commit
01125844d1
3 files changed
+5
-4
No files matched your search
@@ -653,9 +653,11 @@ class ModuleParser(object):
|
||||
self._post_scan_hooks.append(hook)
|
||||
|
||||
def __location_match(self, decl):
|
||||
if decl.location.file_name in self.header_files:
|
||||
# Make sure absolute paths are compared.
|
||||
abspath = os.path.abspath(decl.location.file_name)
|
||||
if abspath in self.header_files:
|
||||
return True
|
||||
for incdir in self.whitelist_paths:
|
||||
for incdir in self.whitelist_paths:
|
||||
if os.path.abspath(decl.location.file_name).startswith(incdir):
|
||||
return True
|
||||
return False
|
||||
|
||||
@@ -50,7 +50,6 @@ def my_module_gen():
|
||||
|
||||
module.generate(out)
|
||||
|
||||
|
||||
def main():
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
if sys.argv[1] == '-d':
|
||||
|
||||
@@ -279,7 +279,7 @@ class CheckContext(Context.Context):
|
||||
retvals.append(subprocess.Popen(valgrind + [python, 'tests/footest.py', '3', cc_name, cc_version, env['PYGCCXML_MODE']] + verbosity).wait())
|
||||
|
||||
print("Running module generated by generated and split python script unit tests (module foo4)...")
|
||||
retvals.append(subprocess.Popen(valgrind + [python, 'tests/footest.py', '4, cc_name, cc_version', env['PYGCCXML_MODE']] + verbosity).wait())
|
||||
retvals.append(subprocess.Popen(valgrind + [python, 'tests/footest.py', '4', cc_name, cc_version, env['PYGCCXML_MODE']] + verbosity).wait())
|
||||
|
||||
print("Running semi-automatically scanned c-hello module ('hello')...")
|
||||
retvals.append(subprocess.Popen(valgrind + [python, 'tests/c-hello/hellotest.py'] + verbosity).wait())
|
||||
|
||||
Reference in new issue
Block a user