File: command-binnmu

package info (click to toggle)
debomatic 0.26-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 740 kB
  • sloc: python: 2,085; sh: 271; makefile: 37
file content (26 lines) | stat: -rwxr-xr-x 1,760 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
set -e

cd "$AUTOPKGTEST_TMP"

sed -i 's/modules: True/modules: False/' /etc/debomatic/debomatic.conf
grep /etc/debomatic/debomatic.conf -e "modules: False" || exit 1
sed -i "s|incoming: /incoming|incoming: $AUTOPKGTEST_TMP/incoming|" /etc/debomatic/debomatic.conf
grep /etc/debomatic/debomatic.conf -e "incoming: $AUTOPKGTEST_TMP/incoming" || exit 1
sed -i "s|loglevel: info|loglevel: debug|" /etc/debomatic/debomatic.conf
grep /etc/debomatic/debomatic.conf -e "loglevel: debug" || exit 1

mkdir "$AUTOPKGTEST_TMP"/incoming
version=$(rmadison -u debian -a source -s unstable hello | cut -d"|" -f 2 | xargs)
echo "binnmu hello_$version unstable 1 \"Deb-o-Matic test suite\" Luca Falavigna <dktrkranz@debian.org>" > "$AUTOPKGTEST_TMP"/incoming/binnmu.commands
debomatic -c /etc/debomatic/debomatic.conf -o /$AUTOPKGTEST_TMP/incoming/binnmu.commands -i
cat /$AUTOPKGTEST_TMP/incoming/unstable/pool/hello_$version/hello_$version.buildlog
grep /$AUTOPKGTEST_TMP/incoming/unstable/pool/hello_$version/hello_$version.buildlog -e "Status: successful" || exit 1
grep /$AUTOPKGTEST_TMP/incoming/unstable/pool/hello_$version/hello_$version.buildlog -e "Maintainer: Luca Falavigna <dktrkranz@debian.org>" || exit 1
grep /$AUTOPKGTEST_TMP/incoming/unstable/pool/hello_$version/hello_$version.buildlog -e "hello ($version+b1) unstable" || exit 1
grep /$AUTOPKGTEST_TMP/incoming/unstable/pool/hello_$version/hello_$version.buildlog -e "* Binary-only non-maintainer upload for" || exit 1
grep /$AUTOPKGTEST_TMP/incoming/unstable/pool/hello_$version/hello_$version.buildlog -e "* Deb-o-Matic test suite" || exit 1

rm -fr /etc/schroot/chroot.d/unstable-*-debomatic-*
rm -fr /etc/sbuild/chroot/unstable-*-debomatic
rm -fr /$AUTOPKGTEST_TMP/incoming/unstable/unstable