diff --git a/SConstruct b/SConstruct index fd62eda06b8b8e980cd05eb4cd44240d379676a2..8a801f76c6ee226017d2065c10d9e497e709969f 100644 --- a/SConstruct +++ b/SConstruct @@ -93,6 +93,7 @@ env["ENV"].update(x for x in os.environ.items() if x[0].startswith("CCC_")) #rootpath = env['ROOTPATH'] = os.path.abspath('.') #env.Append(CPPPATH=os.path.join('#', "hammer")) +env['testruns'] = [] testruns = [] targets = ["$libpath", diff --git a/src/bindings/php/SConscript b/src/bindings/php/SConscript index 7e5aae80d7ecff7712cb5a6f0fdcc2922428ae8a..7e86159a56f6d1e98974bc75d08f9078d3629275 100644 --- a/src/bindings/php/SConscript +++ b/src/bindings/php/SConscript @@ -1,6 +1,6 @@ # -*- python -*- import os, os.path -Import('env libhammer_shared testruns') +Import('env libhammer_shared') phpenv = env.Clone(IMPLICIT_COMMAND_DEPENDENCIES = 0) @@ -16,7 +16,8 @@ Default(swig_src, bindings_src, libhammer_php) 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"))) - +phptests = ['Tests'] +testphp = phptestenv.Alias("testphp", phptestenv.Command(phptests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")) +env['testruns'].append(testphp) +print "Testing: " + str([str(x[0]) for x in env['testruns']])