Commit 04845aed authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#869 Test/SConscript: use custon.HappyHeartProgram to build all tests targets.

parent dbe51396
......@@ -17,30 +17,21 @@ main_src = Split('''
''')
test = env.Program('test-{0}'.format(env["LIBRARY_TYPE"]),
main_src,
LIBS=env["LINK_LIBRARIES_LIST"],
LIBPATH=env['LIBPATH'])
test = custom.HappyHeartProgram(env, 'test', main_src, [])
main_ondomatic_numbering_src = Split('''
OndomaticNumbering/main_test_ondomatic_numbering.cpp
''')
test_ondomatic_numbering = env.Program('test_ondomatic_numbering-{0}'.format(env["LIBRARY_TYPE"]),
main_ondomatic_numbering_src,
LIBS=env["LINK_LIBRARIES_LIST"],
LIBPATH=env['LIBPATH'])
test_ondomatic_numbering = custom.HappyHeartProgram(env, 'test_ondomatic_numbering', main_ondomatic_numbering_src, [])
main_coloring_src = Split('''
Geometry/main_test_coloring.cpp
''')
test_coloring = env.Program('test_coloring-{0}'.format(env["LIBRARY_TYPE"]),
main_coloring_src,
LIBS=env["LINK_LIBRARIES_LIST"],
LIBPATH=env['LIBPATH'])
test_coloring = custom.HappyHeartProgram(env, 'test_coloring', main_coloring_src, [])
......@@ -48,10 +39,7 @@ main_jacobian_src = Split('''
Geometry/main_test_jacobian.cpp
''')
test_jacobian = env.Program('test_jacobian-{0}'.format(env["LIBRARY_TYPE"]),
main_jacobian_src,
LIBS=env["LINK_LIBRARIES_LIST"],
LIBPATH=env['LIBPATH'])
test_jacobian = custom.HappyHeartProgram(env, 'test_jacobian', main_jacobian_src, [])
main_conform_operator_src = Split('''
......@@ -59,10 +47,7 @@ main_conform_operator_src = Split('''
Operators/ConformProjector/main.cpp
''')
test_conform_operator = env.Program('test_conform_operator-{0}'.format(env["LIBRARY_TYPE"]),
main_conform_operator_src,
LIBS=env["LINK_LIBRARIES_LIST"],
LIBPATH=env['LIBPATH'])
test_conform_operator = custom.HappyHeartProgram(env, 'test_conform_operator', main_conform_operator_src, [])
main_test_p1_to_p2_src = Split('''
Operators/P1_to_HigherOrder/main_interpolator_P1_P2.cpp
......@@ -88,10 +73,7 @@ main_test_fiber_list_manager_src = Split('''
''')
test_fiber_list_manager = env.Program('test_fiber_list_manager-{0}'.format(env["LIBRARY_TYPE"]),
main_test_fiber_list_manager_src,
LIBS=env["LINK_LIBRARIES_LIST"],
LIBPATH=env['LIBPATH'])
test_fiber_list_manager = custom.HappyHeartProgram(env, 'test_fiber_list_manager', main_test_fiber_list_manager_src, [])
list_exec.extend((test,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment