]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-709560-set-candidate-release
improve tests
[apt.git] / test / integration / test-bug-709560-set-candidate-release
CommitLineData
2f5ed336
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8
9insertpackage 'experimental' 'foo' 'all' '2.0' 'Depends: foo-dep (= 2.1)'
10insertpackage 'experimental' 'foo-dep' 'all' '2.1'
11
12
13(
14cat <<EOF
15Package: *
16Pin: release a=experimental
17Pin-Priority: -10
18EOF
19) > rootdir/etc/apt/preferences
20
21
22setupaptarchive
23
24testequal "Reading package lists...
25Building dependency tree...
26Selected version '2.0' (experimental [all]) for 'foo'
27Selected version '2.1' (experimental [all]) for 'foo-dep' because of 'foo'
28The following extra packages will be installed:
29 foo-dep
30The following NEW packages will be installed:
31 foo foo-dep
320 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
33Inst foo-dep (2.1 experimental [all])
34Inst foo (2.0 experimental [all])
35Conf foo-dep (2.1 experimental [all])
36Conf foo (2.0 experimental [all])" aptget install -q0 -s foo/experimental