[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible freebsd: run 2nd build 400 days in the future
Holger Levsen
holger at moszumanska.debian.org
Tue Nov 3 22:28:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit d21c871ccc845566be5c20605fb44bd72645b51f
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue Nov 3 23:24:21 2015 +0100
reproducible freebsd: run 2nd build 400 days in the future
---
bin/reproducible_common.sh | 5 +++--
bin/reproducible_freebsd.sh | 7 +++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 64ccd64..071a657 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -378,8 +378,8 @@ write_explaination_table() {
else
write_page "<tr><td>CPU type</td><td>$(cat /proc/cpuinfo|grep 'model name'|head -1|cut -d ":" -f2-)</td><td>same for both builds</td></tr>"
fi
- write_page "<tr><td>year, month, date</td><td>today ($DATE)</td><td>same for both builds (currently, work in progress)</td></tr>"
if [ "$1" != "FreeBSD" ] ; then
+ write_page "<tr><td>year, month, date</td><td>today ($DATE)</td><td>same for both builds (currently, work in progress)</td></tr>"
write_page "<tr><td>hour, minute</td><td>hour and minute will probably vary between two builds...</td><td>but this is not enforced systematically... (currently, work in progress)</td></tr>"
if [ "$1" = "debian" ] ; then
write_page "<tr><td>filesystem</td><td>tmpfs</td><td><em>temporarily not</em> varied using <a href=\"https://tracker.debian.org/disorderfs\">disorderfs</a> (<a href=\"https://sources.debian.net/src/disorderfs/sid/disorderfs.1.txt/\">manpage</a>)</td></tr>"
@@ -387,7 +387,8 @@ write_explaination_table() {
write_page "<tr><td>Filesystem</td><td>tmpfs</td><td>same for both builds (currently, this could be varied using <a href=\"https://tracker.debian.org/disorderfs\">disorderfs</a>)</td></tr>"
fi
else
- write_page "<tr><td>hour, minute</td><td>hour and minute will probably vary between two builds...</td><td>but this is not enforced systematically...)</td></tr>"
+ write_page "<tr><td>year, month, date</td><td>today ($DATE)</td><td>the 2nd build done with the build node set 1 year, 1 month and 5 days in the future</td></tr>"
+ write_page "<tr><td>hour, minute</td><td>hour and minute will vary between two builds...</td><td>but this is not enforced systematically...)</td></tr>"
write_page "<tr><td>filesystem of the build directory</td><td>ufs</td><td>same for both builds</td></tr>"
fi
if [ "$1" = "debian" ] ; then
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 3cd20e1..c8e135e 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list