diff options
author | 2022-11-14 08:27:52 -0800 | |
---|---|---|
committer | 2022-11-14 08:28:36 -0800 | |
commit | 4b65075a739f557782ef11e04f306212a21c0394 (patch) | |
tree | 6841599c5db0654e55b26f3193d9d6fc5599023f /absl/time/BUILD.bazel | |
parent | 1b976982d8cdbfd8320f34209b065bae7adefb09 (diff) |
Run the //absl/time timezone tests with a data dependency on, and a
matching ${TZDIR} setting for, //absl/time/internal/cctz:zoneinfo.
This eliminates any hidden dependency on /usr/share/zoneinfo, and
enables the upcoming deletion of the embedded internal/zoneinfo.inc
data from //absl/time:test_util.
PiperOrigin-RevId: 488372848
Change-Id: If1c8525b5ca4348cb2fc3b4760819f791b6e9725
Diffstat (limited to 'absl/time/BUILD.bazel')
-rw-r--r-- | absl/time/BUILD.bazel | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/absl/time/BUILD.bazel b/absl/time/BUILD.bazel index b5f03980..a6ea3506 100644 --- a/absl/time/BUILD.bazel +++ b/absl/time/BUILD.bazel @@ -87,6 +87,8 @@ cc_test( "time_zone_test.cc", ], copts = ABSL_TEST_COPTS, + data = ["//absl/time/internal/cctz:zoneinfo"], + env = {"TZDIR": "absl/time/internal/cctz/testdata/zoneinfo"}, linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":test_util", @@ -133,6 +135,8 @@ cc_test( "time_benchmark.cc", ], copts = ABSL_TEST_COPTS, + data = ["//absl/time/internal/cctz:zoneinfo"], + env = {"TZDIR": "absl/time/internal/cctz/testdata/zoneinfo"}, linkopts = ABSL_DEFAULT_LINKOPTS, tags = [ "benchmark", |