mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Rewrite tests to not use Tcl substitution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81660 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7262bafe98
commit
43c8a06266
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user