Commit 71807fa7 authored by PRUVOST Florent's avatar PRUVOST Florent

add tests for example drivers

parent 722857d9
......@@ -121,6 +121,9 @@ foreach(_example ${EXAMPLES})
DESTINATION ${CMAKE_INSTALL_PREFIX}/example/basic_zposv)
endforeach()
#-------- Tests ---------
include(CTestLists.cmake)
###
### END CMakeLists.txt
###
#
# Check Example basic_zposv
#
set(TESTLIST
posv_morse_functions
posv_users_functions
)
foreach(prec ${RP_CHAMELEON_PRECISIONS})
foreach(test ${TESTLIST})
add_test(example_basic_${prec}${test} ./${prec}${test})
endforeach()
endforeach()
\ No newline at end of file
......@@ -168,6 +168,9 @@ target_link_libraries(step0 ${libs_for_step0})
install(TARGETS step0
DESTINATION ${CMAKE_INSTALL_PREFIX}/example/lapack_to_morse)
#-------- Tests ---------
include(CTestLists.cmake)
###
### END CMakeLists.txt
###
#
# Check Example basic_zposv
#
set(TESTLIST
step0
step1
step2
step3
step4
step5
step6
)
foreach(test ${TESTLIST})
add_test(example_ltm_${test} ./${prec}${test})
endforeach()
......@@ -198,17 +198,13 @@ foreach(_precision ${CHAMELEON_PRECISION} )
endforeach()
# Add tests (C/CPP)
# -----------------
# Copy python scripts to use test drivers
# ---------------------------------------
if(CHAMELEON_SCHED_STARPU)
# Copy launcher
add_custom_target(testing_launcher_starpu ALL
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/morse_testing_starpu.py
${CMAKE_CURRENT_BINARY_DIR}/morse_testing_starpu.py)
# add test
# add_test(NAME morse_testing_starpu
# COMMAND ${PYTHON_EXECUTABLE}
# ${CMAKE_CURRENT_BINARY_DIR}/morse_testing_starpu.py)
# install file
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/morse_testing_starpu.py
DESTINATION ${CMAKE_INSTALL_PREFIX}/testing)
......@@ -224,6 +220,7 @@ if(CHAMELEON_SCHED_QUARK)
DESTINATION ${CMAKE_INSTALL_PREFIX}/testing)
endif()
#-------- Tests ---------
include(CTestLists.cmake)
###
......
......@@ -235,6 +235,7 @@ foreach(_timing ${TIMINGS})
DESTINATION ${CMAKE_INSTALL_PREFIX}/timing)
endforeach()
#-------- Tests ---------
include(CTestLists.cmake)
###
......
Markdown is supported
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