diff --git a/tests/SConscript b/tests/SConscript index e9f73ee..9222a0f 100644 --- a/tests/SConscript +++ b/tests/SConscript @@ -1,36 +1,41 @@ from __future__ import print_function from os.path import join def print_copy(command, target, source, env): colors = env['COLOR_DICT'] - print("{}[Copying] {}{}".format(colors['red'], + print("{}[Copying] {}{}{}".format(colors['red'], colors['blue'], source[0], colors['end'])) Import('main_env') -test_env = main_env.Clone(PRINT_CMD_LINE_FUNC=print_copy) +if not main_env['verbose']: + print_function = print_copy +else: + print_function = None + +test_env = main_env.Clone(PRINT_CMD_LINE_FUNC=print_function) test_files = Split(""" run_tests.sh test_hertz_pressure.py test_westergaard.py test_surface.py test_autocorrelation.py test_hertz_disp.py test_hertz_kato.py test_hertz_adhesion.py test_saturated_pressure.py test_fftransform.py test_bem_grid.py test_flood_fill.py """) src_dir = "#/tests" build_dir = 'build-' + main_env['build_type'] + '/tests' for file in test_files: source = join(src_dir, file) test_env.Command(file, source, Copy("$TARGET", "$SOURCE"))