From 29825ec07f5077bf235f7d8e89b83cd3d8f9a205 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Thu, 16 Jul 2015 22:29:19 +0200 Subject: reproducible openwrt: show packages as ftbfs when one build failed --- bin/reproducible_openwrt.sh | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'bin') 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 " " >> $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 " " >> $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 "
Images for $i
\"ftbfs $j (${SIZE}K) failed to build once.
" >> $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 " " >> $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 -- cgit v1.2.3-70-g09d2
Packages for $i
\"ftbfs $j (${SIZE}K) failed to build once.