Skip to content
Snippets Groups Projects
Commit e01fc281 authored by Chris Lattner's avatar Chris Lattner
Browse files

verify that tests contain RUN lines.

llvm-svn: 44915
parent 3115ba39
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,14 @@ fi
ulimit -t 40
# Verify the script contains a run line.
grep -q 'RUN:' $FILENAME || (
echo "******************** TEST '$TESTNAME' HAS NO RUN LINE! ********************"
exit 1
)
SCRIPT=$OUTPUT.script
grep 'RUN:' $FILENAME | sed "s|^.*RUN:\(.*\)$|\1|g;s|%s|$SUBST|g;s|%llvmgcc|llvm-gcc -emit-llvm|g;s|%llvmgxx|llvm-g++ -emit-llvm|g;s|%prcontext|prcontext.tcl|g" > $SCRIPT
grep 'RUN:' $FILENAME | sed "s|^.*RUN:\(.*\)$|\1|g;s|%s|$SUBST|g;s|%llvmgcc|llvm-gcc -emit-llvm|g;s|%llvmgxx|llvm-g++ -emit-llvm|g;s|%prcontext|prcontext.tcl|g" > $SCRIPT
grep -q XFAIL $FILENAME && (printf "XFAILED '$TESTNAME': "; grep XFAIL $FILENAME)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment