]>
Commit | Line | Data |
---|---|---|
dae19747 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" | |
5 | . "$TESTDIR/framework" | |
6 | setupenvironment | |
7 | configarchitecture 'amd64' | |
8 | ||
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' | |
20 | ||
21 | setupaptarchive --no-update | |
22 | ||
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" | |
f74d99c6 DK |
29 | #less "$APT_EDSP_DUMP_FILENAME" |
30 | ||
31 | aptget install foo -ys #--planer apt |