[llvm-commits] [test-suite] r47885 - /test-suite/trunk/RunSafely.sh
Lauro Ramos Venancio
lauro.venancio at gmail.com
Tue Mar 4 06:38:02 PST 2008
Author: laurov
Date: Tue Mar 4 08:38:01 2008
New Revision: 47885
URL: http://llvm.org/viewvc/llvm-project?rev=47885&view=rev
Log:
Fix JIT tests.
Modified:
test-suite/trunk/RunSafely.sh
Modified: test-suite/trunk/RunSafely.sh
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/RunSafely.sh?rev=47885&r1=47884&r2=47885&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Tue Mar 4 08:38:01 2008
@@ -99,17 +99,11 @@
# necessary I/O redirection.
#
PWD=`pwd`
-COMMAND="$PWD/$PROGRAM $*"
+COMMAND="$PROGRAM $*"
if [ "$SYSTEM" = "Darwin" ]; then
COMMAND="${DIR}TimedExec.sh $ULIMIT $PWD $COMMAND"
fi
-rm -f "$PWD/${PROGRAM}.command"
-rm -f "$PWD/${PROGRAM}.remote"
-rm -f "$PWD/${PROGRAM}.remote.time"
-echo "$ULIMITCMD (time -p ($COMMAND > $PWD/$OUTFILE.remote 2>&1 < $INFILE;); echo exit $?) > $PWD/$OUTFILE.remote.time 2>&1" > "$PWD/${PROGRAM}.command"
-chmod +x "$PWD/${PROGRAM}.command"
-
if [ "x$RHOST" = x ] ; then
( sh -c "$ULIMITCMD"; time -p sh -c "$COMMAND >$OUTFILE 2>&1 < $INFILE" ; echo exit $? ) 2>&1 \
| awk -- '\
@@ -119,6 +113,12 @@
!/^user/ && !/^sys/ { print; }
END { printf("program %f\n", cpu); }' > $OUTFILE.time
else
+ rm -f "$PWD/${PROGRAM}.command"
+ rm -f "$PWD/${PROGRAM}.remote"
+ rm -f "$PWD/${PROGRAM}.remote.time"
+ echo "$ULIMITCMD cd $PWD; (time -p ($COMMAND > $OUTFILE.remote 2>&1 < $INFILE;); echo exit $?) > $OUTFILE.remote.time 2>&1" > "$PWD/${PROGRAM}.command"
+ chmod +x "$PWD/${PROGRAM}.command"
+
( rsh -l $RUSER $RHOST "ls $PWD/${PROGRAM}.command" ) > /dev/null 2>&1
( rsh -l $RUSER $RHOST "$PWD/${PROGRAM}.command" )
cat $OUTFILE.remote.time | awk -- '\
More information about the llvm-commits
mailing list