Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F60151201
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
Sat, Apr 27, 21:35
Size
1 KB
Mime Type
text/x-python
Expires
Mon, Apr 29, 21:35 (2 d)
Engine
blob
Format
Raw Data
Handle
17309241
Attached To
rTAMAAS tamaas
SConscript
View Options
from __future__ import print_function
from os.path import join, abspath
Import('main_env')
print("Environment for tests")
test_env = main_env.Clone(
PRINT_CMD_LINE_FUNC=main_env['gen_print']("Copying", "red", main_env))
test_files = Split("""
run_tests.sh
test_hertz_pressure.py
test_westergaard.py
test_patch_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"))
crit_env = main_env.Clone(tools=[criterion])
if 'SHCXXCOMSTR' in main_env:
crit_env['CXXCOMSTR'] = main_env['SHCXXCOMSTR']
if 'SHLINKCOMSTR' in main_env:
crit_env['LINKCOMSTR'] = main_env['SHLINKCOMSTR']
crit_env.AppendUnique(LIBS=['Tamaas'],
LIBPATH=[abspath('build-' + main_env['build_type'] + '/src')])
cpp_test_files = Split("""
test_grid.cpp
test_loop.cpp
test_cuda.cpp
""")
for file in cpp_test_files:
crit_env.Program(file)
Event Timeline
Log In to Comment