check.sh: Improve logging
This commit is contained in:
parent
578ed80235
commit
a7b02fc427
1 changed files with 10 additions and 1 deletions
11
check.sh
11
check.sh
|
@ -141,6 +141,8 @@ pkgbma=$6
|
||||||
debrel=$7
|
debrel=$7
|
||||||
debvpkg=$8
|
debvpkg=$8
|
||||||
|
|
||||||
|
echo "testcase: $pkgtype $provides $pkgaarch $pkgbarch $pkgama $pkgbma $debrel $debvpkg" >&2
|
||||||
|
|
||||||
# apt needs a package repository
|
# apt needs a package repository
|
||||||
# dose needs Packages/Sources files
|
# dose needs Packages/Sources files
|
||||||
# dpkg needs a .deb or an unpacked source tree
|
# dpkg needs a .deb or an unpacked source tree
|
||||||
|
@ -253,7 +255,11 @@ fi
|
||||||
dpkg-scanpackages "$workdir/repo" /dev/null ./ > "$workdir/repo/Packages"
|
dpkg-scanpackages "$workdir/repo" /dev/null ./ > "$workdir/repo/Packages"
|
||||||
dpkg-scansources "$workdir/repo" /dev/null ./ > "$workdir/repo/Sources"
|
dpkg-scansources "$workdir/repo" /dev/null ./ > "$workdir/repo/Sources"
|
||||||
|
|
||||||
tail -n 999999 "$workdir/repo/Packages" "$workdir/repo/Sources" >&2
|
if [ "$pkgtype" = binary ]; then
|
||||||
|
tail -n 999999 "$workdir/repo/Packages" >&2
|
||||||
|
else
|
||||||
|
tail -n 999999 "$workdir/repo/Packages" "$workdir/repo/Sources" >&2
|
||||||
|
fi
|
||||||
|
|
||||||
# write a Release file
|
# write a Release file
|
||||||
cat << END > "$workdir/repo/Release"
|
cat << END > "$workdir/repo/Release"
|
||||||
|
@ -356,6 +362,7 @@ if [ "$pkgtype" = binary ]; then
|
||||||
else
|
else
|
||||||
dose-builddebcheck --deb-native-arch=amd64 --deb-foreign-archs=i386 --checkonly=pkga "$workdir/repo/Packages" "$workdir/repo/Sources" >/dev/null || dosestatus=1
|
dose-builddebcheck --deb-native-arch=amd64 --deb-foreign-archs=i386 --checkonly=pkga "$workdir/repo/Packages" "$workdir/repo/Sources" >/dev/null || dosestatus=1
|
||||||
fi
|
fi
|
||||||
|
echo "dosestatus: $dosestatus" >&2
|
||||||
|
|
||||||
# test apt
|
# test apt
|
||||||
aptstatus=0
|
aptstatus=0
|
||||||
|
@ -364,6 +371,7 @@ if [ "$pkgtype" = binary ]; then
|
||||||
else
|
else
|
||||||
APT_CONFIG="$workdir/aptroot/etc/apt/apt.conf" apt-get build-dep --simulate pkga >&2 || aptstatus=1
|
APT_CONFIG="$workdir/aptroot/etc/apt/apt.conf" apt-get build-dep --simulate pkga >&2 || aptstatus=1
|
||||||
fi
|
fi
|
||||||
|
echo "aptstatus: $aptstatus" >&2
|
||||||
|
|
||||||
# test dpkg
|
# test dpkg
|
||||||
dpkgstatus=0
|
dpkgstatus=0
|
||||||
|
@ -373,6 +381,7 @@ else
|
||||||
PATH=$PATH:/sbin dpkg --log=/dev/null --force-unsafe-io --force-not-root --admindir="$workdir/dpkgroot" -i "$workdir/repo/pkgb.deb" "$workdir/repo/build-essential.deb" "$workdir/repo/crossbuild-essential-i386.deb" >&2
|
PATH=$PATH:/sbin dpkg --log=/dev/null --force-unsafe-io --force-not-root --admindir="$workdir/dpkgroot" -i "$workdir/repo/pkgb.deb" "$workdir/repo/build-essential.deb" "$workdir/repo/crossbuild-essential-i386.deb" >&2
|
||||||
dpkg-checkbuilddeps --admindir="$workdir/dpkgroot" "$workdir/repo/pkga/debian/control" >&2 || dpkgstatus=1
|
dpkg-checkbuilddeps --admindir="$workdir/dpkgroot" "$workdir/repo/pkga/debian/control" >&2 || dpkgstatus=1
|
||||||
fi
|
fi
|
||||||
|
echo "dpkgstatus: $dpkgstatus" >&2
|
||||||
|
|
||||||
echo "$pkgtype $provides $pkgaarch $pkgbarch $pkgama $pkgbma $debrel $debvpkg $dosestatus $aptstatus $dpkgstatus"
|
echo "$pkgtype $provides $pkgaarch $pkgbarch $pkgama $pkgbma $debrel $debvpkg $dosestatus $aptstatus $dpkgstatus"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue