]>
Commit | Line | Data |
---|---|---|
14109555 MV |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture "i386" | |
9 | ||
10 | insertpackage 'unstable' 'foo' 'all' '1.0' | |
11 | insertinstalledpackage 'bar' 'i386' '1.0' | |
12 | ||
13 | insertinstalledpackage 'foobar' 'i386' '1.0' | |
14 | insertpackage 'unstable' 'foobar' 'i386' '2.0' | |
15 | ||
16 | setupaptarchive | |
17 | ||
18 | APTARCHIVE=$(readlink -f ./aptarchive) | |
19 | ||
20 | testequal "Listing... | |
4afa7d18 | 21 | bar/now 1.0 i386 [installed,local] |
14109555 | 22 | foo/unstable 1.0 all |
4afa7d18 | 23 | foobar/unstable 2.0 i386 [upgradable from: 1.0]" apt list |
14109555 MV |
24 | |
25 | testequal "Listing... | |
26 | foo/unstable 1.0 all | |
4afa7d18 | 27 | foobar/unstable 2.0 i386 [upgradable from: 1.0]" apt list "foo*" |
14109555 MV |
28 | |
29 | testequal "Listing... | |
4afa7d18 | 30 | foobar/unstable 2.0 i386 [upgradable from: 1.0]" apt list --upgradable |
14109555 MV |
31 | |
32 | # FIXME: hm, hm - does it make sense to have this different? shouldn't | |
33 | # we use "installed,upgradable" consitently? | |
34 | testequal "Listing... | |
4afa7d18 MV |
35 | bar/now 1.0 i386 [installed,local] |
36 | foobar/now 1.0 i386 [installed,upgradable to: 2.0]" apt list --installed | |
14109555 MV |
37 | |
38 | testequal "Listing... | |
4afa7d18 MV |
39 | foobar/unstable 2.0 i386 [upgradable from: 1.0] |
40 | foobar/now 1.0 i386 [installed,upgradable to: 2.0] | |
14109555 MV |
41 | " apt list foobar --all-versions |
42 | ||
43 | testequal "Listing... | |
4afa7d18 | 44 | bar/now 1.0 i386 [installed,local] |
14109555 MV |
45 | an autogenerated dummy bar=1.0/installed |
46 | " apt list bar --verbose | |
47 |