From c458bfeb2c663ba9a84acf53a919f6b450fb5277 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 11 Jun 2015 12:55:59 +0200 Subject: reproducible coreboot: reorder presentation of results --- bin/reproducible_coreboot.sh | 79 ++++++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 36 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh index 9843024c..1e45da91 100755 --- a/bin/reproducible_coreboot.sh +++ b/bin/reproducible_coreboot.sh @@ -195,13 +195,47 @@ cd .. rm coreboot-builds -r cd .. +# run debbindiff on the results TIMEOUT="30m" DBDSUITE="unstable" DBDVERSION="$(schroot --directory /tmp -c source:jenkins-reproducible-${DBDSUITE}-debbindiff debbindiff -- --version 2>&1)" echo "=============================================================================" echo "$(date -u) - Running $DBDVERSION on coreboot images now" echo "=============================================================================" -# and creating the webpage while we're at it +ROMS_HTML=$(mktemp) +echo " " >> $ROMS_HTML +GOOD_PERCENT=$(echo "scale=1 ; ($GOOD_ROMS*100/$ALL_ROMS)" | bc) +BAD_PERCENT=$(echo "scale=1 ; ($BAD_ROMS*100/$ALL_ROMS)" | bc) + +# +# finally create the webpage +# PAGE=$PWD/coreboot/coreboot.html cat > $PAGE <<- EOF @@ -224,45 +258,18 @@ cat > $PAGE <<- EOF

EOF write_page "

Reproducible Coreboot

" -write_page "

Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, so that anyone can verify that a given binary derived from the source it was said to be derived. There is a lot more information about reproducible builds on the Debian wiki and on https://reproducible.debian.net. The wiki has a lot more information, eg. why this is useful, what common issues exist and which workaround and solutions are known.
" +write_page "

Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, so that anyone can verify that a given binary derived from the source it was said to be derived. There is a lot more information about reproducible builds on the Debian wiki and on https://reproducible.debian.net. The wiki has a lot more information, eg. why this is useful, what common issues exist and which workarounds and solutions are known.
" write_page " Reproducible Coreboot is an effort to apply this to coreboot. Thus each coreboot.rom is build twice (without payloads), with a few varitations added and then those two ROMs are compared using debbindiff. Please note that the toolchain is not varied at all as the rebuild happens on exactly the same system. More variations are expected to be seen in the wild.

" write_page "

There is a monthly run jenkins job to test the master branch of coreboot.git. Currently this job is triggered more often though, because this is still under development and brand new. The jenkins job is simply running reproducible_coreboot.sh in a Debian environemnt and this script is solely responsible for creating this page. Feel invited to join #debian-reproducible (on irc.oftc.net) to request job runs whenever sensible. Patches and other feedback are very much appreciated!

" -write_page "

"
-echo -n "$COREBOOT" >> $PAGE
-write_page "       

" +write_page "

$GOOD_ROMS ($GOOD_PERCENT%) out of $ALL_ROMS built coreboot images were reproducible in our test setup, while $BAD_ROMS ($BAD_PERCENT%) failed to build from source." +write_page " These tests were last run on $DATE for version ${COREBOOT_VERSION}.

" write_explaination_table coreboot -write_page "

$GOOD_ROMS ($GOOD_PERCENT%) out of $ALL_ROMS built coreboot images were reproducible in our test setup, while $BAD_ROMS ($BAD_PERCENT%) failed to build from source." -write_page " These tests were last run on $DATE for version ${COREBOOT_VERSION}.

" +cat $ROMS_HTML >> $PAGE cat $TOOLCHAIN_HTML >> $PAGE -rm -f $TOOLCHAIN_HTML +rm -f $ROMS_HTML $TOOLCHAIN_HTML +write_page "

"
+echo -n "$COREBOOT" >> $PAGE
+write_page "     

" write_page " " write_page_footer coreboot cd .. -- cgit v1.2.3-70-g09d2