]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-apt-binary
add purge to the apt cmdline
[apt.git] / test / integration / test-apt-binary
... / ...
CommitLineData
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...
21bar/now 1.0 [installed,local] i386
22foo/unstable 1.0 all
23foobar/unstable 2.0 [upgradable from: 1.0] i386" apt list
24
25testequal "Listing...
26foo/unstable 1.0 all
27foobar/unstable 2.0 [upgradable from: 1.0] i386" apt list "foo*"
28
29testequal "Listing...
30foobar/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?
34testequal "Listing...
35bar/now 1.0 [installed,local] i386
36foobar/now 1.0 [installed,upgradable to: 2.0] i386" apt list --installed
37
38testequal "Listing...
39foobar/unstable 2.0 [upgradable from: 1.0] i386
40foobar/now 1.0 [installed,upgradable to: 2.0] i386
41" apt list foobar --all-versions
42
43testequal "Listing...
44bar/now 1.0 [installed,local] i386
45 an autogenerated dummy bar=1.0/installed
46" apt list bar --verbose
47