compile c++ tests even if only installing and hook them all up automatically to make test target
This commit is contained in:
parent
3e3bdf6607
commit
a50ea0750e
2 changed files with 6 additions and 4 deletions
5
Makefile
5
Makefile
|
@ -18,9 +18,8 @@ uninstall:
|
||||||
python scons/scons.py uninstall
|
python scons/scons.py uninstall
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@python tests/visual_tests/test.py
|
@python tests/visual_tests/test.py -q
|
||||||
@tests/cpp_tests/font_registration_test
|
@tests/cpp_tests/*-bin
|
||||||
@tests/cpp_tests/params_test
|
|
||||||
@python tests/run_tests.py -q
|
@python tests/run_tests.py -q
|
||||||
|
|
||||||
pep8:
|
pep8:
|
||||||
|
|
|
@ -14,5 +14,8 @@ libraries.append('mapnik')
|
||||||
test_env.Append(CXXFLAGS='-g')
|
test_env.Append(CXXFLAGS='-g')
|
||||||
|
|
||||||
for cpp_test in glob.glob('*_test.cpp'):
|
for cpp_test in glob.glob('*_test.cpp'):
|
||||||
test_program = test_env.Program(cpp_test.replace('.cpp',''), [cpp_test], CPPPATH=headers, LIBS=libraries, LINKFLAGS=env['CUSTOM_LDFLAGS'])
|
test_program = test_env.Program(cpp_test.replace('.cpp','-bin'), [cpp_test], CPPPATH=headers, LIBS=libraries, LINKFLAGS=env['CUSTOM_LDFLAGS'])
|
||||||
Depends(test_program, env.subst('../../src/%s' % env['MAPNIK_LIB_NAME']))
|
Depends(test_program, env.subst('../../src/%s' % env['MAPNIK_LIB_NAME']))
|
||||||
|
# build locally if installing
|
||||||
|
if 'install' in COMMAND_LINE_TARGETS:
|
||||||
|
env.Alias('install',test_program)
|
||||||
|
|
Loading…
Reference in a new issue