build//src/bindings/python/hammer_tests.py still hangs around but everything else is cleaned up.
This commit is contained in:
parent
f21954eecd
commit
1e7553d3df
1 changed files with 3 additions and 2 deletions
|
|
@ -20,9 +20,10 @@ Default(libhammer_python)
|
||||||
|
|
||||||
pytestenv = pythonenv.Clone()
|
pytestenv = pythonenv.Clone()
|
||||||
pytestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
pytestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
||||||
pytestexec = pytestenv.Command(None, ['hammer_tests.py'] + libhammer_python, "nosetests -vv $SOURCE")
|
pytests = ['hammer_tests.py']
|
||||||
|
pytestexec = pytestenv.Command(['hammer.pyc', 'hammer_tests.pyc'], pytests + libhammer_python, "nosetests -vv $SOURCE")
|
||||||
pytest = Alias("testpython", [pytestexec], pytestexec)
|
pytest = Alias("testpython", [pytestexec], pytestexec)
|
||||||
AlwaysBuild(pytest)
|
AlwaysBuild(pytest)
|
||||||
testruns.append(pytest)
|
testruns.append(pytest)
|
||||||
|
|
||||||
Clean('.', ['hammer.pyc', 'hammer_tests.py', 'hammer_tests.pyc'])
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue