From: Eduardo Ramos Testillano Date: Mon, 21 Mar 2016 16:50:04 +0000 (+0100) Subject: Work without test directory X-Git-Tag: REFACTORING_TESTING_LIBRARY~8 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=b968b48b53d4e847d3052b28850c8bd405bb3933;p=anna.git Work without test directory --- 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])