diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2012-07-02 12:47:22 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2012-07-02 12:47:22 +0000 |
| commit | a5a29f970eea116b38064453d21066127473171c (patch) | |
| tree | 7605856da0bc1cf9f4848be7a8c102c39d7e3f95 /llvm/test/Verifier | |
| parent | 0a4a26136597a1fe4332732ccdf7e2916dc63d51 (diff) | |
| download | bcm5719-llvm-a5a29f970eea116b38064453d21066127473171c.tar.gz bcm5719-llvm-a5a29f970eea116b38064453d21066127473171c.zip | |
Convert all tests using TCL-style quoting to use shell-style quoting.
This was done through the aid of a terrible Perl creation. I will not
paste any of the horrors here. Suffice to say, it require multiple
staged rounds of replacements, state carried between, and a few
nested-construct-parsing hacks that I'm not proud of. It happens, by
luck, to be able to deal with all the TCL-quoting patterns in evidence
in the LLVM test suite.
If anyone is maintaining large out-of-tree test trees, feel free to poke
me and I'll send you the steps I used to convert things, as well as
answer any painful questions etc. IRC works best for this type of thing
I find.
Once converted, switch the LLVM lit config to use ShTests the same as
Clang. In addition to being able to delete large amounts of Python code
from 'lit', this will also simplify the entire test suite and some of
lit's architecture.
Finally, the test suite runs 33% faster on Linux now. ;]
For my 16-hardware-thread (2x 4-core xeon e5520): 36s -> 24s
llvm-svn: 159525
Diffstat (limited to 'llvm/test/Verifier')
| -rw-r--r-- | llvm/test/Verifier/2002-04-13-RetTypes.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/2002-11-05-GetelementptrPointers.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/2006-12-12-IntrinsicDefine.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/2008-03-01-AllocaSized.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/2008-08-22-MemCpyAlignment.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/2008-11-15-RetVoid.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/2010-08-07-PointerIntrinsic.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/AmbiguousPhi.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/PhiGrouping.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/SelfReferential.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Verifier/aliasing-chain.ll | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/llvm/test/Verifier/2002-04-13-RetTypes.ll b/llvm/test/Verifier/2002-04-13-RetTypes.ll index 4c1ddd1e3ac..2cbe6a922ee 100644 --- a/llvm/test/Verifier/2002-04-13-RetTypes.ll +++ b/llvm/test/Verifier/2002-04-13-RetTypes.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s |& grep {value doesn't match function result type 'i32'} +; RUN: not llvm-as < %s |& grep "value doesn't match function result type 'i32'" ; Verify the the operand type of the ret instructions in a function match the ; delcared return type of the function they live in. diff --git a/llvm/test/Verifier/2002-11-05-GetelementptrPointers.ll b/llvm/test/Verifier/2002-11-05-GetelementptrPointers.ll index 1f71387ab3a..98c43850b12 100644 --- a/llvm/test/Verifier/2002-11-05-GetelementptrPointers.ll +++ b/llvm/test/Verifier/2002-11-05-GetelementptrPointers.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s |& grep {invalid getelementptr indices} +; RUN: not llvm-as < %s |& grep "invalid getelementptr indices" ; This testcase is invalid because we are indexing into a pointer that is ; contained WITHIN a structure. diff --git a/llvm/test/Verifier/2006-12-12-IntrinsicDefine.ll b/llvm/test/Verifier/2006-12-12-IntrinsicDefine.ll index 8d09b512066..aa26265791d 100644 --- a/llvm/test/Verifier/2006-12-12-IntrinsicDefine.ll +++ b/llvm/test/Verifier/2006-12-12-IntrinsicDefine.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s |& grep {llvm intrinsics cannot be defined} +; RUN: not llvm-as < %s |& grep "llvm intrinsics cannot be defined" ; PR1047 define void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) { diff --git a/llvm/test/Verifier/2008-03-01-AllocaSized.ll b/llvm/test/Verifier/2008-03-01-AllocaSized.ll index 079a75d792e..58f3098f951 100644 --- a/llvm/test/Verifier/2008-03-01-AllocaSized.ll +++ b/llvm/test/Verifier/2008-03-01-AllocaSized.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as %s -o /dev/null |& grep {Cannot allocate unsized type} +; RUN: not llvm-as %s -o /dev/null |& grep "Cannot allocate unsized type" ; PR2113 define void @test() { diff --git a/llvm/test/Verifier/2008-08-22-MemCpyAlignment.ll b/llvm/test/Verifier/2008-08-22-MemCpyAlignment.ll index 125325c04eb..65e884f46e3 100644 --- a/llvm/test/Verifier/2008-08-22-MemCpyAlignment.ll +++ b/llvm/test/Verifier/2008-08-22-MemCpyAlignment.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as %s -o /dev/null |& grep {alignment argument of memory intrinsics must be a constant int} +; RUN: not llvm-as %s -o /dev/null |& grep "alignment argument of memory intrinsics must be a constant int" ; PR2318 define void @x(i8* %a, i8* %src, i64 %len, i32 %align) nounwind { diff --git a/llvm/test/Verifier/2008-11-15-RetVoid.ll b/llvm/test/Verifier/2008-11-15-RetVoid.ll index aaef7030c5a..f2cdc8ce4de 100644 --- a/llvm/test/Verifier/2008-11-15-RetVoid.ll +++ b/llvm/test/Verifier/2008-11-15-RetVoid.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s |& grep {value doesn't match function result type 'void'} +; RUN: not llvm-as < %s |& grep "value doesn't match function result type 'void'" define void @foo() { ret i32 0 diff --git a/llvm/test/Verifier/2010-08-07-PointerIntrinsic.ll b/llvm/test/Verifier/2010-08-07-PointerIntrinsic.ll index bf5563d9c05..3136c61514b 100644 --- a/llvm/test/Verifier/2010-08-07-PointerIntrinsic.ll +++ b/llvm/test/Verifier/2010-08-07-PointerIntrinsic.ll @@ -1,5 +1,5 @@ ; RUN: not llvm-as < %s 2> %t -; RUN: grep {Broken module} %t +; RUN: grep "Broken module" %t ; PR7316 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32" diff --git a/llvm/test/Verifier/AmbiguousPhi.ll b/llvm/test/Verifier/AmbiguousPhi.ll index 9a725301877..58d8bdd3c64 100644 --- a/llvm/test/Verifier/AmbiguousPhi.ll +++ b/llvm/test/Verifier/AmbiguousPhi.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s |& grep {multiple entries for the same basic block} +; RUN: not llvm-as < %s |& grep "multiple entries for the same basic block" diff --git a/llvm/test/Verifier/PhiGrouping.ll b/llvm/test/Verifier/PhiGrouping.ll index dc529dced36..0b677f2301c 100644 --- a/llvm/test/Verifier/PhiGrouping.ll +++ b/llvm/test/Verifier/PhiGrouping.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s |& grep {PHI nodes not grouped at top} +; RUN: not llvm-as < %s |& grep "PHI nodes not grouped at top" diff --git a/llvm/test/Verifier/SelfReferential.ll b/llvm/test/Verifier/SelfReferential.ll index 70154b77a82..449ea36519c 100644 --- a/llvm/test/Verifier/SelfReferential.ll +++ b/llvm/test/Verifier/SelfReferential.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as %s -o /dev/null |& grep {Only PHI nodes may reference their own value} +; RUN: not llvm-as %s -o /dev/null |& grep "Only PHI nodes may reference their own value" ; Test that self referential instructions are not allowed diff --git a/llvm/test/Verifier/aliasing-chain.ll b/llvm/test/Verifier/aliasing-chain.ll index fc5ef1ce13a..1275abaff39 100644 --- a/llvm/test/Verifier/aliasing-chain.ll +++ b/llvm/test/Verifier/aliasing-chain.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as %s -o /dev/null |& grep {Aliasing chain should end with function or global variable} +; RUN: not llvm-as %s -o /dev/null |& grep "Aliasing chain should end with function or global variable" ; Test that alising chain does not create a cycle |

