]>
Commit | Line | Data |
---|---|---|
d059cc26 MV |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | setupenvironment | |
7 | configarchitecture 'i386' | |
8 | ||
9 | cat > rootdir/etc/apt/preferences <<EOF | |
10 | Package: * | |
11 | Pin: release testing | |
12 | Pin-Priority: 600 | |
13 | ||
14 | Package: * | |
15 | Pin: release unstable | |
16 | Pin-Priority: 1 | |
17 | EOF | |
18 | ||
19 | insertinstalledpackage 'foo' 'all' '1' | |
20 | insertpackage 'testing' 'foo' 'all' '1' | |
21 | insertpackage 'testing-updates' 'foo' 'all' '2' | |
22 | insertpackage 'unstable' 'foo' 'all' '3' | |
23 | ||
24 | insertinstalledpackage 'bar' 'all' '1' | |
25 | insertpackage 'testing' 'bar' 'all' '2' | |
26 | ||
27 | setupaptarchive | |
28 | ||
29 | testequal "Listing... | |
30 | bar/testing 2 all [upgradable from: 1]" apt list --upgradable | |
31 | ||
32 | testequal "Listing... | |
33 | bar/testing 2 all [upgradable from: 1] | |
34 | foo/testing,now 1 all [installed]" apt list |