Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84736835
SConscript
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 24, 15:03
Size
986 B
Mime Type
text/x-python
Expires
Thu, Sep 26, 15:03 (2 d)
Engine
blob
Format
Raw Data
Handle
21078811
Attached To
rTAMAAS tamaas
SConscript
View Options
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],
colors['end']))
Import('main_env')
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"))
Event Timeline
Log In to Comment