blob: 28ca6bf7f8883bf23055661c11e0f0f82a557593 [file] [log] [blame]
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +01001// Copyright 2014 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package com.google.devtools.build.lib.testutil;
16
17import com.google.common.collect.ImmutableList;
18
19/**
20 * Various constants required by the tests.
21 */
22public class TestConstants {
23 private TestConstants() {
24 }
25
26 /**
27 * A list of all embedded binaries that go into the regular Bazel binary.
28 */
29 public static final ImmutableList<String> EMBEDDED_TOOLS = ImmutableList.of(
30 "build-runfiles",
31 "process-wrapper",
32 "build_interface_so");
33
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010034 /**
35 * Location in the bazel repo where embedded binaries come from.
36 */
37 public static final String EMBEDDED_SCRIPTS_PATH = "DOES-NOT-WORK-YET";
38
39 /**
Ulf Adamsff031542015-02-24 10:00:51 +000040 * Path within runfiles tree for finding everything else.
41 */
42 public static final String RUNFILES_PREFIX = "DOES-NOT-WORK-YET";
43
44 /**
Ulf Adamsd5baac02015-02-25 14:18:14 +000045 * Name of a class with an INSTANCE field of type AnalysisMock to be used for analysis tests.
46 */
47 public static final String TEST_ANALYSIS_MOCK = "DOES-NOT-WORK-YET";
48
49 /**
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +010050 * Directory where we can find bazel's Java tests, relative to a test's runfiles directory.
51 */
52 public static final String JAVATESTS_ROOT = "src/test/java/";
53
54 /**
55 * The directory in InMemoryFileSystem where workspaces created during unit tests reside.
56 */
57 public static final String TEST_WORKSPACE_DIRECTORY = "bazel";
58
59 public static final String TEST_RULE_CLASS_PROVIDER =
60 "com.google.devtools.build.lib.bazel.rules.BazelRuleClassProvider";
61 public static final ImmutableList<String> IGNORED_MESSAGE_PREFIXES = ImmutableList.<String>of();
62}