Commit d085d58b authored by Daniel Wortmann's avatar Daniel Wortmann

Changed testing such that longer running tests are not performed by default

parent 6a24c247
enable_testing() enable_testing()
set(Testdirs CuBulk CuBulkXML Fe_1l Fe_1lXML Fe-Atom CuBand CuBandXML CuDOS CuDOSXML Fe_bct_LO Fe_bct_LOXML Fe_bct Fe_bctXML NiO_ldau NiO_ldauXML PTO PTOXML Fe_fcc Fe_fccXML Bi2Te3 Bi2Te3XML Fe_1l_SOC Fe_1l_SOCXML PTO-SOC PTO-SOCXML Fe_bct_SOC Fe_bct_SOCXML) set(Testdirs CuBulk CuBulkXML Fe_1l Fe_1lXML Fe-Atom CuBand CuBandXML CuDOS CuDOSXML Fe_bct_LO Fe_bct_LOXML Fe_bct Fe_bctXML PTO PTOXML Fe_fcc Fe_fccXML Fe_1l_SOC Fe_1l_SOCXML PTO-SOC PTO-SOCXML Fe_bct_SOC Fe_bct_SOCXML)
#Check if all tests (including those running for a long time) should be executed
if (all_tests)
set(Testdirs ${Testdirs} Bi2Te3 Bi2Te3XML NiO_ldau NiO_ldauXML)
endif()
#The serial tests #The serial tests
if (${FLEUR_USE_SERIAL}) if (${FLEUR_USE_SERIAL})
#tests of fleur
foreach(test ${Testdirs}) foreach(test ${Testdirs})
add_test("FLEUR:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur") add_test("FLEUR:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur")
endforeach(test) endforeach(test)
...@@ -11,9 +18,13 @@ endif() ...@@ -11,9 +18,13 @@ endif()
#The parallel tests #The parallel tests
if (${FLEUR_USE_MPI}) if (${FLEUR_USE_MPI})
#tests of fleur if (MPIEXEC)
set(mpi_exec "${MPIEXEC} ${MPI_NUMPROC_FLAGS} 2")
else()
set(mpi_exec "mpirun -n 2")
endif()
foreach(test ${Testdirs}) foreach(test ${Testdirs})
add_test("FLEUR_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl add_test("FLEUR_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl
${test} "${CMAKE_BINARY_DIR}/fleur_MPI" "${MPIEXEC} ${MPI_NUMPROC_FLAGS} 2") ${test} "${CMAKE_BINARY_DIR}/fleur_MPI" "${mpi_exec}")
endforeach(test) endforeach(test)
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