* Makefile.in (ULIMIT): New variable.
authorDoug Evans <dje@google.com>
Fri, 17 Apr 1998 21:21:12 +0000 (21:21 +0000)
committerDoug Evans <dje@google.com>
Fri, 17 Apr 1998 21:21:12 +0000 (21:21 +0000)
(sce%.ok): Use it.
(.run.ok,.run.ko): Ditto.

sim/testsuite/sky/ChangeLog
sim/testsuite/sky/Makefile.in

index 0bdf249461c33f2a01f4c84b30529fcaa9c577fa..544742b20f12700cecd23c36f51e430e4ac15f05 100644 (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.
index 8adbf1898b0155d0c95bea9fa831f9e6ed6e5041..cc14741b3154fbf5d224a79d732ea91b5202821d 100644 (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 \