Skip to content
Snippets Groups Projects
Commit cc316007 authored by Meredith L. Patterson's avatar Meredith L. Patterson
Browse files

scons bindings=foo,bar test now runs C tests and tests for foo and bar. PHP...

scons bindings=foo,bar test now runs C tests and tests for foo and bar. PHP tests need command-line fixed.
parent 3d64c297
No related branches found
No related tags found
No related merge requests found
# -*- python -*- # -*- python -*-
import os, os.path import os, os.path
Import('env libhammer_shared') Import('env libhammer_shared testruns')
phpenv = env.Clone(IMPLICIT_COMMAND_DEPENDENCIES = 0) phpenv = env.Clone(IMPLICIT_COMMAND_DEPENDENCIES = 0)
...@@ -14,9 +14,9 @@ bindings_src = phpenv.Command(['hammer.php', 'hammer_wrap.c', 'php_hammer.h'], ' ...@@ -14,9 +14,9 @@ bindings_src = phpenv.Command(['hammer.php', 'hammer_wrap.c', 'php_hammer.h'], '
libhammer_php = phpenv.SharedLibrary('hammer', ['hammer_wrap.c']) libhammer_php = phpenv.SharedLibrary('hammer', ['hammer_wrap.c'])
Default(swig_src, bindings_src, libhammer_php) Default(swig_src, bindings_src, libhammer_php)
#phptestenv = phpenv.Clone() phptestenv = phpenv.Clone()
#phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhamm#er_shared[0])) phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
#tests = phptestenv.Dir('Tests/') phptests = phptestenv.Dir('Tests/')
#phptestenv.Command(tests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET") testruns.append(phptestenv.Alias("testphp", phptestenv.Command(phptests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment