[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible netbsd: support testing several archs properly
Holger Levsen
holger at moszumanska.debian.org
Sun Jul 5 16:58:50 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 2aec09b9768ce2723747837f4ca59d97bf5af7ec
Author: Holger Levsen <holger at layer-acht.org>
Date: Sun Jul 5 18:58:35 2015 +0200
reproducible netbsd: support testing several archs properly
---
bin/reproducible_netbsd.sh | 33 ++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)
diff --git a/bin/reproducible_netbsd.sh b/bin/reproducible_netbsd.sh
index c023fa1..620ea09 100755
--- a/bin/reproducible_netbsd.sh
+++ b/bin/reproducible_netbsd.sh
@@ -13,8 +13,8 @@ common_init "$@"
set -e
-# build for different architectures
-ARCHS="sparc64" # FIXME: actually use this...
+# build for these architectures
+ARCHS="sparc64"
cleanup_tmpdirs() {
cd
@@ -27,12 +27,15 @@ create_results_dirs() {
}
save_netbsd_results(){
- RUN=$1
- cd obj/releasedir/sparc64/
- mkdir -p $TMPDIR/$RUN/
- cp -pr * $TMPDIR/$RUN/
- cd ../../..
- rm obj/releasedir/sparc64/ -r
+ local RUN=$1
+ local ARCH
+ cd obj/releasedir/
+ for ARCH in $ARCHS ; do
+ mkdir -p $TMPDIR/$RUN/${ARCH}
+ cp -pr ${ARCH} $TMPDIR/$RUN/
+ rm ./${ARCH} -r
+ done
+ cd ../..
}
#
@@ -62,8 +65,10 @@ echo "$(date -u) - Building netbsd ${NETBSD_VERSION} - first build run."
echo "============================================================================="
export TZ="/usr/share/zoneinfo/Etc/GMT+12"
# actually build everything
-ionice -c 3 nice \
- ./build.sh -j $NUM_CPU -U -u -m sparc64 release
+for ARCH in $ARCHS ; do
+ ionice -c 3 nice \
+ ./build.sh -j $NUM_CPU -U -u -m ${ARCH} release
+done
# save results in b1
save_netbsd_results b1
@@ -78,9 +83,11 @@ export CAPTURE_ENVIRONMENT="I capture the environment"
umask 0002
# use allmost all cores for second build
NEW_NUM_CPU=$(echo $NUM_CPU-1|bc)
-ionice -c 3 nice \
- linux64 --uname-2.6 \
- ./build.sh -j $NEW_NUM_CPU -U -u -m sparc64 release
+for ARCH in $ARCHS ; do
+ ionice -c 3 nice \
+ linux64 --uname-2.6 \
+ ./build.sh -j $NEW_NUM_CPU -U -u -m ${ARCH} release
+done
# reset environment to default values again
export LANG="en_GB.UTF-8"
--
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