* Makefile.in (ULIMIT): New variable.

(sce%.ok): Use it.
	(.run.ok,.run.ko): Ditto.
This commit is contained in:
Doug Evans 1998-04-17 21:21:12 +00:00
parent 987a81ecf3
commit d8d0c6a627
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Fri Apr 17 14:17:17 1998 Doug Evans <devans@canuck.cygnus.com>
* Makefile.in (ULIMIT): New variable.
(sce%.ok): Use it.
(.run.ok,.run.ko): Ditto.
Fri Apr 17 14:47:53 1998 Frank Ch. Eigler <fche@cygnus.com>
* t-cop2b.c: New test for COP2 via inline asm.

View File

@ -87,6 +87,9 @@ GCC_FOR_TARGET = `\
C_GEN = perl $(srcdir)/c_gen.pl
# cpu time limit (in seconds)
ULIMIT = 30
.SUFFIXES: .trc .c .run .ok \
.vif0out .vif0ok .vif0expect \
.vif1out .vif1ok .vif1expect \
@ -171,7 +174,7 @@ sce2_%.vu.o: sce2_%.vuasm
sce%.ok: sce%.exe
rm -f sce$*.ok
ulimit -t 30 ; $(RUN_FOR_TARGET) $< > sce$*_our_gif.dat; \
ulimit -t $(ULIMIT) ; $(RUN_FOR_TARGET) $< > sce$*_our_gif.dat; \
if [ $$? -ne 0 ]; then \
touch sce$*.ok; \
else \
@ -188,12 +191,12 @@ sce%.ok: sce%.exe
.run.ok:
rm -f tmp-$* $*.hi
ulimit -t 30 ; $(RUN_FOR_TARGET) $< > tmp-$*
ulimit -t $(ULIMIT) ; $(RUN_FOR_TARGET) $< > tmp-$*
mv tmp-$* $*.ok
.run.ko:
rm -f tmp-$* $*.ko
set +e ; \
ulimit -t 30 ; $(RUN_FOR_TARGET) $< > tmp-$* ; \
ulimit -t $(ULIMIT) ; $(RUN_FOR_TARGET) $< > tmp-$* ; \
if [ $$? -ne 0 ] ; then \
exit 0 ; \
else \