Rewrite tests to not use Tcl substitution.
authorDaniel Dunbar <daniel@zuster.org>
Sun, 13 Sep 2009 01:37:07 +0000 (01:37 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 13 Sep 2009 01:37:07 +0000 (01:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81660 91177308-0d34-0410-b5e6-96231b3b80d8

test/LLVMC/EmptyCompilationGraph.td
test/LLVMC/EnvParentheses.td
test/LLVMC/ExternOptions.td
test/LLVMC/ForwardAs.td
test/LLVMC/HookWithArguments.td
test/LLVMC/MultiValuedOption.td
test/LLVMC/MultipleCompilationGraphs.td
test/LLVMC/NoActions.td
test/LLVMC/NoCompilationGraph.td
test/LLVMC/OneOrMore.td
test/LLVMC/TestWarnings.td

index f4a304730c52e4d20a22c1d57dd403525f793c33..b30f84c6e2a3be302037b8da867dab4fec3fba0a 100644 (file)
@@ -1,5 +1,5 @@
 // Check that the compilation graph can be empty.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s
+// RUN: tblgen -I %p/../../include --gen-llvmc %s
 
 include "llvm/CompilerDriver/Common.td"
 
index cf2a0e376f9a1293811549a98ff030342b67c9bc..694468f2dda8031e999c14160db165f65f7dc7e2 100644 (file)
@@ -1,6 +1,6 @@
 // Check the fix for PR4157.
 // http://llvm.org/bugs/show_bug.cgi?id=4157
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
 // RUN: not grep {)));} %t
 
 include "llvm/CompilerDriver/Common.td"
index a04a88b002aab378ae841e1d1e5ff3d95aa61632..7d71e91551cdf9e1b469a0a9485e5174da27d031 100644 (file)
@@ -1,6 +1,6 @@
 // Check that extern options work.
 // The dummy tool and graph are required to silence warnings.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
 // RUN: grep {extern .* AutoGeneratedSwitch_Wall} %t
 
 include "llvm/CompilerDriver/Common.td"
index 5e5a087c6294e34169d7a288c21a1406a3d46fc6..28c2a0aae75e447bbec2b12ab32de7aac40a21d1 100644 (file)
@@ -1,6 +1,6 @@
 // Check the fix for PR4159.
 // http://llvm.org/bugs/show_bug.cgi?id=4159
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
 // RUN: grep unique_name %t
 
 include "llvm/CompilerDriver/Common.td"
index 0f7c3797cb449825e57f8174de5130dcb29e510a..3bdb3eeb9d43f22575a83f0b583cc84a71254caf 100644 (file)
@@ -1,5 +1,5 @@
 // Check that hooks with arguments work.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
 // RUN: grep {Hook(const char\\* Arg0, const char\\* Arg1, const char\\* Arg2);} %t | count 1
 // RUN: grep "/path" %t | count 1
 // RUN: grep "VARIABLE" %t | count 1
index d68a115af19d07a4bb2e58740c1329fb0aaa23d4..0272e082be1c6618371d4e9361775fd762ee1d37 100644 (file)
@@ -1,6 +1,6 @@
 // Check that multivalued options work.
 // The dummy tool and graph are required to silence warnings.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
 // RUN: grep cl::multi_val(2) %t | count 1
 
 include "llvm/CompilerDriver/Common.td"
index 3305fc6121e21411c1baf4051aa7d82eda68e2e7..64dbc9b1845c5f261efe1c17590d728f11e69add 100644 (file)
@@ -1,5 +1,5 @@
 // Check that multiple compilation graphs are allowed.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s
+// RUN: tblgen -I %p/../../include --gen-llvmc %s
 
 include "llvm/CompilerDriver/Common.td"
 
index 43fd0079eee2d47b20bebd48c75a85ff23655e2d..298b6e23b59a3c5f7f309beb498d24d9e1dcf8b6 100644 (file)
@@ -1,5 +1,5 @@
 // Check that tools without associated actions are accepted.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep dummy_tool
+// RUN: tblgen -I %p/../../include --gen-llvmc %s | grep dummy_tool
 
 include "llvm/CompilerDriver/Common.td"
 
index 6476a371cfbc1bc78f8986a313b8cf6dc96d32f7..2eea3e98343c9ab2688f61e7f62ae5114c589aa2 100644 (file)
@@ -1,4 +1,4 @@
 // Check that the compilation graph is not required.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s
+// RUN: tblgen -I %p/../../include --gen-llvmc %s
 
 include "llvm/CompilerDriver/Common.td"
index f27ae9707d705bce1b26ab4ac3f20eab2a9bfba6..d6bc38b9b594823e83d47492d7b69101358d4794 100644 (file)
@@ -1,6 +1,6 @@
 // Check that (one_or_more) and (zero_or_one) properties work.
 // The dummy tool and graph are required to silence warnings.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s -o %t
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
 // RUN: grep cl::ZeroOrOne %t | count 1
 // RUN: grep cl::OneOrMore %t | count 1
 
index bf2173c7938d10a8815b399a421fcc797acd2248..1a4064e44b270cc24b694ba4d39e89d86b76c919 100644 (file)
@@ -1,6 +1,6 @@
 // Check that the compiler warns about unused options.
 // This should fail because the output is printed on stderr.
-// RUN: ignore tblgen -I $srcroot/include --gen-llvmc %s |& grep "option '-Wall' has no effect!"
+// RUN: ignore tblgen -I %p/../../include --gen-llvmc %s |& grep "option '-Wall' has no effect!"
 
 include "llvm/CompilerDriver/Common.td"