]>
Commit | Line | Data |
---|---|---|
b093a199 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | local TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | setupenvironment | |
7 | configarchitecture "i386" | |
8 | ||
9 | buildsimplenativepackage "unrelated" "all" "1" "unstable" | |
10 | buildsimplenativepackage "po-debconf" "all" "1.0.16" "unstable" | |
11 | buildsimplenativepackage "debhelper" "all" "8.0.0" "unstable" "Depends: po-debconf" | |
12 | setupaptarchive | |
13 | ||
14 | aptget install unrelated debhelper -qq 2>&1 > /dev/null | |
15 | ||
16 | testfileequal "rootdir/var/lib/apt/extended_states" "Package: po-debconf | |
17 | Architecture: i386 | |
18 | Auto-Installed: 1 | |
19 | " | |
20 | aptget remove debhelper -y -qq 2>&1 > /dev/null | |
21 | aptget autoremove -y -qq 2>&1 > /dev/null | |
22 | ||
23 | testfileequal "rootdir/var/lib/apt/extended_states" "" | |
24 | ||
25 | sed -i rootdir/var/log/apt/history.log -e '/^Commandline: / d' -e '/^Start-Date: / d' -e '/^End-Date: / d' | |
26 | testfileequal "rootdir/var/log/apt/history.log" ' | |
27 | Install: unrelated:i386 (1), debhelper:i386 (8.0.0), po-debconf:i386 (1.0.16, automatic) | |
28 | ||
29 | Remove: debhelper:i386 (8.0.0) | |
30 | ||
31 | Remove: po-debconf:i386 (1.0.16)' |