Commit 0fde7a26 authored by Alexander Danilov's avatar Alexander Danilov

Tests: solver_test002: add cmake rules for tests

parent f5cdf462
......@@ -31,4 +31,36 @@ if(USE_SOLVER)
endif()
endif()
install(TARGETS solver_test002 EXPORT inmost-targets RUNTIME DESTINATION bin)
add_test(NAME solver_test002_serial_inner_ilu2 COMMAND $<TARGET_FILE:solver_test002> 0 20)
add_test(NAME solver_test002_serial_inner_mliluc COMMAND $<TARGET_FILE:solver_test002> 1 20)
if(USE_SOLVER_PETSC)
add_test(NAME solver_test002_serial_petsc COMMAND $<TARGET_FILE:solver_test002> 2 20)
endif()
if(USE_SOLVER_TRILINOS)
add_test(NAME solver_test002_serial_trilinos_aztec COMMAND $<TARGET_FILE:solver_test002> 3 20)
add_test(NAME solver_test002_serial_trilinos_belos COMMAND $<TARGET_FILE:solver_test002> 4 20)
add_test(NAME solver_test002_serial_trilinos_ifpack COMMAND $<TARGET_FILE:solver_test002> 5 20)
add_test(NAME solver_test002_serial_trilinos_ml COMMAND $<TARGET_FILE:solver_test002> 6 20)
endif()
if(USE_SOLVER_ANI)
add_test(NAME solver_test002_serial_ani COMMAND $<TARGET_FILE:solver_test002> 7 20)
endif()
if( USE_MPI )
if( EXISTS ${MPIEXEC} )
add_test(NAME solver_test002_parallel_inner_ilu2 COMMAND ${MPIEXEC} -np 4 $<TARGET_FILE:solver_test002> 0 20)
add_test(NAME solver_test002_parallel_inner_mliluc COMMAND ${MPIEXEC} -np 4 $<TARGET_FILE:solver_test002> 1 20)
if(USE_SOLVER_PETSC)
add_test(NAME solver_test002_parallel_petsc COMMAND ${MPIEXEC} -np 4 $<TARGET_FILE:solver_test002> 2 20)
endif()
if(USE_SOLVER_TRILINOS)
add_test(NAME solver_test002_parallel_trilinos_aztec COMMAND ${MPIEXEC} -np 4 $<TARGET_FILE:solver_test002> 3 20)
add_test(NAME solver_test002_parallel_trilinos_ifpack COMMAND ${MPIEXEC} -np 4 $<TARGET_FILE:solver_test002> 4 20)
add_test(NAME solver_test002_parallel_trilinos_ml COMMAND ${MPIEXEC} -np 4 $<TARGET_FILE:solver_test002> 5 20)
add_test(NAME solver_test002_parallel_trilinos_belos COMMAND ${MPIEXEC} -np 4 $<TARGET_FILE:solver_test002> 6 20)
endif()
endif()
endif()
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