]> git.saurik.com Git - apt.git/blame - test/integration/test-external-installation-planer-protocol
eipp: make no difference between remove & purge
[apt.git] / test / integration / test-external-installation-planer-protocol
CommitLineData
dae19747
DK
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6setupenvironment
7configarchitecture 'amd64'
8
9buildsimplenativepackage 'libfoo' 'amd64' '3' 'experimental' 'Multi-Arch: same'
10buildsimplenativepackage 'foo' 'all' '3' 'experimental' 'Depends: newstuff'
11buildsimplenativepackage 'foo' 'all' '2' 'unstable' 'Depends: libfoo:amd64, stuff
12Conflicts: bar, libfoo:i386
13Recommends: unrelated'
14buildsimplenativepackage 'libfoo' 'amd64' '2' 'unstable' 'Multi-Arch: same'
15buildsimplenativepackage 'unrelated-2' 'amd64' '2' 'unstable'
16insertinstalledpackage 'foo' 'all' '1'
17insertinstalledpackage 'bar' 'all' '1'
18insertinstalledpackage 'stuff' 'all' '1'
19insertinstalledpackage 'unrelated-1' 'all' '1'
20
21setupaptarchive --no-update
22
23testsuccess apt update
24export APT_EDSP_DUMP_FILENAME="${TMPWORKINGDIRECTORY}/eipp.dump"
25testfailure aptget install foo --planer dump -y
26testfailure grep 'unrelated-2' "$APT_EDSP_DUMP_FILENAME"
27testsuccessequal '2' grep -c '^Package: foo$' "$APT_EDSP_DUMP_FILENAME"
28testsuccessequal '1' grep -c '^Package: libfoo$' "$APT_EDSP_DUMP_FILENAME"
f74d99c6
DK
29#less "$APT_EDSP_DUMP_FILENAME"
30
31aptget install foo -ys #--planer apt