summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_freebsd.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-03 23:24:21 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-03 23:27:39 +0100
commitd21c871ccc845566be5c20605fb44bd72645b51f (patch)
tree406f2ca0e7efe639a1501466d9f345bea16af282 /bin/reproducible_freebsd.sh
parent9629f011c33afbcb16f496d5cfdb44ce804748af (diff)
downloadjenkins.debian.net-d21c871ccc845566be5c20605fb44bd72645b51f.tar.xz
reproducible freebsd: run 2nd build 400 days in the future
Diffstat (limited to 'bin/reproducible_freebsd.sh')
-rwxr-xr-xbin/reproducible_freebsd.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 3cd20e1a..c8e135e0 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -81,6 +81,9 @@ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG DESTDIR=$TMPDIR sudo make -j $NUM_CPU
# save results in b1
save_freebsd_results b1
+# set time forward 400 days
+$RSSH "service ntpd stop ; date --set='+400 days' ; date"
+echo "$(date) - system is running in the future now."
echo "============================================================================="
echo "$(date -u) - Building FreeBSD - second build run."
@@ -101,6 +104,10 @@ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL DESTDIR=$TMPDIR sudo m
# save results in b2
save_freebsd_results b2
+# set time back to today
+$RSSH "ntpdate pool.ntp.org ; service ntpd start ; service ntpd status ; date"
+echo "$(date) - system is running at the current date now."
+
# reset environment to default values again
export LANG="en_GB.UTF-8"
unset LC_ALL