Makefile.am 6.08 KB
Newer Older
1
# This file is part of SWIFT.
2
# Copyright (c) 2015 matthieu.schaller@durham.ac.uk.
3
#
4
5
6
7
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
8
#
9
10
11
12
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
13
#
14
15
16
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

17
# Add the source directory and the non-standard paths to the included library headers to CFLAGS
18
AM_CFLAGS = -I$(top_srcdir)/src $(HDF5_CPPFLAGS) $(GSL_INCS) $(FFTW_INCS) $(NUMA_INCS) $(OPENMP_CFLAGS)
19

20
AM_LDFLAGS = ../src/.libs/libswiftsim.a $(HDF5_LDFLAGS) $(HDF5_LIBS) $(FFTW_LIBS) $(NUMA_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(TBBMALLOC_LIBS) $(GRACKLE_LIBS) $(GSL_LIBS) $(PROFILER_LIBS)
21

22
# List of programs and scripts to run in the test suite
23
TESTS = testGreetings testMaths testReading.sh testKernel testKernelLongGrav \
24
        testActivePair.sh test27cells.sh test27cellsPerturbed.sh testExp \
25
        testParser.sh test125cells.sh test125cellsPerturbed.sh testFFT \
26
        testAdiabaticIndex testRandom testRandomSpacing testErfc \
27
        testMatrixInversion testThreadpool testDump testLogger testInteractions.sh \
28
        testVoronoi1D testVoronoi2D testVoronoi3D testGravityDerivatives \
29
	testPeriodicBC.sh testPeriodicBCPerturbed.sh testPotentialSelf \
30
	testPotentialPair testEOS testUtilities testSelectOutput.sh \
31
	testCbrt testCosmology testOutputList \
32
	test27cellsStars.sh test27cellsStarsPerturbed.sh testHydroMPIrules \
33
        testAtomic testGravitySpeed
34

35
# List of test programs to compile
36
check_PROGRAMS = testGreetings testReading testTimeIntegration testKernelLongGrav \
37
		 testActivePair test27cells test27cells_subset test125cells testParser \
38
                 testKernel testFFT testInteractions testMaths testRandom testExp \
39
                 testSymmetry testThreadpool testRandomSpacing testErfc \
40
                 testAdiabaticIndex testRiemannExact testRiemannTRRS \
41
                 testRiemannHLLC testMatrixInversion testDump testLogger \
42
		 testVoronoi1D testVoronoi2D testVoronoi3D testPeriodicBC \
lhausamm's avatar
lhausamm committed
43
		 testGravityDerivatives testPotentialSelf testPotentialPair testEOS testUtilities \
44
		 testSelectOutput testCbrt testCosmology testOutputList test27cellsStars \
45
		 test27cellsStars_subset testCooling testComovingCooling testFeedback testHashmap \
46
                 testAtomic testHydroMPIrules testGravitySpeed
47

48
49
# Rebuild tests when SWIFT is updated.
$(check_PROGRAMS): ../src/.libs/libswiftsim.a
50
51
52

# Sources for the individual programs
testGreetings_SOURCES = testGreetings.c
53

54
55
testMaths_SOURCES = testMaths.c

56
57
testAtomic_SOURCES = testAtomic.c

58
59
testRandom_SOURCES = testRandom.c

60
61
testRandomSpacing_SOURCES = testRandomSpacing.c

62
testReading_SOURCES = testReading.c
63

lhausamm's avatar
lhausamm committed
64
65
testSelectOutput_SOURCES = testSelectOutput.c

lhausamm's avatar
lhausamm committed
66
67
testCosmology_SOURCES = testCosmology.c

Loic Hausammann's avatar
Loic Hausammann committed
68
69
testOutputList_SOURCES = testOutputList.c

70
71
testSymmetry_SOURCES = testSymmetry.c

72
# Added because of issues using memcmp on clang 4.x
73
74
testSymmetry_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp

75
testTimeIntegration_SOURCES = testTimeIntegration.c
Matthieu Schaller's avatar
Matthieu Schaller committed
76

77
testActivePair_SOURCES = testActivePair.c
78

79
80
test27cells_SOURCES = test27cells.c

81
82
test27cells_subset_SOURCES = test27cells.c

83
test27cells_subset_CFLAGS = $(AM_CFLAGS) -DTEST_DOSELF_SUBSET -DTEST_DOPAIR_SUBSET
84

Loic Hausammann's avatar
Loic Hausammann committed
85
86
87
88
89
90
test27cellsStars_SOURCES = test27cellsStars.c

test27cellsStars_subset_SOURCES = test27cellsStars.c

test27cellsStars_subset_CFLAGS = $(AM_CFLAGS) -DTEST_DOSELF_SUBSET -DTEST_DOPAIR_SUBSET

91
92
testPeriodicBC_SOURCES = testPeriodicBC.c

93
94
test125cells_SOURCES = test125cells.c

95
testParser_SOURCES = testParser.c
96

97
98
testKernel_SOURCES = testKernel.c

99
100
testKernelLongGrav_SOURCES = testKernelLongGrav.c

Matthieu Schaller's avatar
Matthieu Schaller committed
101
102
testFFT_SOURCES = testFFT.c

103
testInteractions_SOURCES = testInteractions.c
104

105
106
107
testAdiabaticIndex_SOURCES = testAdiabaticIndex.c

testRiemannExact_SOURCES = testRiemannExact.c
108

109
110
testRiemannTRRS_SOURCES = testRiemannTRRS.c

111
112
testRiemannHLLC_SOURCES = testRiemannHLLC.c

113
114
testMatrixInversion_SOURCES = testMatrixInversion.c

115
testVoronoi1D_SOURCES = testVoronoi1D.c
116

117
testVoronoi2D_SOURCES = testVoronoi2D.c
118

119
testVoronoi3D_SOURCES = testVoronoi3D.c
120

121
testThreadpool_SOURCES = testThreadpool.c
122

123
124
testDump_SOURCES = testDump.c

125
126
testLogger_SOURCES = testLogger.c

127
128
testExp_SOURCES = testExp.c

129
130
testErfc_SOURCES = testErfc.c

131
132
testGravityDerivatives_SOURCES = testGravityDerivatives.c

133
134
testGravitySpeed_SOURCES = testGravitySpeed.c

135
testPotentialSelf_SOURCES = testPotentialSelf.c
136

137
138
testPotentialPair_SOURCES = testPotentialPair.c

Jacob Kegerreis 's avatar
Jacob Kegerreis committed
139
140
testEOS_SOURCES = testEOS.c

141
testUtilities_SOURCES = testUtilities.c
Pedro Gonnet's avatar
Pedro Gonnet committed
142

143
144
testCooling_SOURCES = testCooling.c

145
146
testComovingCooling_SOURCES = testComovingCooling.c

Alexei Borissov's avatar
Alexei Borissov committed
147
148
testFeedback_SOURCES = testFeedback.c

James Willis's avatar
James Willis committed
149
150
testHashmap_SOURCES = testHashmap.c

151
152
testHydroMPIrules = testHydroMPIrules.c

153
# Files necessary for distribution
154
EXTRA_DIST = testReading.sh makeInput.py testActivePair.sh \
155
	     test27cells.sh test27cellsPerturbed.sh testParser.sh testPeriodicBC.sh \
156
157
	     testPeriodicBCPerturbed.sh test125cells.sh test125cellsPerturbed.sh testParserInput.yaml \
	     difffloat.py tolerance_125_normal.dat tolerance_125_perturbed.dat \
158
             tolerance_27_normal.dat tolerance_27_perturbed.dat tolerance_27_perturbed_h.dat tolerance_27_perturbed_h2.dat \
159
	     tolerance_testInteractions.dat tolerance_pair_active.dat tolerance_pair_force_active.dat \
Jacob Kegerreis 's avatar
Jacob Kegerreis committed
160
	     fft_params.yml tolerance_periodic_BC_normal.dat tolerance_periodic_BC_perturbed.dat \
161
162
	     testEOS.sh testEOS_plot.sh testSelectOutput.sh selectOutput.yml \
             output_list_params.yml output_list_time.txt output_list_redshift.txt \
Loic Hausammann's avatar
Loic Hausammann committed
163
164
             output_list_scale_factor.txt testEOS.sh testEOS_plot.sh \
	     test27cellsStars.sh test27cellsStarsPerturbed.sh star_tolerance_27_normal.dat \
165
	     star_tolerance_27_perturbed.dat star_tolerance_27_perturbed_h.dat star_tolerance_27_perturbed_h2.dat