-
Notifications
You must be signed in to change notification settings - Fork 29
/
Check.mak.in
62 lines (57 loc) · 1.86 KB
/
Check.mak.in
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
#
# @configure_input@
#
# 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 = @TEST_LIST@
# Execute the tests
check: site.exp @DEFAULT_TARGS@ test
DEJAGNU="./config/testing.exp" $(RUNTEST) $(RUNTESTFLAGS) \
--tool testing --srcdir . $(TEST)
FAST_TEST=1-hot-potato
check1: site.exp @DEFAULT_TARGS@ 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 @host_os@" >> ./tmp0
@echo "set host_alias unreliable" >> ./tmp0
@echo "set host_cpu @host_cpu@" >> ./tmp0
@echo "set host_vendor @host_vendor@" >> ./tmp0
@echo "set target_os @target_os@" >> ./tmp0
@echo "set target_alias @target_alias@" >> ./tmp0
@echo "set target_cpu @target_cpu@" >> ./tmp0
@echo "set target_vendor @target_vendor@" >> ./tmp0
@echo "set host_triplet @host@" >> ./tmp0
@echo "set target_triplet @target@">>./tmp0
@echo "set tool binutils" >> ./tmp0
@echo "set srcdir @srcdir@" >> ./tmp0
@echo "set objdir `pwd`" >> ./tmp0
@echo "set launch @LAUNCH@" >> ./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