From a155f9142d5c15cc0e6c297c8cb0d858b8f6ce56 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 19 Oct 2015 10:03:59 +0200 Subject: reproducible: improve output --- bin/reproducible_coreboot.sh | 2 +- bin/reproducible_freebsd.sh | 20 ++++++++++---------- bin/reproducible_netbsd.sh | 12 ++++++------ bin/reproducible_openwrt.sh | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh index 5bb20b54..6616cfe4 100755 --- a/bin/reproducible_coreboot.sh +++ b/bin/reproducible_coreboot.sh @@ -49,7 +49,7 @@ trap cleanup_tmpdirs INT TERM EXIT cd $TMPBUILDDIR echo "=============================================================================" -echo "$(date -u) - Cloning the coreboot git repository with submodules." +echo "$(date -u) - Cloning coreboot git repository with submodules." echo "=============================================================================" git clone --recursive http://review.coreboot.org/p/coreboot.git cd coreboot diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh index d41bd89e..3cd20e1a 100755 --- a/bin/reproducible_freebsd.sh +++ b/bin/reproducible_freebsd.sh @@ -27,7 +27,7 @@ create_results_dirs() { save_freebsd_results(){ local RUN=$1 echo "=============================================================================" - echo "$(date -u) - Saving freebsd ${FREEBSD_VERSION} artifacts for $RUN." + echo "$(date -u) - Saving FreeBSD ${FREEBSD_VERSION} build results for $RUN run." echo "=============================================================================" mkdir -p $TMPDIR/$RUN/ # copy results over @@ -45,7 +45,7 @@ FREEBSD_TARGET="release/10.2.0" RSSH="ssh freebsd-jenkins.debian.net" RSCP="scp -r freebsd-jenkins.debian.net" TMPBUILDDIR=/usr/src -$RSSH 'sudo rm -rf /usr/src ; sudo mkdir /usr/src ; sudo chown jenkins /usr/src' ### this is tmpfs on linux, we should move this to tmpfs on freebsd too +$RSSH 'sudo rm -rf /usr/src ; sudo mkdir /usr/src ; sudo chown jenkins /usr/src' ### this is tmpfs on linux, we should move this to tmpfs on FreeBSD too TMPDIR=$($RSSH 'TMPDIR=/srv/reproducible-results mktemp -d') # used to compare results DATE=$(date -u +'%Y-%m-%d') START=$(date +'%s') @@ -56,23 +56,23 @@ echo "========================================================================== $RSSH freebsd-version echo "=============================================================================" -echo "$(date -u) - Cloning the freebsd git repository (which is autosynced with their CVS repository)" +echo "$(date -u) - Cloning FreeBSD git repository." echo "=============================================================================" $RSSH git clone --depth 1 --branch $FREEBSD_TARGET https://github.com/freebsd/freebsd.git $TMPBUILDDIR FREEBSD=$($RSSH "cd $TMPBUILDDIR ; git log -1") FREEBSD_VERSION=$($RSSH "cd $TMPBUILDDIR ; git describe --always") -echo "This is freebsd $FREEBSD_VERSION." +echo "This is FreeBSD $FREEBSD_VERSION." echo $RSSH "cd $TMPBUILDDIR ; git log -1" TARGET_NAME=$(echo "freebsd_${FREEBSD_TARGET}_git${FREEBSD_VERSION}" | sed "s#/#-#g") echo "=============================================================================" -echo "$(date -u) - Building freebsd ${FREEBSD_VERSION} - first build run." +echo "$(date -u) - Building FreeBSD ${FREEBSD_VERSION} - first build run." echo "=============================================================================" export TZ="/usr/share/zoneinfo/Etc/GMT+12" export LANG="en_GB.UTF-8" # actually build everything -NUM_CPU=4 # if someone could tell me how to determine this on freebsd, this would be neat +NUM_CPU=4 # if someone could tell me how to determine this on FreeBSD, this would be neat $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG sudo make -j $NUM_CPU buildworld" $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG sudo make -j $NUM_CPU buildkernel" $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG DESTDIR=$TMPDIR sudo make -j $NUM_CPU installworld" @@ -83,7 +83,7 @@ save_freebsd_results b1 echo "=============================================================================" -echo "$(date -u) - Building freebsd - second build run." +echo "$(date -u) - Building FreeBSD - second build run." echo "=============================================================================" export TZ="/usr/share/zoneinfo/Etc/GMT-14" export LANG="fr_CH.UTF-8" @@ -112,7 +112,7 @@ umask 0022 TIMEOUT="30m" DIFFOSCOPE="$(schroot --directory /tmp -c source:jenkins-reproducible-${DBDSUITE}-diffoscope diffoscope -- --version 2>&1)" echo "=============================================================================" -echo "$(date -u) - Running $DIFFOSCOPE on freebsd..." +echo "$(date -u) - Running $DIFFOSCOPE on FreeBSD build results." echo "=============================================================================" FILES_HTML=$(mktemp --tmpdir=$TMPDIR) echo "