Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
90270e30
Commit
90270e30
authored
Aug 26, 2022
by
Holger Levsen
Browse files
reproducible Debian: mmdebstrap job: show results in a more human friendly way
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
4c7c909d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/reproducible_mmdebstrap.sh
View file @
90270e30
...
...
@@ -44,17 +44,24 @@ sudo mmdebstrap $SUITE > $BUILDDIR/b1/mmdebstrap/${SUITE}.tar
output_echo
"Running mmdebstrap
$SUITE
for the second run."
sudo
mmdebstrap
$SUITE
>
$BUILDDIR
/b2/mmdebstrap/
${
SUITE
}
.tar
# show sha256sum results
mv
$BUILDDIR
/b1
$BUILDDIR
/b2
$RESULTSDIR
/
sha256sum
$RESULTSDIR
/b1/mmdebstrap/
${
SUITE
}
.tar
$RESULTSDIR
/b2/mmdebstrap/
${
SUITE
}
.tar
# Run diffoscope on the images
output_echo
"Calling diffoscope on the results."
TIMEOUT
=
"240m"
DIFFOSCOPE
=
"
$(
schroot
--directory
/tmp
-c
chroot
:jenkins-reproducible-
${
DBDSUITE
}
-diffoscope
diffoscope
--
--version
2>&1
)
"
TMPDIR
=
${
RESULTSDIR
}
call_diffoscope mmdebstrap
${
SUITE
}
.tar
# show human readable results
if
diff
$RESULTSDIR
/b1/mmdebstrap/
${
SUITE
}
.tar RESULTSDIR/b2/mmdebstrap/
${
SUITE
}
.tar
;
then
echo
"Success: mmdebstrap of
$SUITE
is reproducible today."
else
echo
"Warning: mmdebstrap of
$SUITE
is not reproducible."
# Run diffoscope on the images
output_echo
"Calling diffoscope on the results."
TIMEOUT
=
"240m"
DIFFOSCOPE
=
"
$(
schroot
--directory
/tmp
-c
chroot
:jenkins-reproducible-
${
DBDSUITE
}
-diffoscope
diffoscope
--
--version
2>&1
)
"
TMPDIR
=
${
RESULTSDIR
}
call_diffoscope mmdebstrap
${
SUITE
}
.tar
fi
cleanup success
# Turn off the trap
trap
- INT TERM EXIT
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment