CMakeLists.txt 1.44 KB
Newer Older
1 2
enable_testing()

3 4
set(Testdirs CuBulk CuBulkXML Fe_1l Fe-Atom CuBand CuBandXML CuDOS CuDOSXML Fe_bct_LO Fe_bct NiO_ldau PTO Fe_fcc)
set(Testdirs_INVS CuBulk CuBulkXML Fe_1l Fe-Atom CuBand CuBandXML CuDOS CuDOSXML)
Daniel Wortmann's avatar
Daniel Wortmann committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
set(Testdirs_SOC Bi2Te3 Fe_1l_SOC PTO-SOC Fe_bct_SOC)

#The serial tests
if (${Fleur_uses_serial})
   #tests of fleur
   foreach(test ${Testdirs})
    add_test(${test} ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur")
   endforeach(test)
   #test of fleur_INVS
   foreach(test ${Testdirs_INVS})
    add_test("I:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_INVS")
   endforeach(test)
   #test of fleur_SOC
   foreach(test ${Testdirs_SOC})
    add_test("S:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_SOC")
   endforeach(test)
endif()

#The parallel tests
if (${Fleur_uses_MPI})
   #tests of fleur
   foreach(test ${Testdirs})
    add_test("MPI-${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_MPI")
   endforeach(test)
   #test of fleur_INVS
   foreach(test ${Testdirs_INVS})
    add_test("MPI-I:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_INVS_MPI")
   endforeach(test)
   #test of fleur_SOC
   foreach(test ${Testdirs_SOC})
    add_test("MPI-S:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_SOC_MPI")
   endforeach(test)
endif()

39 40