summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2015-07-16 22:29:19 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-19 18:21:23 +0200
commit29825ec07f5077bf235f7d8e89b83cd3d8f9a205 (patch)
tree0dd7301ef017011843ccddc4afc2c0b8f9356874 /bin
parent87d908848921b54039670b41ea8561ea45f88371 (diff)
downloadjenkins.debian.net-29825ec07f5077bf235f7d8e89b83cd3d8f9a205.tar.xz
reproducible openwrt: show packages as ftbfs when one build failed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_openwrt.sh28
1 files changed, 26 insertions, 2 deletions
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index cd6701ea..4daa4c3d 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -216,9 +216,21 @@ cd $TMPDIR/b1
tree .
for i in * ; do
cd $i
+
+ # search images in both paths to find non-existing ones
+ IMGS1=$(find * -type f -name "*.bin" -o -name "*.squashfs" | sort -u )
+ pushd $TMPDIR/b2/$i
+ IMGS2=$(find * -type f -name "*.bin" -o -name "*.squashfs" | sort -u )
+ popd
+
echo " <table><tr><th>Images for <code>$i</code></th></tr>" >> $DBD_HTML
- for j in $(find * -name "*.bin" -o -name "*.squashfs" |sort -u ) ; do
+ for j in $(printf "$IMGS1\n$IMGS2" | sort -u ) ; do
let ALL_IMAGES+=1
+ if [ ! -f $TMPDIR/b1/$i/$j -o ! -f $TMPDIR/b2/$i/$j ] ; then
+ echo " <tr><td><img src=\"/userContent/static/weather-storm.png\" alt=\"ftbfs icon\" /> $j (${SIZE}K) failed to build once.</td></tr>" >> $DBD_HTML
+ rm -f $BASE/openwrt/dbd/$i/$j.html # cleanup from previous (unreproducible) tests - if needed
+ continue
+ fi
call_debbindiff $i $j
get_filesize $j
if [ -f $TMPDIR/$i/$j.html ] ; then
@@ -243,9 +255,21 @@ create_results_dirs
cd $TMPDIR/b1
for i in * ; do
cd $i
+
+ # search packages in both paths to find non-existing ones
+ PKGS1=$(find * -type f -name "*.ipk" | sort -u )
+ pushd $TMPDIR/b2/$i
+ PKGS2=$(find * -type f -name "*.ipk" | sort -u )
+ popd
+
echo " <table><tr><th>Packages for <code>$i</code></th></tr>" >> $DBD_HTML
- for j in $(find * -name "*.ipk" |sort -u ) ; do
+ for j in $(printf "$PKGS1\n$PKGS2" | sort -u ) ; do
let ALL_PACKAGES+=1
+ if [ ! -f $TMPDIR/b1/$i/$j -o ! -f $TMPDIR/b2/$i/$j ] ; then
+ echo " <tr><td><img src=\"/userContent/static/weather-storm.png\" alt=\"ftbfs icon\" /> $j (${SIZE}K) failed to build once.</td></tr>" >> $DBD_HTML
+ rm -f $BASE/openwrt/dbd/$i/$j.html # cleanup from previous (unreproducible) tests - if needed
+ continue
+ fi
call_debbindiff $i $j
get_filesize $j
if [ -f $TMPDIR/$i/$j.html ] ; then