[llvm-commits] [test-suite] r153023 - /test-suite/trunk/RunSafely.sh
Daniel Dunbar
daniel at zuster.org
Sun Mar 18 12:37:59 PDT 2012
Author: ddunbar
Date: Sun Mar 18 14:37:58 2012
New Revision: 153023
URL: http://llvm.org/viewvc/llvm-project?rev=153023&view=rev
Log:
[test-suite] RunSafely: The -t argument is required now.
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=153023&r1=153022&r2=153023&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Sun Mar 18 14:37:58 2012
@@ -42,7 +42,8 @@
# <args...> are the arguments to pass to the program.
#
if [ $# -lt 4 ]; then
- echo "./RunSafely.sh <timeout> <exitok> <infile> <outfile> <program> <args...>"
+ echo "./RunSafely.sh [-t <PATH>] <timeout> <exitok> <infile> <outfile>" \
+ "<program> <args...>"
exit 1
fi
@@ -57,7 +58,7 @@
RCLIENT=rsh
RPORT=
RUN_UNDER=
-TIMEIT=time
+TIMEIT=
if [ $1 = "-r" ]; then
RHOST=$2
shift 2
@@ -83,6 +84,11 @@
shift 2
fi
+if [ "$TIMEIT" = "" ]; then
+ echo "error: missing required argument -t for path to 'timeit'"
+ exit 1
+fi
+
TIMELIMIT=$1
EXITOK=$2
INFILE=$3
More information about the llvm-commits
mailing list