[polly] r217463 - Add -e to test generation script

David Peixotto dpeixott at codeaurora.org
Tue Sep 9 15:14:39 PDT 2014


Author: dpeixott
Date: Tue Sep  9 17:14:38 2014
New Revision: 217463

URL: http://llvm.org/viewvc/llvm-project?rev=217463&view=rev
Log:
Add -e to test generation script

The -e flag exits the script with a non-zero code if any subcommand
fails. This flag allows us to notice as early as possible if the
test was not properly regenerated using a command like:

$ create_ll.sh t.c && opt < t.ll -polly ...

The above pattern is useful when iteratively developing a test case
to guard against un-noticed syntax errors.

Differential Revision: http://reviews.llvm.org/D5276

Modified:
    polly/trunk/test/create_ll.sh

Modified: polly/trunk/test/create_ll.sh
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/create_ll.sh?rev=217463&r1=217462&r2=217463&view=diff
==============================================================================
--- polly/trunk/test/create_ll.sh (original)
+++ polly/trunk/test/create_ll.sh Tue Sep  9 17:14:38 2014
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 LLFILE=`echo $1 | sed -e 's/\.c/.ll/g'`
 LLFILE_TMP=${LLFILE}.tmp





More information about the llvm-commits mailing list