CMakeLists.txt 1.52 KB
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 NiO_ldau PTO Fe_fcc)
Gregor Michalicek's avatar
Gregor Michalicek committed
4
set(Testdirs_INVS CuBulk CuBulkXML Fe_1l Fe_1lXML Fe-Atom CuBand CuBandXML CuDOS CuDOSXML)
Daniel Wortmann's avatar
Daniel Wortmann committed
5
6
7
8
9
10
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})
11
    add_test("FLEUR:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur")
Daniel Wortmann's avatar
Daniel Wortmann committed
12
13
14
   endforeach(test)
   #test of fleur_INVS
   foreach(test ${Testdirs_INVS})
15
    add_test("FLEUR_INVS:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_INVS")
Daniel Wortmann's avatar
Daniel Wortmann committed
16
17
18
   endforeach(test)
   #test of fleur_SOC
   foreach(test ${Testdirs_SOC})
19
    add_test("FLEUR_SOC:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_SOC")
Daniel Wortmann's avatar
Daniel Wortmann committed
20
21
22
23
24
25
26
   endforeach(test)
endif()

#The parallel tests
if (${Fleur_uses_MPI})
   #tests of fleur
   foreach(test ${Testdirs})
27
    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
28
29
30
   endforeach(test)
   #test of fleur_INVS
   foreach(test ${Testdirs_INVS})
31
    add_test("FLEUR_INVS_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_INVS_MPI")
Daniel Wortmann's avatar
Daniel Wortmann committed
32
33
34
   endforeach(test)
   #test of fleur_SOC
   foreach(test ${Testdirs_SOC})
35
    add_test("FLEUR_SOC_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_SOC_MPI")
Daniel Wortmann's avatar
Daniel Wortmann committed
36
37
   endforeach(test)
endif()