forked from sstsimulator/sst-macro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
167 lines (136 loc) · 4.67 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# vim : set ts=4 sw=4 foldmethod=marker:
# This file is part of SST/macroscale:
# The macroscale architecture simulator from the SST suite.
# Copyright (c) 2009 Sandia Corporation.
# This software is distributed under the BSD License.
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
# the U.S. Government retains certain rights in this software.
# For more information, see the LICENSE file in the top
# SST/macroscale directory.
#
# SINGLETESTS are each run with their own specific rule. The other classes of tests (CORETESTS, CONFIGTESTS,
# etc.) get prefixes to the test names (test_core_apps_, test_configs_, etc.) which allows each set of test
# to be built/run by generic rules for that set.
include $(top_srcdir)/Makefile.common
AM_CPPFLAGS += -I$(top_builddir)/dumpi -I$(top_srcdir)/dumpi \
-I$(srcdir) -I$(top_builddir)/pth -I$(top_srcdir)/pth \
-I$(top_builddir)/tests -I$(top_srcdir)/tests
SUBDIRS = unit_tests sumi
if WITH_DEFAULT_MPI
SUBDIRS += api/mpi api/globals
endif
if USE_REPLACEMENT_HEADERS
SUBDIRS += external
endif
# runtest arguments are:
# <timeout, in seconds> <output file> <executable> <arguments passed to executable...>
PYRUNTEST = $(top_srcdir)/bin/runtest
DIFF=diff -u
if INTEGRATED_SST_CORE
OUTSUF=sst-out
SSTMACEXEC = $(top_builddir)/bin/sstmac-check
else
OUTSUF=ref-out
SSTMACEXEC = $(top_builddir)/bin/sstmac
endif
CHKSUF=chk-out
EXTRA_DIST = \
reference \
test_configs \
test_traces \
test_blas.cc \
test_utilities.cc \
test_uq.cc \
test_pthread.cc \
sstmac_testutil.h \
api/parameters.ini
CORE_LIBS = ../sstmac/install/libsstmac.la ../sprockit/sprockit/libsprockit.la
if USE_MPIPARALLEL
CORE_LIBS += ../sstmac/backends/mpi/libsstmac_mpi_runtime.la
endif
if EXTERNAL_BOOST
AM_LDFLAGS = $(BOOST_LDFLAGS)
AM_LDFLAGS += $(BOOST_REGEX_LIB)
endif
CORETESTS=
include Makefile.shared_core_tests
include Makefile.api_tests
if !INTEGRATED_SST_CORE
include Makefile.check_programs
include Makefile.single_tests
include Makefile.stats_tests
include Makefile.config_tests
include Makefile.unit_tests
include Makefile.alloc_tests
include Makefile.external_tests
include Makefile.skeleton_tests
include Makefile.tutorial_tests
include Makefile.core_tests
endif
#------------------------------------------------------------------------------------------#
# Collect and check outputs {{{#
#------------------------------------------------------------------------------------------#
CHECK_TESTS = \
$(SINGLETESTS) \
$(CORETESTS) \
$(STATSTESTS) \
$(CONFIGTESTS) \
$(UNITTESTS) \
$(ALLOCTESTS)
if USE_REPLACEMENT_HEADERS
CHECK_TESTS += $(EXTERNALTESTS)
endif
INSTALLCHECK_TESTS = \
$(SKELETONTESTS) \
$(TUTORIALTESTS)
if INTEGRATED_SST_CORE
INSTALLCHECK_TESTS += $(APITESTS)
else
CHECK_TESTS += $(APITESTS)
endif
DIFF_CHECK_TEST_REPORT = $(SSTMACRO_TEST_REPORT_PREFIX)diff-cpp.test_report.xml
$(DIFF_CHECK_TEST_REPORT): $(CHECK_TESTS:%=%.$(CHKSUF)) $(CHECK_TESTS:%=reference/%.$(OUTSUF))
-$(PERL) $(top_srcdir)/bin/difftoxml.pl \
--xmlout $@ \
--suitename "diff-cpp" \
--outfiledir $(srcdir)/reference \
--outsuffix $(OUTSUF) \
--chksuffix $(CHKSUF) \
--verbose $(CHECK_TESTS)
DIFF_INSTALLCHECK_TEST_REPORT = \
$(SSTMACRO_TEST_REPORT_PREFIX)diff-installcheck.test_report.xml
$(DIFF_INSTALLCHECK_TEST_REPORT): $(INSTALLCHECK_TESTS:%=%.$(CHKSUF)) $(INSTALLCHECK_TESTS:%=reference/%.$(OUTSUF))
-$(PERL) $(top_srcdir)/bin/difftoxml.pl \
--xmlout $@ \
--suitename "diff-skeletons" \
--outfiledir $(srcdir)/reference \
--outsuffix $(OUTSUF) \
--chksuffix $(CHKSUF) \
--verbose $(INSTALLCHECK_TESTS)
check-local: $(DIFF_CHECK_TEST_REPORT)
$(PERL) $(top_srcdir)/bin/counttestresults.pl $^
installcheck-local: $(DIFF_INSTALLCHECK_TEST_REPORT)
$(PERL) $(top_srcdir)/bin/counttestresults.pl $^
#------------------------------------------------------------------------------------------#
#------------------------------------------------------------------------------------------#
# Clean {{{#
#------------------------------------------------------------------------------------------#
clean-local: clean-skeletons clean-tutorials
rm -f *.$(CHKSUF)
rm -f *.test_report.xml
rm -f net.dot
rm -f callgrind.out
rm -f tracer_nodemap.txt
rm -f *.csv
rm -f nodes_app*.out
rm -rf traces
rm -f *.bin *.meta *.map
rm -f router_study_app_params.ini
rm -f *temp*.out
rm -f *.ERROR
rm -f test.model
clean-skeletons:
rm -rf skeletons
clean-tutorials:
rm -rf tutorials
#------------------------------------------------------------------------------------------#