CMakeLists.txt 742 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 5 6 7
#The serial tests
if (${Fleur_uses_serial})
   #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 13 14 15
   endforeach(test)
endif()

#The parallel tests
if (${Fleur_uses_MPI})
   #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")
Daniel Wortmann's avatar
Daniel Wortmann committed
17 18
   endforeach(test)
endif()