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

3
set(SerialParallelTests  CuBulkXML SiLOXML  Fe_1lXML
4 5
   CuBandXML  CuDOSXML  Fe_bctXML  PTOXML Fe_1l_SOCXML
   PTO-SOCXML  Fe_bct_SOCXML Fe_fccXML GaAsMultiUForceXML
6
   SiFilmPlotXML  CoMCDXML Fe_Kerker Fe_bct_LOXML
7
   FePt_film_SSFT FePt_film_SSFT_LO ) #Fe_bcc_FlipcdnLDA
8 9 10 11
#Currently disabled Tests (Hybrid+Greenfct)
# SiHybridGammaNoInv SiHybrid8kpt_sym  SiHybrid8kpt_nosym
# KClHybridPBE0 GaAsHybridPBE0 FeHybridPBE0
# Fe_bcc_GreensFunction Fe_1l_GreensFunction
12
#  SiFilmSlicePlotXML CoUnfold
13

14
set(SerialOnlyTests  )
15
set(InpgenTests Si_plain Si_plain_explicit Si_full_para)# Si_kpt Si_kden Si_round_trip)
16 17


18
#Removed GW tests
19 20 21
#if (${FLEUR_USE_HDF5})
#   set(SerialOnlyTests ${SerialOnlyTests} gw1Interface gw2Interface)
#endif()
22

23
set(Testdirs ${SerialParallelTests} ${SerialOnlyTests})
24

25
set(ParTestdirs ${SerialParallelTests})
26
set(InpTestdirs ${InpgenTests})
27 28 29

#Check if all tests (including those running for a long time) should be executed
if (all_tests)
Gregor Michalicek's avatar
Gregor Michalicek committed
30
    set(Testdirs ${Testdirs} Bi2Te3 Bi2Te3XML NiO_ldauXML)
31
    set(ParTestdirs ${ParTestdirs} Bi2Te3 Bi2Te3XML NiO_ldauXML)
32 33
endif()

34 35 36
#The inpgen tests
#if (${INPGEN})
foreach(test ${InpTestdirs})
Daniel Wortmann's avatar
Daniel Wortmann committed
37
 add_test("INPGEN:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl "inpgen/${test}" "${CMAKE_BINARY_DIR}/inpgen2/inpgen2")
38 39 40
endforeach(test)
#endif()

41 42
#Add Wannier tests if fleur is compiled with Wannier support
if (${FLEUR_USE_WANN})
43 44
    set(Testdirs ${Testdirs} Cwann CwannXML)
    set(ParTestdirs ${ParTestdirs} Cwann CwannXML)
45
endif()
46

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

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

59
#The serial tests
60
if (${FLEUR_USE_SERIAL})
61
   foreach(test ${Testdirs})
62
    add_test("FLEUR:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur")
63 64 65 66
   endforeach(test)
endif()

#The parallel tests
67
if (${FLEUR_USE_MPI})
68 69 70 71 72
   if (MPIEXEC)
      set(mpi_exec "${MPIEXEC} ${MPI_NUMPROC_FLAGS} 2")
   else()
      set(mpi_exec "mpirun -n 2")
   endif()
73
   foreach(test ${ParTestdirs})
74 75
    add_test("FLEUR_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_MPI" "${mpi_exec}")
   endforeach(test)
76
   set(mpi_exec "sequential")
77 78
   foreach(test ${SerialOnlyTests})
    add_test("FLEUR_MPI:${test}" ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.pl ${test} "${CMAKE_BINARY_DIR}/fleur_MPI" "${mpi_exec}")
79 80
   endforeach(test)
endif()