]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-753297-upgradable
test: Use a file to determine TEST_DEFAULT_GROUP
[apt.git] / test / integration / test-bug-753297-upgradable
CommitLineData
d059cc26
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
d059cc26
MV
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
10e100e5 19insertpackage 'testing,installed' 'foo' 'all' '1'
d059cc26
MV
20insertpackage 'testing-updates' 'foo' 'all' '2'
21insertpackage 'unstable' 'foo' 'all' '3'
22
23insertinstalledpackage 'bar' 'all' '1'
24insertpackage 'testing' 'bar' 'all' '2'
25
26setupaptarchive
27
25b86db1 28testsuccessequal "Listing...
87d6947d
DK
29bar/testing 2 all [upgradable from: 1]
30N: There is 1 additional version. Please use the '-a' switch to see it" apt list --upgradable
d059cc26 31
25b86db1 32testsuccessequal "Listing...
d059cc26
MV
33bar/testing 2 all [upgradable from: 1]
34foo/testing,now 1 all [installed]" apt list