]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-720597-build-dep-purge
show apt-key warnings in apt update
[apt.git] / test / integration / test-bug-720597-build-dep-purge
CommitLineData
f42f6ef0
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
f42f6ef0 6setupenvironment
e457c941
JAK
7
8# we need this construct here as it isn't really possible to fake native arch for dpkg-* tools
9NATIVE="$(command dpkg --print-architecture)"
10configarchitecture $NATIVE
f42f6ef0
MV
11
12insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
13insertinstalledpackage 'pkga' 'all' '1'
e457c941
JAK
14buildsimplenativepackage 'pkgb' "$NATIVE" '1' 'stable' 'Conflicts: pkga'
15buildsimplenativepackage 'pkgc' "$NATIVE" '1' 'stable' 'Build-Depends: pkgb'
f42f6ef0
MV
16
17setupaptarchive
18
e457c941 19testsuccessequal "Reading package lists...
a249b3e6 20Reading package lists...
f42f6ef0
MV
21Building dependency tree...
22The following packages will be REMOVED:
23 pkga
24The following NEW packages will be installed:
25 pkgb
260 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
27Remv pkga [1]
e457c941
JAK
28Inst pkgb (1 stable [$NATIVE])
29Conf pkgb (1 stable [$NATIVE])" aptget build-dep pkgc -s
f42f6ef0 30
e457c941 31testsuccessequal "Reading package lists...
a249b3e6 32Reading package lists...
f42f6ef0
MV
33Building dependency tree...
34The following packages will be REMOVED:
35 pkga*
36The following NEW packages will be installed:
37 pkgb
380 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
39Purg pkga [1]
e457c941
JAK
40Inst pkgb (1 stable [$NATIVE])
41Conf pkgb (1 stable [$NATIVE])" aptget build-dep pkgc -s --purge
c97ae2a0
DK
42
43testsuccessequal 'Reading package lists...
44Building dependency tree...
450 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' apt autoremove -s
46testdpkgnotinstalled pkgb
47testsuccess apt build-dep pkgc -y -o Debug::pkgDepCache::AutoInstall=1 -o Debug::pkgDepCache::Marker=1
48testdpkginstalled pkgb
49testsuccessequal 'Reading package lists...
50Building dependency tree...
51Reading state information...
520 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' apt autoremove -s
53testsuccess apt purge pkgb pkgc -y
54testsuccessequal 'Reading package lists...
55Building dependency tree...
56Reading state information...
570 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' apt autoremove -s
58testsuccess apt build-dep pkgc -y -o APT::Get::Build-Dep-Automatic=true
59testsuccessequal 'Reading package lists...
60Building dependency tree...
61Reading state information...
62The following packages will be REMOVED:
63 pkgb
640 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
65Remv pkgb [1]' apt autoremove -s