coverage.sh: in addition to cmp, run diffoscope and base64 and xxd
This commit is contained in:
parent
6bbf3943d1
commit
503faaccf8
1 changed files with 22 additions and 1 deletions
23
coverage.sh
23
coverage.sh
|
@ -117,7 +117,28 @@ tar -C /tmp/debian-$dist-debootstrap -xf "cache/debian-$dist-$variant.tar"
|
||||||
# delete the directory
|
# delete the directory
|
||||||
tar -C /tmp/debian-$dist-debootstrap -cf dev1.tar ./dev
|
tar -C /tmp/debian-$dist-debootstrap -cf dev1.tar ./dev
|
||||||
tar -C /tmp/debian-$dist-mm -cf dev2.tar ./dev
|
tar -C /tmp/debian-$dist-mm -cf dev2.tar ./dev
|
||||||
cmp dev1.tar dev2.tar
|
ret=0
|
||||||
|
cmp dev1.tar dev2.tar || ret=\$?
|
||||||
|
if [ "\$ret" -ne 0 ]; then
|
||||||
|
if type diffoscope >/dev/null; then
|
||||||
|
diffoscope dev1.tar dev2.tar
|
||||||
|
else
|
||||||
|
echo "no diffoscope installed" >&2
|
||||||
|
fi
|
||||||
|
if type base64 >/dev/null; then
|
||||||
|
base64 dev1.tar
|
||||||
|
base64 dev2.tar
|
||||||
|
else
|
||||||
|
echo "no base64 installed" >&2
|
||||||
|
fi
|
||||||
|
if type xxd >/dev/null; then
|
||||||
|
xxd dev1.tar
|
||||||
|
xxd dev2.tar
|
||||||
|
else
|
||||||
|
echo "no xxd installed" >&2
|
||||||
|
fi
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
rm dev1.tar dev2.tar
|
rm dev1.tar dev2.tar
|
||||||
rm -r /tmp/debian-$dist-debootstrap/dev /tmp/debian-$dist-mm/dev
|
rm -r /tmp/debian-$dist-debootstrap/dev /tmp/debian-$dist-mm/dev
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue