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

3
4
5
dune_add_test(SOURCES AccessTest.cpp
  LINK_LIBRARIES amdis)

Müller, Felix's avatar
Müller, Felix committed
6
7
8
dune_add_test(SOURCES AdaptInfoTest.cpp
  LINK_LIBRARIES amdis)

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

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

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

dune_add_test(SOURCES DataTransferTest3d.cpp
  LINK_LIBRARIES amdis)

28
29
30
31
32
33
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
34
35
36
dune_add_test(SOURCES DOFVectorTest.cpp
  LINK_LIBRARIES amdis)

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

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

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

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

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

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

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

58
59
60
61
62
63
dune_add_test(SOURCES GlobalIdSetTest.cpp
  LINK_LIBRARIES amdis
  MPI_RANKS 2
  TIMEOUT 300
  CMAKE_GUARD MPI_FOUND)

64
65
66
dune_add_test(SOURCES GradientTest.cpp
  LINK_LIBRARIES amdis)

67
68
69
dune_add_test(SOURCES HybridSizeTest.cpp
  LINK_LIBRARIES amdis)

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

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

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

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

90
91
92
dune_add_test(SOURCES MultiTypeVectorTest.cpp
  LINK_LIBRARIES amdis)

93
94
95
dune_add_test(SOURCES MultiTypeMatrixTest.cpp
  LINK_LIBRARIES amdis)

96
97
98
dune_add_test(SOURCES NodeIndicesTest.cpp
  LINK_LIBRARIES amdis)

99
100
101
dune_add_test(SOURCES ObserverTest.cpp
  LINK_LIBRARIES amdis)

102
103
104
dune_add_test(SOURCES OperationsTest.cpp
  LINK_LIBRARIES amdis)

105
106
107
dune_add_test(SOURCES OperatorsTest.cpp
  LINK_LIBRARIES amdis)

108
if(BACKEND STREQUAL "PETSC" OR BACKEND STREQUAL "ISTL")
109
110
111
112
113
114
115
116
117
118
119
120
121
foreach(_GRID RANGE 6)
  dune_add_test(NAME "ParallelIndexSetTest_${_GRID}"
    SOURCES ParallelIndexSetTest.cpp
    COMPILE_DEFINITIONS "GRID_ID=${_GRID}"
    LABELS "ParallelIndexSetTest"
    LINK_LIBRARIES amdis
    MPI_RANKS 2 3 4
    TIMEOUT 300
    CMAKE_GUARD MPI_FOUND)
endforeach()
unset(_GRID)
endif()

122
123
124
125
126
127
128
129
130
131
132
133
134
135
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()

136
137
138
dune_add_test(SOURCES ProblemStatTest.cpp
  LINK_LIBRARIES amdis)

139
140
141
dune_add_test(SOURCES RangeTypeTest.cpp
  LINK_LIBRARIES amdis)

142
143
144
dune_add_test(SOURCES ResizeTest.cpp
  LINK_LIBRARIES amdis)

Praetorius, Simon's avatar
Praetorius, Simon committed
145
dune_add_test(SOURCES StaticSizeTest.cpp
Praetorius, Simon's avatar
Praetorius, Simon committed
146
147
  LINK_LIBRARIES amdis)

148
149
dune_add_test(SOURCES StringTest.cpp
  LINK_LIBRARIES amdis)
150

Praetorius, Simon's avatar
Praetorius, Simon committed
151
152
153
dune_add_test(SOURCES SwitchCasesTest.cpp
  LINK_LIBRARIES amdis)

154
155
dune_add_test(SOURCES TreeDataTest.cpp
  LINK_LIBRARIES amdis)
156
157
158

dune_add_test(SOURCES TreeContainerTest.cpp
  LINK_LIBRARIES amdis)
159
160
161

dune_add_test(SOURCES TypeTraitsTest.cpp
  LINK_LIBRARIES amdis)
162
163

dune_add_test(SOURCES UniqueBorderPartitionTest.cpp
164
165
166
167
  LINK_LIBRARIES amdis
  MPI_RANKS 2
  TIMEOUT 300
  CMAKE_GUARD MPI_FOUND)