From 27ea102b7e28a6e41f5750a7e35e3e0c701673bd Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 27 Aug 2015 14:24:21 +0200 Subject: reproducible freebsd: just comparing one tar archive with 20k files inside definitly wont be final yet I still wonder what it will be… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/reproducible_freebsd.sh | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'bin/reproducible_freebsd.sh') diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh index ddc2185d..cccaa4d2 100755 --- a/bin/reproducible_freebsd.sh +++ b/bin/reproducible_freebsd.sh @@ -15,8 +15,10 @@ set -e cleanup_tmpdirs() { cd echo "No Cleanup..." -# $RSSH "rm -r $TMPDIR" -# $RSSH 'sudo rm -r /usr/src /usr/obj' + #FIXME: cleanup freebsd soon and cleanup on jenkins too + #$RSSH "sudo chflags -R noschg $TMPDIR + #$RSSH "rm -r $TMPDIR" + #$RSSH 'sudo rm -r /usr/src /usr/obj' } create_results_dirs() { @@ -30,7 +32,7 @@ save_freebsd_results(){ DUMMY_DATE="$(date -u +'%Y-%m-%d')T00:00:00Z" $RSSH "sudo find $TMPDIR -newer $TMPDIR -exec touch -d '$DUMMY_DATE' {} \;" $RSSH "sudo find $TMPDIR -print0 | LC_ALL=C sort -z | sudo tar --null -T - --no-recursion -cJf $TMPDIR.tar.xz" - $RSCP:$TMPDIR.tar.xz $TMPDIR/$RUN + $RSCP:$TMPDIR.tar.xz $TMPDIR/$RUN/$TARGET_NAME.tar.xz $RSSH "sudo chflags -R noschg $TMPDIR ; sudo rm -r $TMPDIR $TMPDIR.tar.xz ; mkdir $TMPDIR" } @@ -60,7 +62,7 @@ FREEBSD_VERSION=$($RSSH "cd $TMPBUILDDIR ; git describe --always") 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." @@ -129,9 +131,10 @@ SIZE="" create_results_dirs cd $TMPDIR/b1 tree . -for i in * ; do - cd $i - echo " " >> $FILES_HTML +#for i in * ; do + #cd $i +i="." + echo "
Release files for $i
" >> $FILES_HTML for j in $(find * -type f |sort -u ) ; do let ALL_FILES+=1 call_diffoscope $i $j @@ -147,9 +150,9 @@ for i in * ; do rm -f $BASE/freebsd/dbd/$i/$j.html # cleanup from previous (unreproducible) tests - if needed fi done - cd .. + #cd .. echo "
Artifacts for $TARGET_NAME
" >> $FILES_HTML -done +#done GOOD_PERCENT=$(echo "scale=1 ; ($GOOD_FILES*100/$ALL_FILES)" | bc) # are we there yet? if [ "$GOOD_PERCENT" = "100.0" ] ; then @@ -187,7 +190,7 @@ if [ "$GOOD_PERCENT" = "100.0" ] ; then else write_page "." fi -write_page " These tests were last run on $DATE for version ${FREEBSD_VERSION} using ${DIFFOSCOPE}.

" +write_page " These tests were last run on $DATE for version ${FREEBSD_VERSION} using ${DIFFOSCOPE}. It is also very much work in progress...

" write_explaination_table FreeBSD cat $FILES_HTML >> $PAGE write_page "

"
-- 
cgit v1.2.3-70-g09d2