]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-732746-preferences
Make the test more verbose and check for the negative case of a kernel that
[apt.git] / test / integration / test-bug-732746-preferences
CommitLineData
75ab11ae
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'i386'
8
9insertinstalledpackage 'bar' 'i386' '1.0'
10
11cat > rootdir/etc/apt/preferences << EOF
12# random test comment header
13
14# commented out by puppy^Wpuppet
15#Package: foo
16#Pin: origin "ftp.debian.org"
17#Pin: 800
18
19Package: bar
20Pin: version 1.0
21Pin-Priority: 700
22
23#Package: bar
24#Pin: version 1.0
25#Pin: 800
26EOF
27
28testequal "Reading package lists...
29Building dependency tree..." aptget check
30
31msgtest "Ensure policy is applied"
32aptcache policy bar|grep -q "*** 1.0 700" && msgpass || msgfail