aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/integration/BUILD
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2017-11-21 04:09:16 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-21 04:11:34 -0800
commit4d09a1de6a60c6f90cc88978151bcde83c8000d4 (patch)
treea01b49c6d3c8fe5b598594cb0fec1bb7156dc9f4 /src/test/shell/integration/BUILD
parent0fd76922d60bd1a39dd57d56b42c94edc2674243 (diff)
SOURCE_DATE_EPOCH environment variable override the timestamp
This is applying the version 1.1 of the specification (https://reproducible-builds.org/specs/source-date-epoch/) where the only timestamp that Bazel puts in the final targets is overridden by the value of SOURCE_DATE_EPOCH. This change also remove the legacy SOURCE_DATE_EPOCH handling which wasn't really following the spec. Note that Bazel itself tries hard to remove all timestamps from intermediary binaries and overridde SOURCE_DATE_EPOCH in most action, which is a not according to the version 1.0 of the spec but according to the expected change for version 1.1. RELNOTES: SOURCE_DATE_EPOCH (https://reproducible-builds.org/specs/source-date-epoch/) can be used to override the timestamp used for stamped target (when using --stamp). Fixes #2240. Change-Id: I074e7905fa6745cc706f7391340aeae9188909ca PiperOrigin-RevId: 176489717
Diffstat (limited to 'src/test/shell/integration/BUILD')
-rw-r--r--src/test/shell/integration/BUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/shell/integration/BUILD b/src/test/shell/integration/BUILD
index b2d9439542..75471033f2 100644
--- a/src/test/shell/integration/BUILD
+++ b/src/test/shell/integration/BUILD
@@ -204,6 +204,13 @@ sh_library(
)
sh_test(
+ name = "stamping_test",
+ size = "medium",
+ srcs = ["stamping_test.sh"],
+ data = [":test-deps"],
+)
+
+sh_test(
name = "discard_graph_edges_test",
size = "medium",
srcs = ["discard_graph_edges_test.sh"],