* Updated build to allow srcdir != objdir. Tests still do not use dejagnu.
This commit is contained in:
parent
f0bb94cd67
commit
8accf4df14
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Feb 27 16:53:29 1998 Frank Ch. Eigler <fche@cygnus.com>
|
||||||
|
|
||||||
|
* Makefile.in (*): Changes now allow test case srcdir != objdir.
|
||||||
|
Switched to "r5900.ld" linker script.
|
||||||
|
|
||||||
Wed Feb 25 14:24:04 1998 Frank Ch. Eigler <fche@cygnus.com>
|
Wed Feb 25 14:24:04 1998 Frank Ch. Eigler <fche@cygnus.com>
|
||||||
|
|
||||||
* t-pke3.trc: Added tests for PKEcode[i] stalling and masking,
|
* t-pke3.trc: Added tests for PKEcode[i] stalling and masking,
|
||||||
|
|
|
@ -73,7 +73,7 @@ GCC_FOR_TARGET = `\
|
||||||
|
|
||||||
C_GEN = /build/sky-tools/c_gen.pl
|
C_GEN = /build/sky-tools/c_gen.pl
|
||||||
|
|
||||||
.SUFFIXES: .trc .c .run .ok .vif0out .vif0ok .vif0expect .vif1out .vif1ok .vif1expect
|
.SUFFIXES: .trc .c .run .ok .vif0out .vif0ok .vif0expect .vif1out .vif1ok .vif1expect .uu
|
||||||
|
|
||||||
TESTS = \
|
TESTS = \
|
||||||
t-pke1.c \
|
t-pke1.c \
|
||||||
|
@ -99,12 +99,12 @@ sanity:
|
||||||
|
|
||||||
.run.ok:
|
.run.ok:
|
||||||
rm -f tmp-$* $*.hi
|
rm -f tmp-$* $*.hi
|
||||||
ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$*
|
ulimit -t 5 ; $(RUN_FOR_TARGET) $< > tmp-$*
|
||||||
mv tmp-$* $*.ok
|
mv tmp-$* $*.ok
|
||||||
.run.ko:
|
.run.ko:
|
||||||
rm -f tmp-$* $*.ko
|
rm -f tmp-$* $*.ko
|
||||||
set +e ; \
|
set +e ; \
|
||||||
ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$* ; \
|
ulimit -t 5 ; $(RUN_FOR_TARGET) $< > tmp-$* ; \
|
||||||
if [ $$? -ne 0 ] ; then \
|
if [ $$? -ne 0 ] ; then \
|
||||||
exit 0 ; \
|
exit 0 ; \
|
||||||
else \
|
else \
|
||||||
|
@ -112,10 +112,10 @@ sanity:
|
||||||
fi
|
fi
|
||||||
mv tmp-$* $*.ko
|
mv tmp-$* $*.ko
|
||||||
.vif0out.vif0ok:
|
.vif0out.vif0ok:
|
||||||
diff $*.vif0expect $<
|
diff $(srcdir)/$*.vif0expect $<
|
||||||
touch $@
|
touch $@
|
||||||
.vif1out.vif1ok:
|
.vif1out.vif1ok:
|
||||||
diff $*.vif1expect $<
|
diff $(srcdir)/$*.vif1expect $<
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
# Rules for building all the tests
|
# Rules for building all the tests
|
||||||
|
@ -123,13 +123,15 @@ sanity:
|
||||||
.trc.c:
|
.trc.c:
|
||||||
$(C_GEN) $< $@
|
$(C_GEN) $< $@
|
||||||
.c.run:
|
.c.run:
|
||||||
$(GCC_FOR_TARGET) -Tr5900idt.ld -o $@ $<
|
$(GCC_FOR_TARGET) -Tr5900.ld -o $@ $<
|
||||||
|
.uu.run:
|
||||||
|
uudecode $< > $@
|
||||||
.run.vif0out:
|
.run.vif0out:
|
||||||
rm -f $@
|
rm -f $@
|
||||||
-env VIF0_TRACE_FILE=$@ $(RUN_FOR_TARGET) $*.run
|
-env VIF0_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
|
||||||
.run.vif1out:
|
.run.vif1out:
|
||||||
rm -f $@
|
rm -f $@
|
||||||
-env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $*.run
|
-env VIF1_TRACE_FILE=$@ $(RUN_FOR_TARGET) $<
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue