]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/common/Make-common.in
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / testsuite / common / Make-common.in
1 check: sanity $(TESTS)
2 sanity:
3 @eval echo AS_FOR_TARGET = $(AS_FOR_TARGET)
4 @eval echo LD_FOR_TARGET = $(LD_FOR_TARGET)
5 @eval echo RUN_FOR_TARGET = $(RUN_FOR_TARGET)
6
7 # Rules for running the tests
8
9 .SUFFIXES: .ok .run .hi .ko
10 .run.ok:
11 rm -f tmp-$* $*.hi
12 ulimit -t 5 ; \
13 $(RUN_FOR_TARGET) $(RUNFLAGS_FOR_TARGET) $*.run > tmp-$*
14 mv tmp-$* $*.ok
15 .run.hi:
16 rm -f tmp-$* $*.hi diff-$*
17 ulimit -t 5 ; \
18 $(RUN_FOR_TARGET) $(RUNFLAGS_FOR_TARGET) $*.run > tmp-$*
19 echo 'Hello World!' | diff - tmp-$* > diff-$*
20 cat tmp-$* diff-$* > $*.hi
21 .run.ko:
22 rm -f tmp-$* $*.ko
23 set +e ; \
24 ulimit -t 5 ; \
25 $(RUN_FOR_TARGET) $(RUNFLAGS_FOR_TARGET) $*.run > tmp-$* ; \
26 if [ $$? -eq 47 ] ; then \
27 exit 0 ; \
28 else \
29 exit 1 ; \
30 fi
31 mv tmp-$* $*.ko
32
33
34 # Rules for building the test
35 # Preference is for obtaining the executable (.run) from a prebuilt image
36
37 .SUFFIXES: .uue .s .S .run
38 .uue.run:
39 head $* | grep $*.run > /dev/null
40 uudecode $*.uue
41 .run.u:
42 uuencode < $*.run $*.run > $*.u
43 .o.run:
44 $(LD_FOR_TARGET) $(LDFLAGS_FOR_TARGET) -o $*.run $*.o
45 .s.o:
46 $(AS_FOR_TARGET) $(ASFLAGS_FOR_TARGET) $(srcdir)/$*.s -o $*.o
47 .S.o:
48 $(AS_FOR_TARGET) $(ASFLAGS_FOR_TARGET) $(srcdir)/$*.S -o $*.o