]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-cli-list
Merge branch 'debian/experimental-no-abi-break' into debian/sid
[apt.git] / test / integration / test-apt-cli-list
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...
21 bar/now 1.0 [installed,local] i386
22 foo/unstable 1.0 all
23 foobar/unstable 2.0 [upgradable from: 1.0] i386" apt list
24
25 testequal "Listing...
26 foo/unstable 1.0 all
27 foobar/unstable 2.0 [upgradable from: 1.0] i386" apt list "foo*"
28
29 testequal "Listing...
30 foobar/unstable 2.0 [upgradable from: 1.0] i386" apt list --upgradable
31
32 # FIXME: hm, hm - does it make sense to have this different? shouldn't
33 # we use "installed,upgradable" consitently?
34 testequal "Listing...
35 bar/now 1.0 [installed,local] i386
36 foobar/now 1.0 [installed,upgradable to: 2.0] i386" apt list --installed
37
38 testequal "Listing...
39 foobar/unstable 2.0 [upgradable from: 1.0] i386
40 foobar/now 1.0 [installed,upgradable to: 2.0] i386
41 " apt list foobar --all-versions
42
43 testequal "Listing...
44 bar/now 1.0 [installed,local] i386
45 an autogenerated dummy bar=1.0/installed
46 " apt list bar --verbose
47