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