CMakeLists.txt 3.69 KB
Newer Older
1
# set(DUNE_MAX_TEST_CORES 4)
2

Müller, Felix's avatar
Müller, Felix committed
3
4
5
dune_add_test(SOURCES AdaptInfoTest.cpp
  LINK_LIBRARIES amdis)

Praetorius, Simon's avatar
Praetorius, Simon committed
6
7
8
dune_add_test(SOURCES AdaptiveGridTest.cpp
  LINK_LIBRARIES amdis)

9
foreach(_GRID RANGE 7)
10
11
12
  dune_add_test(NAME "BackupRestoreTest_${_GRID}"
    SOURCES BackupRestoreTest.cpp
    COMPILE_DEFINITIONS "GRID_ID=${_GRID}"
13
    COMPILE_FLAGS "-fno-var-tracking-assignments"
14
15
16
17
18
    LABELS "BackupRestore"
    LINK_LIBRARIES amdis)
  add_dune_alberta_flags(GRIDDIM 2 WORLDDIM 2 "BackupRestoreTest_${_GRID}")
endforeach()
unset(_GRID)
19

20
21
22
dune_add_test(SOURCES ConceptsTest.cpp
  LINK_LIBRARIES amdis)

23
24
25
26
27
28
dune_add_test(SOURCES DataTransferTest2d.cpp
  LINK_LIBRARIES amdis)

dune_add_test(SOURCES DataTransferTest3d.cpp
  LINK_LIBRARIES amdis)

29
30
31
32
33
34
dune_add_test(SOURCES DOFMappingTest.cpp
  LINK_LIBRARIES amdis
  MPI_RANKS 2
  TIMEOUT 300
  CMAKE_GUARD MPI_FOUND)

Praetorius, Simon's avatar
Praetorius, Simon committed
35
36
37
dune_add_test(SOURCES DOFVectorTest.cpp
  LINK_LIBRARIES amdis)

38
dune_add_test(SOURCES DiscreteFunctionTest.cpp
39
  LINK_LIBRARIES amdis)
40

41
dune_add_test(SOURCES ExpressionsTest.cpp
42
  LINK_LIBRARIES amdis)
43

44
45
46
dune_add_test(SOURCES FakeContainerTest.cpp
  LINK_LIBRARIES amdis)

47
48
49
dune_add_test(SOURCES FieldMatVecTest.cpp
  LINK_LIBRARIES amdis)

50
51
52
dune_add_test(SOURCES FiniteElementTypeTest.cpp
  LINK_LIBRARIES amdis)

53
54
55
dune_add_test(SOURCES FilesystemTest.cpp
  LINK_LIBRARIES amdis)

56
57
58
dune_add_test(SOURCES FlatMatVecTest.cpp
  LINK_LIBRARIES amdis)

59
60
61
dune_add_test(SOURCES FlatPreBasisTest.cpp
  LINK_LIBRARIES amdis)

62
63
64
65
66
67
dune_add_test(SOURCES GlobalIdSetTest.cpp
  LINK_LIBRARIES amdis
  MPI_RANKS 2
  TIMEOUT 300
  CMAKE_GUARD MPI_FOUND)

68
69
70
dune_add_test(SOURCES GradientTest.cpp
  LINK_LIBRARIES amdis)

71
72
73
74
75
76
77
if(BACKEND STREQUAL "ISTL")
  dune_add_test(SOURCES ISTLCommTest.cpp
    LINK_LIBRARIES amdis
    MPI_RANKS 2 4
    TIMEOUT 300
    CMAKE_GUARD MPI_FOUND)
endif()
78

Praetorius, Simon's avatar
Praetorius, Simon committed
79
dune_add_test(SOURCES IntegrateTest.cpp
80
  LINK_LIBRARIES amdis)
Praetorius, Simon's avatar
Praetorius, Simon committed
81

Praetorius, Simon's avatar
Praetorius, Simon committed
82
dune_add_test(SOURCES MarkerTest.cpp
83
  LINK_LIBRARIES amdis)
Praetorius, Simon's avatar
Praetorius, Simon committed
84

85
86
87
88
89
90
dune_add_test(SOURCES MpiWrapperTest.cpp
  LINK_LIBRARIES amdis
  MPI_RANKS 2 4
  TIMEOUT 300
  CMAKE_GUARD "MPI_FOUND")

91
92
93
dune_add_test(SOURCES NodeIndicesTest.cpp
  LINK_LIBRARIES amdis)

94
95
96
dune_add_test(SOURCES ObserverTest.cpp
  LINK_LIBRARIES amdis)

97
98
99
dune_add_test(SOURCES OperationsTest.cpp
  LINK_LIBRARIES amdis)

100
101
102
dune_add_test(SOURCES OperatorsTest.cpp
  LINK_LIBRARIES amdis)

103
if(BACKEND STREQUAL "PETSC" OR BACKEND STREQUAL "ISTL")
104
105
106
107
foreach(_GRID RANGE 6)
  dune_add_test(NAME "ParallelIndexSetTest_${_GRID}"
    SOURCES ParallelIndexSetTest.cpp
    COMPILE_DEFINITIONS "GRID_ID=${_GRID}"
108
    COMPILE_FLAGS "-fno-var-tracking-assignments"
109
110
111
112
113
114
115
116
117
    LABELS "ParallelIndexSetTest"
    LINK_LIBRARIES amdis
    MPI_RANKS 2 3 4
    TIMEOUT 300
    CMAKE_GUARD MPI_FOUND)
endforeach()
unset(_GRID)
endif()

118
119
120
121
122
123
124
125
126
127
128
129
130
131
if(BACKEND STREQUAL "PETSC")
foreach(_GRID RANGE 6)
  dune_add_test(NAME "PETScCommTest_${_GRID}"
    SOURCES PETScCommTest.cpp
    COMPILE_DEFINITIONS "GRID_ID=${_GRID}"
    LABELS "PETScCommTest"
    LINK_LIBRARIES amdis
    MPI_RANKS 2 3 4
    TIMEOUT 300
    CMAKE_GUARD MPI_FOUND)
endforeach()
unset(_GRID)
endif()

132
133
134
dune_add_test(SOURCES ProblemStatTest.cpp
  LINK_LIBRARIES amdis)

135
136
137
dune_add_test(SOURCES RangeTypeTest.cpp
  LINK_LIBRARIES amdis)

138
139
140
dune_add_test(SOURCES RecursiveTest.cpp
  LINK_LIBRARIES amdis)

Praetorius, Simon's avatar
Praetorius, Simon committed
141
dune_add_test(SOURCES StaticSizeTest.cpp
Praetorius, Simon's avatar
Praetorius, Simon committed
142
143
  LINK_LIBRARIES amdis)

144
145
dune_add_test(SOURCES StringTest.cpp
  LINK_LIBRARIES amdis)
146

Praetorius, Simon's avatar
Praetorius, Simon committed
147
148
149
dune_add_test(SOURCES SwitchCasesTest.cpp
  LINK_LIBRARIES amdis)

150
151
dune_add_test(SOURCES TreeContainerTest.cpp
  LINK_LIBRARIES amdis)
152

153
154
155
dune_add_test(SOURCES TreePathTest.cpp
  LINK_LIBRARIES amdis)

156
dune_add_test(SOURCES UniqueBorderPartitionTest.cpp
157
158
159
160
  LINK_LIBRARIES amdis
  MPI_RANKS 2
  TIMEOUT 300
  CMAKE_GUARD MPI_FOUND)
161
162
163

dune_add_test(SOURCES ValidTreePathTest.cpp
  LINK_LIBRARIES amdis)