From b968b48b53d4e847d3052b28850c8bd405bb3933 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Mon, 21 Mar 2016 17:50:04 +0100 Subject: [PATCH] Work without test directory --- SConstruct | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index e80caf4..de8c59e 100644 --- a/SConstruct +++ b/SConstruct @@ -114,6 +114,7 @@ env.Default (example_list) # # Run 'scons test' to compile unit-tests # +test_unit_result = None test_unit_list = [] run_tests = [] @@ -162,9 +163,10 @@ install_example = env.Install (target_opt_bin, Glob("example/*/*/" + variant + " postinstall_example = env.Command('./example/postinstall.out', None, './example/postinstall.sh') #Default ('install') -Depends (install_include, test_unit_result) -Depends (install_lib, test_unit_result) -Depends (install_example, test_unit_result) +if test_unit_result: + Depends (install_include, test_unit_result) + Depends (install_lib, test_unit_result) + Depends (install_example, test_unit_result) ii = env.Alias('install-include', [target_usr_local_include]) il = env.Alias('install-lib', [target_usr_local_lib]) -- 2.20.1