Update the test suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mikhail Glushenkov 2010-02-23 09:04:51 +00:00
parent a34f97ab22
commit 7cebe55bad
13 changed files with 21 additions and 21 deletions

View File

@ -13,14 +13,14 @@ def OptList : OptionList<[
]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy_lang"),
(out_language "dummy_lang"),
(actions (case
// CHECK: push_back("-arg1")
// CHECK: push_back("-arg2")
// CHECK: , "-arg1"));
// CHECK: , "-arg2"));
(switch_on "dummy1"), (append_cmd "-arg1 -arg2"),
// CHECK: push_back("-arg3")
// CHECK: , "-arg3"));
// CHECK: hooks::MyHook()
(switch_on "dummy2"), (append_cmd "-arg3 $CALL(MyHook)")))
]>;

View File

@ -1,13 +1,13 @@
// Check the fix for PR4157.
// http://llvm.org/bugs/show_bug.cgi?id=4157
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// RUN: not grep {)));} %t
// RUN: not grep {FOO")));} %t
// RUN: %compile_cxx -fexceptions -x c++ %t
include "llvm/CompilerDriver/Common.td"
def dummy_tool : Tool<[
(cmd_line "gcc -o $OUTFILE $INFILE $ENV(FOO)/bar"),
(command "gcc $ENV(FOO)/bar"),
(in_language "dummy"),
(out_language "dummy")
]>;

View File

@ -13,7 +13,7 @@ def OptList : OptionList<[(switch_option "Wall", (extern)),
(prefix_list_option "L", (extern))]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy"),
(out_language "dummy"),
(actions (case

View File

@ -9,11 +9,11 @@ include "llvm/CompilerDriver/Common.td"
def OptList : OptionList<[(parameter_option "dummy", (extern))]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy"),
(out_language "dummy"),
(actions (case
// CHECK: vec.push_back("unique_name")
// CHECK: "unique_name"));
(not_empty "dummy"), (forward_as "dummy", "unique_name")))
]>;

View File

@ -13,7 +13,7 @@ def OptList : OptionList<[(parameter_option "a", (extern)),
// CHECK: std::string HookB
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy"),
(out_language "dummy"),
(actions (case

View File

@ -10,13 +10,13 @@ def OptList : OptionList<[(parameter_option "a", (extern)),
(prefix_list_option "b", (extern))]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy"),
(out_language "dummy"),
(actions (case
// CHECK: vec.push_back(AutoGeneratedParameter_a)
// CHECK: , AutoGeneratedParameter_a));
(not_empty "a"), (forward_value "a"),
// CHECK: std::copy(AutoGeneratedList_b.begin()
// CHECK: B = AutoGeneratedList_b.begin()
(not_empty "b"), (forward_value "b")))
]>;

View File

@ -6,12 +6,12 @@
include "llvm/CompilerDriver/Common.td"
// CHECK: Hook(const char* Arg0, const char* Arg1, const char* Arg2);
// CHECK: "/path"
// CHECK: std::getenv("VARIABLE")
// CHECK: "/2path"
// CHECK: "/path"
def dummy_tool : Tool<[
(cmd_line "$CALL(Hook, 'Arg1', 'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2 $INFILE"),
(command "$CALL(Hook, 'Arg1', 'Arg2', 'Arg3 Arg3Cont')/path arg1 $ENV(VARIABLE)/2path arg2"),
(in_language "dummy"),
(out_language "dummy")
]>;

View File

@ -7,7 +7,7 @@ include "llvm/CompilerDriver/Common.td"
def dummy_tool : Tool<[
// CHECK: Hook(inFile.c_str())
(cmd_line "$CALL(Hook, '$INFILE')/path $INFILE"),
(command "$CALL(Hook, '$INFILE')/path"),
(in_language "dummy"),
(out_language "dummy")
]>;

View File

@ -13,7 +13,7 @@ def OptList : OptionList<[
]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy_lang"),
(out_language "dummy_lang"),
(actions (case

View File

@ -12,7 +12,7 @@ def OptList : OptionList<[
(parameter_list_option "baz", (multi_val 2), (extern))]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy"),
(out_language "dummy"),
(actions (case

View File

@ -7,7 +7,7 @@ include "llvm/CompilerDriver/Common.td"
// CHECK: class dummy_tool : public Tool {
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy"),
(out_language "dummy")
]>;

View File

@ -13,7 +13,7 @@ def OptList : OptionList<[
(parameter_list_option "baz", (optional))]>;
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(command "dummy_cmd"),
(in_language "dummy"),
(out_language "dummy"),
(actions (case

View File

@ -52,7 +52,7 @@ def dummy : Tool<
[(in_language "dummy"),
(out_language "dummy"),
(output_suffix "d"),
(cmd_line "dummy $INFILE -o $OUTFILE"),
(command "dummy"),
(actions (case (switch_on "foo"), (error),
(switch_on "bar"), (error),
(switch_on "baz"), (error),