* Added "test0" test bucket from SCEI. Due to changes in the behavior specs
[deliverable/binutils-gdb.git] / sim / testsuite / sky / Makefile.in
1 # Makefile for regression testing the sky simulator.
2
3
4 VPATH = @srcdir@
5 srcdir = @srcdir@
6 srcroot = $(srcdir)/..
7
8 prefix = @prefix@
9 exec_prefix = @exec_prefix@
10
11 host_alias = @host_alias@
12 target_alias = @target_alias@
13 program_transform_name = @program_transform_name@
14 build_canonical = @build@
15 host_canonical = @host@
16 target_canonical = @target@
17 target_cpu = @target_cpu@
18
19
20 SHELL = /bin/sh
21 SUBDIRS = @subdirs@
22 RPATH_ENVVAR = @RPATH_ENVVAR@
23
24 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
25 echo $${rootme}/../../expect/expect ; \
26 else echo expect ; fi`
27
28 RUNTEST = $(RUNTEST_FOR_TARGET)
29
30 RUNTESTFLAGS =
31
32 RUNTEST_FOR_TARGET = `\
33 if [ -f $${srcdir}/../../../dejagnu/runtest ]; then \
34 echo $${srcdir}/../../../dejagnu/runtest; \
35 else \
36 if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
37 echo runtest; \
38 else \
39 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
40 fi; \
41 fi`
42
43
44 AS_FOR_TARGET = `\
45 if [ -x ../../../gas/as-new ]; then \
46 echo ../../../gas/as-new ; \
47 else \
48 echo $(target_alias)-as ; \
49 fi`
50
51 LD_FOR_TARGET = `\
52 if [ -x ../../../ld/ld-new ]; then \
53 echo ../../../ld/ld-new ; \
54 else \
55 echo $(target_alias)-ld ; \
56 fi`
57
58 RUNOPTS =
59
60 RUN_FOR_TARGET = `\
61 if [ -x ../../../sim/mips/run ]; then \
62 echo ../../../sim/mips/run ; \
63 else \
64 echo $(target_alias)-run ; \
65 fi` $(RUNOPTS)
66
67 GCC_FOR_TARGET = `\
68 if [ -x ../../../gcc/xgcc ]; then \
69 echo ../../../gcc/xgcc ; \
70 else \
71 echo $(target_alias)-gcc ; \
72 fi`
73
74 C_GEN = /build/sky-tools/c_gen.pl
75
76 .SUFFIXES: .trc .c .run .ok .vif0out .vif0ok .vif0expect .vif1out .vif1ok .vif1expect .uu
77
78 TESTS = \
79 t-pke1.vif0ok \
80 t-pke2.vif1ok \
81 t-pke3.ok \
82 t-pke4.vif0ok \
83 tss08_0.ok \
84 tss08_1.ok \
85 tss16_0.ok \
86 tss16_1.ok \
87 tss32_0.ok \
88 tss32_1.ok \
89 tsv208_0.ok \
90 tsv208_1.ok \
91 tsv216_0.ok \
92 tsv216_1.ok \
93 tsv232_0.ok \
94 tsv232_1.ok \
95 tsv308_0.ok \
96 tsv308_1.ok \
97 tsv316_0.ok \
98 tsv316_1.ok \
99 tsv332_0.ok \
100 tsv332_1.ok \
101 tsv408_0.ok \
102 tsv408_1.ok \
103 tsv416_0.ok \
104 tsv416_1.ok \
105 tsv432_0.ok \
106 tsv432_1.ok
107
108
109 check: sanity
110 -$(MAKE) -k $(TESTS)
111 sanity:
112 @eval echo AS_FOR_TARGET = $(AS_FOR_TARGET)
113 @eval echo LD_FOR_TARGET = $(LD_FOR_TARGET)
114 @eval echo RUN_FOR_TARGET = $(RUN_FOR_TARGET)
115 @eval echo GCC_FOR_TARGET = $(GCC_FOR_TARGET)
116
117
118 # Rules for running the tests
119
120 .run.ok:
121 rm -f tmp-$* $*.hi
122 ulimit -t 30 ; $(RUN_FOR_TARGET) $< > tmp-$*
123 mv tmp-$* $*.ok
124 .run.ko:
125 rm -f tmp-$* $*.ko
126 set +e ; \
127 ulimit -t 30 ; $(RUN_FOR_TARGET) $< > tmp-$* ; \
128 if [ $$? -ne 0 ] ; then \
129 exit 0 ; \
130 else \
131 exit 1 ; \
132 fi
133 mv tmp-$* $*.ko
134 .vif0out.vif0ok:
135 diff $(srcdir)/$*.vif0expect $<
136 touch $@
137 .vif1out.vif1ok:
138 diff $(srcdir)/$*.vif1expect $<
139 touch $@
140
141 # Rules for building all the tests
142
143 .trc.c:
144 $(C_GEN) $< $@
145 .c.run:
146 $(GCC_FOR_TARGET) -Tr5900.ld -o $@ $<
147 .uu.run:
148 uudecode $< > $@
149 .run.vif0out:
150 rm -f $@
151 -env VIF0_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
152 .run.vif1out:
153 rm -f $@
154 -env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
155
156
157
158 #
159 # Standard
160 #
161 clean mostlyclean:
162 -rm -f *~ core *.o a.out *.x *.grt
163 -rm -f *.vif*out *.ok tmp-*
164 rm -f $(TESTS)
165 # if [ x"${SUBDIRS}" != x ] ; then \
166 # for dir in ${SUBDIRS}; \
167 # do \
168 # echo "$$dir:"; \
169 # if [ -d $$dir ]; then \
170 # (cd $$dir; $(MAKE) clean); \
171 # fi; \
172 # done ; \
173 # else true; fi
174
175 distclean maintainer-clean realclean: clean
176 -rm -f *~ core
177 -rm -f Makefile config.status *-init.exp
178 -rm -fr *.log summary detail *.plog *.sum *.psum site.*
179 # if [ x"${SUBDIRS}" != x ] ; then \
180 # for dir in ${SUBDIRS}; \
181 # do \
182 # echo "$$dir:"; \
183 # if [ -d $$dir ]; then \
184 # (cd $$dir; $(MAKE) distclean); \
185 # fi; \
186 # done ; \
187 # else true; fi
188
189 Makefile : Makefile.in config.status
190 $(SHELL) config.status
191
192 config.status: configure
193 $(SHELL) config.status --recheck
This page took 0.043835 seconds and 4 git commands to generate.