Update the test suite.
authorMikhail Glushenkov <foldr@codedgers.com>
Tue, 23 Feb 2010 09:04:51 +0000 (09:04 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Tue, 23 Feb 2010 09:04:51 +0000 (09:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96921 91177308-0d34-0410-b5e6-96231b3b80d8

13 files changed:
test/LLVMC/AppendCmdHook.td
test/LLVMC/EnvParentheses.td
test/LLVMC/ExternOptions.td
test/LLVMC/ForwardAs.td
test/LLVMC/ForwardTransformedValue.td
test/LLVMC/ForwardValue.td
test/LLVMC/HookWithArguments.td
test/LLVMC/HookWithInFile.td
test/LLVMC/Init.td
test/LLVMC/MultiValuedOption.td
test/LLVMC/NoActions.td
test/LLVMC/OneOrMore.td
test/LLVMC/OptionPreprocessor.td

index 4a9d39121a4af38dd946185499b3a072d1101a00..539a93f8349ba47c2561f798954a7c368d286935 100644 (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)")))
 ]>;
index 77aab95c5f03db81fbdb13ca6b33b8f0aed4cedd..c563171335d65d99c3430c4e9bbf6792541587c5 100644 (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")
 ]>;
index a05f2ca15b6f125b2ef567f57a67e357edf32a5e..77cb4bf652697c328fa1ffc96d4f6c0987cfcb63 100644 (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
index ce6fbb06ef51f0b01386a87bcd9ffb7868efda80..7c3bd1798a2bdcb874f6b340992077f98a45b427 100644 (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")))
 ]>;
 
index e26345362c0f3f4e0768bdba3a1322240aab6b84..2caef6cd539308f265cac2e5c6675bd9979d7630 100644 (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
index 31e395e6d0bcfc6c7abbe5001d2fb4ea9641a411..463235c6111799a78d5b3fd5d2faaa703aa5ab14 100644 (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")))
 ]>;
 
index ba0bbe10d37a7c04f08cdc20c11f7fdcc88cc440..312fa9ccebbe881a195e8123e47c5382ed4e5efc 100644 (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")
 ]>;
index e15e43cdf040bd6c0688fdcb514113c7a3d447e4..f58e3f4288fbd768ed1521cd8407f8be4e2db7bd 100644 (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")
 ]>;
index 355d83ff95aef8427ffc65c5e4b42bf989799a1b..ff9a0d8d90f8ce7df93529ad95e497a89a9f7c46 100644 (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
index 8cb18782700c64f783c3cace3d8a7ec645c2009a..b52af57ade6a76706d456cdf8fdcdacaf3883b4f 100644 (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
index 9c2d45a810f6bdfd8834f1edd59d637df4c45b20..015bfdd09739f40d7d337dbb1410897af486f35a 100644 (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")
 ]>;
index ddf7cd1143a98c9ace4718d0c5bd89025b8d6c76..42ec693fbb7a5d4a8b235a5354f2a138f9cce8fa 100644 (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
index 8d748eee532cb5616ed403d634e370c74bccc324..8a314818a0a9e1070405282b8c20fcf7993531cb 100644 (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),