[llvm-commits] [test-suite] r59215 - in /test-suite/trunk: Makefile.programs RunSafely.sh
Evan Cheng
evan.cheng at apple.com
Wed Nov 12 19:24:49 PST 2008
Author: evancheng
Date: Wed Nov 12 21:24:49 2008
New Revision: 59215
URL: http://llvm.org/viewvc/llvm-project?rev=59215&view=rev
Log:
Allow remote JIT testing.
Modified:
test-suite/trunk/Makefile.programs
test-suite/trunk/RunSafely.sh
Modified: test-suite/trunk/Makefile.programs
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.programs?rev=59215&r1=59214&r2=59215&view=diff
==============================================================================
--- test-suite/trunk/Makefile.programs (original)
+++ test-suite/trunk/Makefile.programs Wed Nov 12 21:24:49 2008
@@ -163,11 +163,6 @@
profile:: $(PROFOUTPUT)
print-profile:: $(PRINTPROFOUTPUT)
-# JIT remote tests are not supported yet.
-ifdef REMOTE_HOST
- DISABLE_JIT := 1
-endif
-
ifdef RUN_GCC_ONLY
DISABLE_DIFFS = 1
all:: $(GCCOUTPUT)
Modified: test-suite/trunk/RunSafely.sh
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/RunSafely.sh?rev=59215&r1=59214&r2=59215&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Wed Nov 12 21:24:49 2008
@@ -79,6 +79,11 @@
shift 5
SYSTEM=`uname -s`
+PROG=${PROGRAM}
+if [ `basename ${PROGRAM}` == "lli" ]; then
+ PROG=`basename ${PROGRAM}`
+fi
+
ULIMITCMD=""
case $SYSTEM in
CYGWIN*)
@@ -130,14 +135,14 @@
!/^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 > $PWD/${OUTFILE}.remote 2>&1 < $INFILE;); echo exit $?) > $PWD/${OUTFILE}.remote.time 2>&1" > "$PWD/${PROGRAM}.command"
- chmod +x "$PWD/${PROGRAM}.command"
+ rm -f "$PWD/${PROG}.command"
+ rm -f "$PWD/${PROG}.remote"
+ rm -f "$PWD/${PROG}.remote.time"
+ echo "$ULIMITCMD cd $PWD; (time -p ($COMMAND > $PWD/${OUTFILE}.remote 2>&1 < $INFILE;); echo exit $?) > $PWD/${OUTFILE}.remote.time 2>&1" > "$PWD/${PROG}.command"
+ chmod +x "$PWD/${PROG}.command"
- ( $RCLIENT -l $RUSER $RHOST $RPORT "ls $PWD/${PROGRAM}.command" ) > /dev/null 2>&1
- ( $RCLIENT -l $RUSER $RHOST $RPORT "$PWD/${PROGRAM}.command" )
+ ( $RCLIENT -l $RUSER $RHOST $RPORT "ls $PWD/${PROG}.command" ) > /dev/null 2>&1
+ ( $RCLIENT -l $RUSER $RHOST $RPORT "$PWD/${PROG}.command" )
cat $PWD/${OUTFILE}.remote.time | awk -- '\
BEGIN { cpu = 0.0; }
/^user/ { cpu += $2; print; }
More information about the llvm-commits
mailing list