From 43c8a062667c9a5b9a19f75445895f0b6e0cafcc Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 13 Sep 2009 01:37:07 +0000 Subject: [PATCH] Rewrite tests to not use Tcl substitution. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81660 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/LLVMC/EmptyCompilationGraph.td | 2 +- test/LLVMC/EnvParentheses.td | 2 +- test/LLVMC/ExternOptions.td | 2 +- test/LLVMC/ForwardAs.td | 2 +- test/LLVMC/HookWithArguments.td | 2 +- test/LLVMC/MultiValuedOption.td | 2 +- test/LLVMC/MultipleCompilationGraphs.td | 2 +- test/LLVMC/NoActions.td | 2 +- test/LLVMC/NoCompilationGraph.td | 2 +- test/LLVMC/OneOrMore.td | 2 +- test/LLVMC/TestWarnings.td | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/LLVMC/EmptyCompilationGraph.td b/test/LLVMC/EmptyCompilationGraph.td index f4a304730c5..b30f84c6e2a 100644 --- a/test/LLVMC/EmptyCompilationGraph.td +++ b/test/LLVMC/EmptyCompilationGraph.td @@ -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" diff --git a/test/LLVMC/EnvParentheses.td b/test/LLVMC/EnvParentheses.td index cf2a0e376f9..694468f2dda 100644 --- a/test/LLVMC/EnvParentheses.td +++ b/test/LLVMC/EnvParentheses.td @@ -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" diff --git a/test/LLVMC/ExternOptions.td b/test/LLVMC/ExternOptions.td index a04a88b002a..7d71e91551c 100644 --- a/test/LLVMC/ExternOptions.td +++ b/test/LLVMC/ExternOptions.td @@ -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" diff --git a/test/LLVMC/ForwardAs.td b/test/LLVMC/ForwardAs.td index 5e5a087c629..28c2a0aae75 100644 --- a/test/LLVMC/ForwardAs.td +++ b/test/LLVMC/ForwardAs.td @@ -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" diff --git a/test/LLVMC/HookWithArguments.td b/test/LLVMC/HookWithArguments.td index 0f7c3797cb4..3bdb3eeb9d4 100644 --- a/test/LLVMC/HookWithArguments.td +++ b/test/LLVMC/HookWithArguments.td @@ -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 diff --git a/test/LLVMC/MultiValuedOption.td b/test/LLVMC/MultiValuedOption.td index d68a115af19..0272e082be1 100644 --- a/test/LLVMC/MultiValuedOption.td +++ b/test/LLVMC/MultiValuedOption.td @@ -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" diff --git a/test/LLVMC/MultipleCompilationGraphs.td b/test/LLVMC/MultipleCompilationGraphs.td index 3305fc6121e..64dbc9b1845 100644 --- a/test/LLVMC/MultipleCompilationGraphs.td +++ b/test/LLVMC/MultipleCompilationGraphs.td @@ -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" diff --git a/test/LLVMC/NoActions.td b/test/LLVMC/NoActions.td index 43fd0079eee..298b6e23b59 100644 --- a/test/LLVMC/NoActions.td +++ b/test/LLVMC/NoActions.td @@ -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" diff --git a/test/LLVMC/NoCompilationGraph.td b/test/LLVMC/NoCompilationGraph.td index 6476a371cfb..2eea3e98343 100644 --- a/test/LLVMC/NoCompilationGraph.td +++ b/test/LLVMC/NoCompilationGraph.td @@ -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" diff --git a/test/LLVMC/OneOrMore.td b/test/LLVMC/OneOrMore.td index f27ae9707d7..d6bc38b9b59 100644 --- a/test/LLVMC/OneOrMore.td +++ b/test/LLVMC/OneOrMore.td @@ -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 diff --git a/test/LLVMC/TestWarnings.td b/test/LLVMC/TestWarnings.td index bf2173c7938..1a4064e44b2 100644 --- a/test/LLVMC/TestWarnings.td +++ b/test/LLVMC/TestWarnings.td @@ -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" -- 2.11.0