forked from llnl/mpiP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCheck.mak
More file actions
62 lines (57 loc) · 1.85 KB
/
Check.mak
File metadata and controls
62 lines (57 loc) · 1.85 KB
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
#
# Check.mak. Generated from Check.mak.in by configure.
#
# Make targets for dejagnu evaluation of test codes
#
# $Id$
#
# Look for a local version of DejaGnu, otherwise use one in the path
RUNTEST = `if test -f $(top_srcdir)/../dejagnu/runtest; then \
echo $(top_srcdir) ../dejagnu/runtest; \
else \
echo runtest; \
fi`
# The flags to pass to runtest
RUNTESTFLAGS =
TEST =
# Execute the tests
check: site.exp ${SHARED_C_TARGET} test
DEJAGNU="./config/testing.exp" $(RUNTEST) $(RUNTESTFLAGS) \
--tool testing --srcdir . $(TEST)
FAST_TEST=1-hot-potato
check1: site.exp ${SHARED_C_TARGET} test
DEJAGNU="./config/testing.exp" $(RUNTEST) $(RUNTESTFLAGS) \
--tool testing --srcdir . ${FAST_TEST}.exp
# Make the local config file
site.exp: ./config.status Makefile
@echo "Making a new config file..."
-@rm -f ./tmp?
@touch site.exp
-@mv site.exp site.bak
@echo "## these variables are automatically\
generated by make ##" > ./tmp0
@echo "# Do not edit here. If you wish to\
override these values" >> ./tmp0
@echo "# add them to the last section" >> ./tmp0
@echo "set host_os linux-gnu" >> ./tmp0
@echo "set host_alias unreliable" >> ./tmp0
@echo "set host_cpu x86_64" >> ./tmp0
@echo "set host_vendor pc" >> ./tmp0
@echo "set target_os linux-gnu" >> ./tmp0
@echo "set target_alias " >> ./tmp0
@echo "set target_cpu x86_64" >> ./tmp0
@echo "set target_vendor pc" >> ./tmp0
@echo "set host_triplet x86_64-pc-linux-gnu" >> ./tmp0
@echo "set target_triplet x86_64-pc-linux-gnu">>./tmp0
@echo "set tool binutils" >> ./tmp0
@echo "set srcdir ." >> ./tmp0
@echo "set objdir `pwd`" >> ./tmp0
@echo "set launch mpirun" >> ./tmp0
@echo "## All variables above are generated by\
configure. Do Not Edit ##" >> ./tmp0
@cat ./tmp0 > site.exp
@sed < site.bak \
-e '1,/^## All variables above are.*##/ d' \
>> site.exp
-@rm -f ./tmp?
##### EOF