aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/packages
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/packages')
-rw-r--r--src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL370
-rw-r--r--src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java6
2 files changed, 374 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL b/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
index 0a87b1c73c..fb072bda32 100644
--- a/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
+++ b/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
@@ -1189,6 +1189,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "mac/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -2773,6 +2810,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "mac/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -4365,6 +4439,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "iossim/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -5961,6 +6072,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "watchsim/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -7585,6 +7733,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "tvsim/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -9186,6 +9371,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "iossim/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -10805,6 +11027,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "ios/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -12424,6 +12683,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "watchos/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -14071,6 +14367,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "tvos/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
@@ -15695,6 +16028,43 @@ toolchain {
}
}
action_config {
+ config_name: "strip"
+ action_name: "strip"
+ tool {
+ tool_path: "ios/strip"
+ }
+ flag_set {
+ flag_group {
+ flag: "-S"
+ flag: "-o"
+ flag: "%{output_file}"
+ flag: "-R"
+ flag: ".gnu.switches.text.quote_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.bracket_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.system_paths"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_defines"
+ flag: "-R"
+ flag: ".gnu.switches.text.cpp_includes"
+ flag: "-R"
+ flag: ".gnu.switches.text.cl_args"
+ flag: "-R"
+ flag: ".gnu.switches.text.lipo_info"
+ flag: "-R"
+ flag: ".gnu.switches.text.annotation"
+ }
+ flag_group {
+ flag: "%{stripopts}"
+ iterate_over: "stripopts"
+ }
+ flag_group {
+ flag: "%{input_file}"
+ }
+ }
+ }
+ action_config {
config_name: "c-compile"
action_name: "c-compile"
tool {
diff --git a/src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java b/src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java
index a6ebc585be..7f2ab2b02a 100644
--- a/src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java
+++ b/src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java
@@ -448,14 +448,16 @@ public abstract class MockCcSupport {
public static final String EMPTY_CLIF_MATCH_ACTION_CONFIG =
emptyActionConfigFor(CppCompileAction.CLIF_MATCH);
+ public static final String EMPTY_STRIP_ACTION_CONFIG =
+ emptyActionConfigFor(CppCompileAction.STRIP_ACTION_NAME);
+
/**
* Creates action_config for {@code actionName} action using DUMMY_TOOL that doesn't imply any
* features.
*/
private static String emptyActionConfigFor(String actionName) {
return String.format(
- ""
- + "action_config {"
+ "action_config {"
+ " config_name: '%s'"
+ " action_name: '%s'"
+ " tool {"