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

add tests for example drivers

parent 722857d9
...@@ -121,6 +121,9 @@ foreach(_example ${EXAMPLES}) ...@@ -121,6 +121,9 @@ foreach(_example ${EXAMPLES})
DESTINATION ${CMAKE_INSTALL_PREFIX}/example/basic_zposv) DESTINATION ${CMAKE_INSTALL_PREFIX}/example/basic_zposv)
endforeach() endforeach()
#-------- Tests ---------
include(CTestLists.cmake)
### ###
### END CMakeLists.txt ### 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}) ...@@ -168,6 +168,9 @@ target_link_libraries(step0 ${libs_for_step0})
install(TARGETS step0 install(TARGETS step0
DESTINATION ${CMAKE_INSTALL_PREFIX}/example/lapack_to_morse) DESTINATION ${CMAKE_INSTALL_PREFIX}/example/lapack_to_morse)
#-------- Tests ---------
include(CTestLists.cmake)
### ###
### END CMakeLists.txt ### 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} ) ...@@ -198,17 +198,13 @@ foreach(_precision ${CHAMELEON_PRECISION} )
endforeach() endforeach()
# Add tests (C/CPP) # Copy python scripts to use test drivers
# ----------------- # ---------------------------------------
if(CHAMELEON_SCHED_STARPU) if(CHAMELEON_SCHED_STARPU)
# Copy launcher # Copy launcher
add_custom_target(testing_launcher_starpu ALL add_custom_target(testing_launcher_starpu ALL
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/morse_testing_starpu.py COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/morse_testing_starpu.py
${CMAKE_CURRENT_BINARY_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 file
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/morse_testing_starpu.py install(FILES ${CMAKE_CURRENT_BINARY_DIR}/morse_testing_starpu.py
DESTINATION ${CMAKE_INSTALL_PREFIX}/testing) DESTINATION ${CMAKE_INSTALL_PREFIX}/testing)
...@@ -224,6 +220,7 @@ if(CHAMELEON_SCHED_QUARK) ...@@ -224,6 +220,7 @@ if(CHAMELEON_SCHED_QUARK)
DESTINATION ${CMAKE_INSTALL_PREFIX}/testing) DESTINATION ${CMAKE_INSTALL_PREFIX}/testing)
endif() endif()
#-------- Tests ---------
include(CTestLists.cmake) include(CTestLists.cmake)
### ###
......
...@@ -235,6 +235,7 @@ foreach(_timing ${TIMINGS}) ...@@ -235,6 +235,7 @@ foreach(_timing ${TIMINGS})
DESTINATION ${CMAKE_INSTALL_PREFIX}/timing) DESTINATION ${CMAKE_INSTALL_PREFIX}/timing)
endforeach() endforeach()
#-------- Tests ---------
include(CTestLists.cmake) 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