]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-753297-upgradable
Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans
[apt.git] / test / integration / test-bug-753297-upgradable
CommitLineData
d059cc26
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'i386'
8
9cat > rootdir/etc/apt/preferences <<EOF
10Package: *
11Pin: release testing
12Pin-Priority: 600
13
14Package: *
15Pin: release unstable
16Pin-Priority: 1
17EOF
18
19insertinstalledpackage 'foo' 'all' '1'
20insertpackage 'testing' 'foo' 'all' '1'
21insertpackage 'testing-updates' 'foo' 'all' '2'
22insertpackage 'unstable' 'foo' 'all' '3'
23
24insertinstalledpackage 'bar' 'all' '1'
25insertpackage 'testing' 'bar' 'all' '2'
26
27setupaptarchive
28
29testequal "Listing...
30bar/testing 2 all [upgradable from: 1]" apt list --upgradable
31
32testequal "Listing...
33bar/testing 2 all [upgradable from: 1]
34foo/testing,now 1 all [installed]" apt list