Open source some objc tests. Most notably, proto and j2objc tests still remain, but will follow.
RELNOTES: None.
PiperOrigin-RevId: 166635306
diff --git a/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java b/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java
index e7662a4..dc7271c 100644
--- a/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java
+++ b/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java
@@ -74,9 +74,15 @@
public static final String GCC_INCLUDE_PATH = "external/bazel_tools/tools/cpp/gcc3";
- public static final String TOOLS_REPOSITORY = "@bazel_tools";
+ /** The path in which the mock cc crosstool resides. */
+ public static final String MOCK_CC_CROSSTOOL_PATH = "tools/cpp";
- public static final String TOOLS_REPOSITORY_PATH = "tools/cpp";
+ /** The workspace repository label under which built-in tools reside. */
+ public static final String TOOLS_REPOSITORY = "@bazel_tools";
+ /** The file path in which to create files so that they end up under {@link #TOOLS_REPOSITORY}. */
+ public static final String TOOLS_REPOSITORY_SCRATCH = "/bazel_tools_workspace/";
+ /** The output file path prefix for tool file dependencies. */
+ public static final String TOOLS_REPOSITORY_PATH_PREFIX = "external/bazel_tools/";
public static final ImmutableList<String> DOCS_RULES_PATHS = ImmutableList.of(
"src/main/java/com/google/devtools/build/lib/rules");
@@ -85,6 +91,12 @@
public static final String GENRULE_SETUP = "@bazel_tools//tools/genrule:genrule-setup.sh";
public static final String GENRULE_SETUP_PATH = "genrule-setup.sh";
+ /**
+ * A list of flags required to support use of the crosstool on OSX.
+ */
+ public static final ImmutableList<String> OSX_CROSSTOOL_FLAGS =
+ ImmutableList.of();
+
public static final InvocationPolicy TEST_INVOCATION_POLICY =
InvocationPolicy.getDefaultInstance();