diff options
author | Michael Vogt <mvo@debian.org> | 2013-12-27 22:18:00 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-12-27 22:18:00 +0100 |
commit | 7e43ab9d47ad9d4712441968bd3fdf919c912c45 (patch) | |
tree | 2ef8d0f21354cabc53a8885170be636d0e2eadfb /test/integration | |
parent | 6bbd65ee4fddb59d771d3cd1f7cf7433cbbd0097 (diff) | |
parent | 75ab11ae3880530c5354cc90c8d1ff0998f8146b (diff) |
Merge branch 'feature/policy-parser-bts732746' into debian/sid
Diffstat (limited to 'test/integration')
-rwxr-xr-x | test/integration/test-bug-732746-preferences | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/integration/test-bug-732746-preferences b/test/integration/test-bug-732746-preferences new file mode 100755 index 000000000..b31f98aa0 --- /dev/null +++ b/test/integration/test-bug-732746-preferences @@ -0,0 +1,32 @@ +#!/bin/sh +set -e + +TESTDIR=$(readlink -f $(dirname $0)) +. $TESTDIR/framework +setupenvironment +configarchitecture 'i386' + +insertinstalledpackage 'bar' 'i386' '1.0' + +cat > rootdir/etc/apt/preferences << EOF +# random test comment header + +# commented out by puppy^Wpuppet +#Package: foo +#Pin: origin "ftp.debian.org" +#Pin: 800 + +Package: bar +Pin: version 1.0 +Pin-Priority: 700 + +#Package: bar +#Pin: version 1.0 +#Pin: 800 +EOF + +testequal "Reading package lists... +Building dependency tree..." aptget check + +msgtest "Ensure policy is applied" +aptcache policy bar|grep -q "*** 1.0 700" && msgpass || msgfail |