From 4a69a94fed2422988195651125b304c404f39455 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 21 May 2015 07:41:28 -0700 Subject: [PATCH] always compile tests even if not installing --- test/build.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/build.py b/test/build.py index 18cabcd19..c600d01bc 100644 --- a/test/build.py +++ b/test/build.py @@ -36,11 +36,15 @@ else: Depends(test_program, env.subst('../src/%s' % env['MAPNIK_LIB_NAME'])) Depends(test_program, env.subst('../src/json/libmapnik-json${LIBSUFFIX}')) Depends(test_program, env.subst('../src/wkt/libmapnik-wkt${LIBSUFFIX}')) + if 'install' in COMMAND_LINE_TARGETS: + env.Alias('install',test_program) # standalone tests for standalone in glob.glob('./standalone/*cpp'): - test_program = test_env_local.Program(standalone.replace('.cpp','-bin'), source=standalone) + test_program2 = test_env_local.Program(standalone.replace('.cpp','-bin'), source=standalone) Depends(test_program, env.subst('../src/%s' % env['MAPNIK_LIB_NAME'])) + if 'install' in COMMAND_LINE_TARGETS: + env.Alias('install',test_program2) # visual tests source = Split( @@ -50,9 +54,9 @@ else: visual/run.cpp """ ) - test_program = test_env_local.Program('visual/run', source=source) + test_program3 = test_env_local.Program('visual/run', source=source) 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) + env.Alias('install',test_program3)