Page MenuHomec4science

SConscript
No OneTemporary

File Metadata

Created
Sun, May 5, 09:48

SConscript

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'],
colors['blue'],
source[0],
target[0],
colors['end']))
Import('main_env')
test_env = main_env.Clone(PRINT_CMD_LINE_FUNC=print_copy)
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"))

Event Timeline