]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-apt-cli-list
only consider versioned kernel packages in autoremove
[apt.git] / test / integration / test-apt-cli-list
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
10if [ ! -x ${BUILDDIRECTORY}/apt ]; then
11 msgmsg "No ${BUILDDIRECTORY}/apt"
12 msgskip
13 exit 0
14fi
15
16insertpackage 'unstable' 'foo' 'all' '1.0'
17insertinstalledpackage 'bar' 'i386' '1.0'
18
19insertinstalledpackage 'foobar' 'i386' '1.0'
20insertpackage 'unstable' 'foobar' 'i386' '2.0'
21
22setupaptarchive
23
24APTARCHIVE=$(readlink -f ./aptarchive)
25
26testequal "Listing...
27bar/now 1.0 i386 [installed,local]
28foo/unstable 1.0 all
29foobar/unstable 2.0 i386 [upgradable from: 1.0]" apt list
30
31testequal "Listing...
32foo/unstable 1.0 all
33foobar/unstable 2.0 i386 [upgradable from: 1.0]" apt list "foo*"
34
35testequal "Listing...
36foobar/unstable 2.0 i386 [upgradable from: 1.0]" apt list --upgradable
37
38# FIXME: hm, hm - does it make sense to have this different? shouldn't
39# we use "installed,upgradable" consitently?
40testequal "Listing...
41bar/now 1.0 i386 [installed,local]
42foobar/now 1.0 i386 [installed,upgradable to: 2.0]" apt list --installed
43
44testequal "Listing...
45foobar/unstable 2.0 i386 [upgradable from: 1.0]
46foobar/now 1.0 i386 [installed,upgradable to: 2.0]
47" apt list foobar --all-versions
48
49testequal "Listing...
50bar/now 1.0 i386 [installed,local]
51 an autogenerated dummy bar=1.0/installed
52" apt list bar --verbose
53