mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Allow multiline RUN:'s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -8,12 +8,14 @@
|
|||||||
# %s - Replaced with the input name of the program
|
# %s - Replaced with the input name of the program
|
||||||
#
|
#
|
||||||
|
|
||||||
PROGRAM=`grep 'RUN:' $1 | sed "s/^.*RUN:\(.*\)$/\1/g;s/%s/$1/g" | head -n 1`
|
grep 'RUN:' $1 | sed "s/^.*RUN:\(.*\)$/\1/g;s/%s/$1/g" > Output/$1.script
|
||||||
OUTPUT=Output/$1.out
|
OUTPUT=Output/$1.out
|
||||||
|
|
||||||
($PROGRAM) > $OUTPUT 2>&1 || (
|
|
||||||
|
/bin/sh Output/$1.script > $OUTPUT 2>&1 || (
|
||||||
echo "******************** TEST '$1' FAILED! ********************"
|
echo "******************** TEST '$1' FAILED! ********************"
|
||||||
echo "Command: " $PROGRAM
|
echo "Command: "
|
||||||
|
cat Output/$1.script
|
||||||
echo "Output:"
|
echo "Output:"
|
||||||
cat $OUTPUT
|
cat $OUTPUT
|
||||||
rm $OUTPUT
|
rm $OUTPUT
|
||||||
|
Reference in New Issue
Block a user