Last active
September 25, 2020 23:12
-
-
Save cgruber/d242b25113ed8e1c40fa6132f4ace81d to your computer and use it in GitHub Desktop.
Bazel test environment variables (sanitized)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A quick list of bazel test environment variables (as of Bazel 3.5.0) | |
# http://tiny.cc/bazel_test_env | |
# | |
# Some cautions and notes: | |
# - not a real shell file - just set it as .sh because they're written as shell env vars here. | |
# - This comes from java_test and kt_jvm_test. It might not reflect go_test, etc. | |
# - Your username is "yourusername" here. | |
# - the real hash of your project in bazel is replaced by deadbeefdeadbeefdeadbeefdeadbeef | |
# - local target/binary/package paths have been replaced by "your/package" and | |
# "your/package/SomeTest" as appropriate | |
# - BASH_FUNC_whatever funcs have been omitted, as they're confusing and didn't write out properly. | |
# - the java package in TESTBRIDGE_TEST_ONLY is pulled out of the air. | |
# - None of the values here shoudl be relied upon - they're just to understand the purpose of | |
# the environment variables. Your values will be whatever bazel sets them to be, but you can | |
# at least infer the relationships between their values from this pattern. | |
# | |
# Use at own risk - I put this in a gist for my own reference - no guarantees. | |
PATH=.:/bin:/usr/bin:/usr/local/bin | |
RUNFILES_DIR=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/bin/your/package/SomeTest | |
TEST_PREMATURE_EXIT_FILE=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/your/package/SomeTest/test.exited_prematurely | |
TZ=UTC | |
TEST_UNUSED_RUNFILES_LOG_FILE=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/testlogs/your/package/SomeTest/test.unused_runfiles_log | |
JAVA_RUNFILES=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/bin/your/package/SomeTest.runfiles | |
TEST_SIZE=small | |
XML_OUTPUT_FILE=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/testlogs/your/package/SomeTest/test.xml | |
TEST_UNDECLARED_OUTPUTS_ANNOTATIONS_DIR=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/testlogs/your/package/SomeTest/test.outputs_manifest | |
TEST_WARNINGS_OUTPUT_FILE=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/testlogs/your/package/SomeTest/test.warnings | |
TEST_INFRASTRUCTURE_FAILURE_FILE=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/testlogs/your/package/SomeTest/test.infrastructure_failure | |
PWD=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/bin/your/package/SomeTest.runfiles/__main__ | |
TEST_LOGSPLITTER_OUTPUT_FILE=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/testlogs/your/package/SomeTest/test.raw_splitlogs/test.splitlogs | |
GTEST_TMP_DIR=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/_tmp/652df97ee7e46f9c910f58135e86da94 | |
TEST_WORKSPACE=__main__ | |
EXPERIMENTAL_SPLIT_XML_GENERATION=1 | |
TEST_UNDECLARED_OUTPUTS_DIR=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/testlogs/your/package/SomeTest/test.outputs | |
RUNFILES_MANIFEST_FILE=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/bin/your/package/SomeTest.runfiles/MANIFEST | |
TEST_SRCDIR=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/bin/your/package/SomeTest.runfiles | |
TEST_TIMEOUT=450 | |
USER=yourusername | |
PYTHON_RUNFILES=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/bin/your/package/SomeTest.runfiles | |
TEST_BINARY=your/package/SomeTest | |
TMPDIR=/var/folders/80/cvns3bxx7x9gnhvyy2sttysh0000gn/T/ | |
RUN_UNDER_RUNFILES=1 | |
JAVA_MAIN_CLASS_39090=com.google.testing.junit.runner.BazelTestRunner | |
TEST_TMPDIR=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/_tmp/652df97ee7e46f9c910f58135e86da94 | |
TEST_TARGET=//your/package:SomeTest | |
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0 | |
CLASSLOADER_PREFIX_PATH= | |
SELF_LOCATION=/private/var/tmp/_bazel_yourusername/deadbeefdeadbeefdeadbeefdeadbeef/sandbox/darwin-sandbox/4/execroot/__main__/bazel-out/darwin-fastbuild/bin/your/package/SomeTest.runfiles/__main__/your/package/SomeTest | |
SHLVL=1 | |
TESTBRIDGE_TEST_ONLY=your.javapkg.SomeTest | |
RUNFILES_MANIFEST_ONLY= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment