scons bindings=foo,bar test now runs C tests and tests for foo and bar. PHP tests need command-line fixed.
This commit is contained in:
parent
3d64c29731
commit
cc3160072b
1 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# -*- python -*-
|
||||
import os, os.path
|
||||
Import('env libhammer_shared')
|
||||
Import('env libhammer_shared testruns')
|
||||
|
||||
phpenv = env.Clone(IMPLICIT_COMMAND_DEPENDENCIES = 0)
|
||||
|
||||
|
|
@ -14,9 +14,9 @@ bindings_src = phpenv.Command(['hammer.php', 'hammer_wrap.c', 'php_hammer.h'], '
|
|||
libhammer_php = phpenv.SharedLibrary('hammer', ['hammer_wrap.c'])
|
||||
Default(swig_src, bindings_src, libhammer_php)
|
||||
|
||||
#phptestenv = phpenv.Clone()
|
||||
#phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhamm#er_shared[0]))
|
||||
#tests = phptestenv.Dir('Tests/')
|
||||
#phptestenv.Command(tests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")
|
||||
|
||||
phptestenv = phpenv.Clone()
|
||||
phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
||||
phptests = phptestenv.Dir('Tests/')
|
||||
testruns.append(phptestenv.Alias("testphp", phptestenv.Command(phptests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue