tests_old.cmake 2.76 KB
Newer Older
1 2
enable_testing()

3
set(SerialParallelTests CuBulkXML SiLOXML  Fe_1lXML
4
   CuBandXML  CuDOSXML  Fe_bctXML  PTOXML Fe_1l_SOCXML
5
   PTO-SOCXML  Fe_bct_SOCXML Fe_fccXML GaAsMultiUForceXML H2ORelaxBFGS
6
   CoMCDXML  Fe_Kerker Fe_bct_LOXML SiFilmPlotXML SiFilmSlicePlotXML
Gregor Michalicek's avatar
Gregor Michalicek committed
7
   FePt_film_SSFT FePt_film_SSFT_LO
8
   Fe_bcc_GreensFunction GreensFunction_MultiContour Fe_1l_GreensFunction
Robin Hilgers's avatar
Robin Hilgers committed
9
   Fe_1l_Tria SmAtomjDOS )
10

11
#Currently disabled Tests (Hybrid)
12
# SiHybridGammaNoInv SiHybrid8kpt_sym  SiHybrid8kpt_nosym
13
#  CoUnfold
14 15 16
#Other disabled tests
#FePt_film_SSFT FePt_film_SSFT_LO

Daniel Wortmann's avatar
Daniel Wortmann committed
17
set(SerialOnlyTests  )
18

Matthias Redies's avatar
Matthias Redies committed
19
set(InpgenTests Si_plain Si_plain_explicit Si_full_para)# Si_kpt Si_kden Si_round_trip)
20

Andreas Beckmann's avatar
Andreas Beckmann committed
21
set(HybridTests
22 23 24 25
   KClHybridPBE0
   GaAsHybridPBE0
   FeHybridPBE0
   MnHybridNoinv
Andreas Beckmann's avatar
Andreas Beckmann committed
26
)
27

Robin Hilgers's avatar
Robin Hilgers committed
28 29 30 31 32
set(FFNTests
   Fe_bcc_FlipcdnXLDA Fe_bcc_FlipcdnYGGA FeFFNLOsSOC
   PlotDenandPot PlotOnlyMT
   RelaxMTFeature Fe_bcc_SF_LDA
)
33

34

35
if (FLEUR_USE_HDF5)
36 37
    set(SerialParallelTests ${SerialParallelTests} ${FFNTests})
endif()
38 39 40

#Check if all tests (including those running for a long time) should be executed
if (all_tests)
Andreas Beckmann's avatar
Andreas Beckmann committed
41
   set(SerialParallelTests ${SerialParallelTests} Bi2Te3 Bi2Te3XML NiO_ldauXML)
42 43
endif()

Gregor Michalicek's avatar
Gregor Michalicek committed
44
#Add Wannier tests if fleur is compiled with Wannier support
45
if (FLEUR_USE_WANN)
Robin Hilgers's avatar
Robin Hilgers committed
46
   set(SerialOnlyTests ${SerialOnlyTests} CwannXML)
Gregor Michalicek's avatar
Gregor Michalicek committed
47
endif()
48

Matthias Redies's avatar
Matthias Redies committed
49
#Tests for LibXC
50
if (FLEUR_USE_LIBXC)
Andreas Beckmann's avatar
Andreas Beckmann committed
51
   set(SerialParallelTests ${SerialParallelTests} CuBulkLibXC Fe_bct_LibXC Diamond_SCAN)
Matthias Redies's avatar
Matthias Redies committed
52
endif()
Henning Janssen's avatar
Henning Janssen committed
53 54

#Tests for EDsolver
55
if (FLEUR_USE_EDSOLVER)
Henning Janssen's avatar
Henning Janssen committed
56
   set(SerialParallelTests ${SerialParallelTests} Gd_Hubbard1 Gd_Hubbard1_noSYM)
Henning Janssen's avatar
Henning Janssen committed
57 58
endif()

Andreas Beckmann's avatar
Andreas Beckmann committed
59 60

#The inpgen tests
61
#if (INPGEN)
Andreas Beckmann's avatar
Andreas Beckmann committed
62 63 64 65 66
foreach(test ${InpgenTests})
   add_test("INPGEN:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl "inpgen/${test}" "${CMAKE_BINARY_DIR}/inpgen2/inpgen2")
endforeach(test)
#endif()

67
#The serial tests
68
if (FLEUR_USE_SERIAL)
Andreas Beckmann's avatar
Andreas Beckmann committed
69
   foreach(test ${SerialParallelTests} ${SerialOnlyTests})
70
    add_test("FLEUR:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur")
71 72 73 74
   endforeach(test)
endif()

#The parallel tests
75
if (FLEUR_USE_MPI)
76 77 78 79 80
   if (MPIEXEC)
      set(mpi_exec "${MPIEXEC} ${MPI_NUMPROC_FLAGS} 2")
   else()
      set(mpi_exec "mpirun -n 2")
   endif()
Andreas Beckmann's avatar
Andreas Beckmann committed
81
   foreach(test ${SerialParallelTests})
82 83
    add_test("FLEUR_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_MPI" "${mpi_exec}")
   endforeach(test)
84
   set(mpi_exec "sequential")
85 86
   foreach(test ${SerialOnlyTests})
    add_test("FLEUR_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_MPI" "${mpi_exec}")
87 88
   endforeach(test)
endif()
Matthias Redies's avatar
Matthias Redies committed
89 90

#Hybrid tests
Andreas Beckmann's avatar
Andreas Beckmann committed
91
foreach(test ${HybridTests})
92
   add_test("${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/tests/${test}/test.py --bindir ${CMAKE_BINARY_DIR} --testdir ${CMAKE_BINARY_DIR}/Testing/${test})
Andreas Beckmann's avatar
Andreas Beckmann committed
93
endforeach()