aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/pkgcache
diff options
context:
space:
mode:
authorGravatar dslomov <dslomov@google.com>2017-04-03 18:54:48 +0000
committerGravatar Marcel Hlopko <hlopko@google.com>2017-04-04 10:07:02 +0200
commit3f00727b700e5591218934d7a8df164cd572be65 (patch)
treeaf056be005b842763f39e707decb7a051db6bb91 /src/main/java/com/google/devtools/build/lib/pkgcache
parente368bd491042f86c0c90b7a43413f44d12946bd0 (diff)
Add "--build_manual_tests" options that forces manual tests to be built.
This is useful for IDEs and other tools utilizing command-line aspects for reflection over build graph. RELNOTES: None. PiperOrigin-RevId: 152038248
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/pkgcache')
-rw-r--r--src/main/java/com/google/devtools/build/lib/pkgcache/LoadingOptions.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/pkgcache/LoadingOptions.java b/src/main/java/com/google/devtools/build/lib/pkgcache/LoadingOptions.java
index 63938e9677..b67eceea1e 100644
--- a/src/main/java/com/google/devtools/build/lib/pkgcache/LoadingOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/pkgcache/LoadingOptions.java
@@ -105,6 +105,15 @@ public class LoadingOptions extends OptionsBase {
)
public List<String> testLangFilterList;
+ @Option(name = "build_manual_tests",
+ defaultValue = "false",
+ category = "what",
+ help = "Forces test targets tagged 'manual' to be built. "
+ + "'manual' tests are excluded from processing. This option forces "
+ + "them to be built (but not executed)."
+ )
+ public boolean buildManualTests;
+
// If this option is set, the value of experimental_interleave_loading_and_analysis is completely
// ignored. This enables a different LoadingPhaseRunner implementation which doesn't implement
// the loading phase at all, and therefore can't currently support the other flag. If we roll this