projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New testcase for rotate instructions. Each function should codegen to a
[oota-llvm.git]
/
test
/
TestRunner.sh
diff --git
a/test/TestRunner.sh
b/test/TestRunner.sh
index f7d4bbf56cafec6b2ea90345a2a4b349bbd49d12..8815dd41f0c10275aca1695eca2c3ad0fd9193c7 100755
(executable)
--- a/
test/TestRunner.sh
+++ b/
test/TestRunner.sh
@@
-11,8
+11,12
@@
#
FILENAME=$1
#
FILENAME=$1
+TESTNAME=$1
SUBST=$1
SUBST=$1
-OUTPUT=$FILENAME.out
+OUTPUT=Output/$FILENAME.out
+
+# create the output directory if it does not already exist
+mkdir Output > /dev/null 2>&1
if test $# != 1; then
# If more than one parameter is passed in, there must be three parameters:
if test $# != 1; then
# If more than one parameter is passed in, there must be three parameters:
@@
-20,19
+24,22
@@
if test $# != 1; then
# and the file to output to.
SUBST=$2
OUTPUT=$3
# and the file to output to.
SUBST=$2
OUTPUT=$3
+ TESTNAME=$3
fi
fi
-SCRIPT=Output/$OUTPUT.script
-grep 'RUN:' $FILENAME | sed "s|^.*RUN:\(.*\)$|\1|g;s|%s|$SUBST|g" > $SCRIPT
+ulimit -t 40
+
+SCRIPT=$OUTPUT.script
+grep 'RUN:' $FILENAME | sed "s|^.*RUN:\(.*\)$|\1|g;s|%s|$SUBST|g;s|%llvmgcc|llvm-gcc|g;s|%llvmgxx|llvm-g++|g" > $SCRIPT
/bin/sh $SCRIPT > $OUTPUT 2>&1 || (
/bin/sh $SCRIPT > $OUTPUT 2>&1 || (
- echo "******************** TEST '$
FILE
NAME' FAILED! ********************"
+ echo "******************** TEST '$
TEST
NAME' FAILED! ********************"
echo "Command: "
cat $SCRIPT
echo "Output:"
cat $OUTPUT
rm $OUTPUT
echo "Command: "
cat $SCRIPT
echo "Output:"
cat $OUTPUT
rm $OUTPUT
- echo "******************** TEST '$
FILE
NAME' FAILED! ********************"
+ echo "******************** TEST '$
TEST
NAME' FAILED! ********************"
)
)