]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cli-list
disable https->http redirects in libcurl
[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
10insertpackage 'unstable' 'foo' 'all' '1.0'
11insertinstalledpackage 'bar' 'i386' '1.0'
12
13insertinstalledpackage 'foobar' 'i386' '1.0'
14insertpackage 'unstable' 'foobar' 'i386' '2.0'
15
16setupaptarchive
17
18APTARCHIVE=$(readlink -f ./aptarchive)
19
20testequal "Listing...
4afa7d18 21bar/now 1.0 i386 [installed,local]
14109555 22foo/unstable 1.0 all
4afa7d18 23foobar/unstable 2.0 i386 [upgradable from: 1.0]" apt list
14109555
MV
24
25testequal "Listing...
26foo/unstable 1.0 all
4afa7d18 27foobar/unstable 2.0 i386 [upgradable from: 1.0]" apt list "foo*"
14109555
MV
28
29testequal "Listing...
4afa7d18 30foobar/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?
34testequal "Listing...
4afa7d18
MV
35bar/now 1.0 i386 [installed,local]
36foobar/now 1.0 i386 [installed,upgradable to: 2.0]" apt list --installed
14109555
MV
37
38testequal "Listing...
4afa7d18
MV
39foobar/unstable 2.0 i386 [upgradable from: 1.0]
40foobar/now 1.0 i386 [installed,upgradable to: 2.0]
14109555
MV
41" apt list foobar --all-versions
42
43testequal "Listing...
4afa7d18 44bar/now 1.0 i386 [installed,local]
14109555
MV
45 an autogenerated dummy bar=1.0/installed
46" apt list bar --verbose
47