CMakeLists.txt 775 Bytes
Newer Older
1 2
enable_testing()

3
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) 
Daniel Wortmann's avatar
Daniel Wortmann committed
4
#The serial tests
5
if (${FLEUR_USE_SERIAL})
Daniel Wortmann's avatar
Daniel Wortmann committed
6 7
   #tests of fleur
   foreach(test ${Testdirs})
8
    add_test("FLEUR:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur")
Daniel Wortmann's avatar
Daniel Wortmann committed
9 10 11 12
   endforeach(test)
endif()

#The parallel tests
13
if (${FLEUR_USE_MPI})
Daniel Wortmann's avatar
Daniel Wortmann committed
14 15
   #tests of fleur
   foreach(test ${Testdirs})
16
    add_test("FLEUR_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_MPI" "${MPIEXEC} ${MPI_NUMPROC_FLAGS 2")
Daniel Wortmann's avatar
Daniel Wortmann committed
17 18
   endforeach(test)
endif()