]>
git.saurik.com Git - apt.git/blob - test/integration/test-external-installation-planer-protocol
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64'
9 buildsimplenativepackage 'libfoo' 'amd64' '3' 'experimental' 'Multi-Arch: same'
10 buildsimplenativepackage 'foo' 'all' '3' 'experimental' 'Depends: newstuff'
11 buildsimplenativepackage 'foo' 'all' '2' 'unstable' 'Depends: libfoo:amd64, stuff
12 Conflicts: bar, libfoo:i386
13 Recommends: unrelated'
14 buildsimplenativepackage 'libfoo' 'amd64' '2' 'unstable' 'Multi-Arch: same'
15 buildsimplenativepackage 'unrelated-2' 'amd64' '2' 'unstable'
16 insertinstalledpackage 'foo' 'all' '1'
17 insertinstalledpackage 'bar' 'all' '1'
18 insertinstalledpackage 'stuff' 'all' '1'
19 insertinstalledpackage 'unrelated-1' 'all' '1'
21 setupaptarchive --no-update
23 testsuccess apt update
24 export APT_EDSP_DUMP_FILENAME="${TMPWORKINGDIRECTORY}/eipp.dump
"
25 testfailure aptget install foo --planer dump -y
26 testfailure grep 'unrelated-2' "$APT_EDSP_DUMP_FILENAME"
27 testsuccessequal '2' grep -c '^Package: foo$' "$APT_EDSP_DUMP_FILENAME"
28 testsuccessequal '1' grep -c '^Package: libfoo$' "$APT_EDSP_DUMP_FILENAME"
29 #less "$APT_EDSP_DUMP_FILENAME"
31 aptget install foo -ys #--planer apt