[llvm-commits] [llvm] r168113 - in /llvm/trunk/test/FileCheck: ./ lit.local.cfg next-no-match.txt regex-no-match.txt simple-var-capture.txt
Eli Bendersky
eliben at google.com
Thu Nov 15 15:42:51 PST 2012
Author: eliben
Date: Thu Nov 15 17:42:51 2012
New Revision: 168113
URL: http://llvm.org/viewvc/llvm-project?rev=168113&view=rev
Log:
Add some tests for the FileCheck utility.
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121112/156007.html
Added:
llvm/trunk/test/FileCheck/
llvm/trunk/test/FileCheck/lit.local.cfg
llvm/trunk/test/FileCheck/next-no-match.txt
llvm/trunk/test/FileCheck/regex-no-match.txt
llvm/trunk/test/FileCheck/simple-var-capture.txt
Added: llvm/trunk/test/FileCheck/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FileCheck/lit.local.cfg?rev=168113&view=auto
==============================================================================
--- llvm/trunk/test/FileCheck/lit.local.cfg (added)
+++ llvm/trunk/test/FileCheck/lit.local.cfg Thu Nov 15 17:42:51 2012
@@ -0,0 +1 @@
+config.suffixes = ['.txt']
Added: llvm/trunk/test/FileCheck/next-no-match.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FileCheck/next-no-match.txt?rev=168113&view=auto
==============================================================================
--- llvm/trunk/test/FileCheck/next-no-match.txt (added)
+++ llvm/trunk/test/FileCheck/next-no-match.txt Thu Nov 15 17:42:51 2012
@@ -0,0 +1,9 @@
+// RUN: not FileCheck -input-file %s %s
+
+foo
+bar
+; CHECK: foo
+baz
+; CHECK-NEXT: baz
+
+
Added: llvm/trunk/test/FileCheck/regex-no-match.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FileCheck/regex-no-match.txt?rev=168113&view=auto
==============================================================================
--- llvm/trunk/test/FileCheck/regex-no-match.txt (added)
+++ llvm/trunk/test/FileCheck/regex-no-match.txt Thu Nov 15 17:42:51 2012
@@ -0,0 +1,5 @@
+// RUN: not FileCheck -input-file %s %s
+
+foobar
+; CHECK: fooba{{[a-b]}}
+
Added: llvm/trunk/test/FileCheck/simple-var-capture.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FileCheck/simple-var-capture.txt?rev=168113&view=auto
==============================================================================
--- llvm/trunk/test/FileCheck/simple-var-capture.txt (added)
+++ llvm/trunk/test/FileCheck/simple-var-capture.txt Thu Nov 15 17:42:51 2012
@@ -0,0 +1,12 @@
+// RUN: FileCheck -input-file %s %s
+
+op1 r1
+op2 r1, r2
+; CHECK: op1 [[REG:r[0-9]+]]
+; CHECK-NEXT: op2 [[REG]]
+
+op3 r16, r18, r21
+op4 r30, r18, r21
+; CHECK: op3 {{r[0-9]+}}, [[REGa:r[0-9]+]], [[REGb:r[0-9]+]]
+; CHECK-NEXT: op4 {{r[0-9]+}}, [[REGa]], [[REGb]]
+
More information about the llvm-commits
mailing list