]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-progress-fd-conffile
acquire: Use priority queues and a 3 stage pipeline design
[apt.git] / test / integration / test-apt-progress-fd-conffile
CommitLineData
c23e6cd5
MV
1#!/bin/sh
2set -e
3
63c71412
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
c23e6cd5
MV
6
7setupenvironment
8configarchitecture 'native'
9
10# old conffile
11setupsimplenativepackage 'compiz-core' 'native' '1.0' 'unstable'
12BUILDDIR='incoming/compiz-core-1.0'
63c71412
DK
13mkdir -p "${BUILDDIR}/debian/compiz-core/etc"
14echo 'foo=bar;' > "${BUILDDIR}/compiz.conf"
15echo 'compiz.conf /etc/compiz.conf' >> "${BUILDDIR}/debian/install"
c23e6cd5
MV
16buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
17rm -rf "$BUILDDIR"
18
19# new conffile
20setupsimplenativepackage 'compiz-core' 'native' '2.0' 'unstable'
21BUILDDIR='incoming/compiz-core-2.0'
63c71412
DK
22mkdir -p "${BUILDDIR}/debian/compiz-core/etc"
23echo 'foo2=bar2;' > "${BUILDDIR}/compiz.conf"
24echo 'compiz.conf /etc/compiz.conf' >> "${BUILDDIR}/debian/install"
c23e6cd5
MV
25buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
26rm -rf "$BUILDDIR"
27
28setupaptarchive
29
30testsuccess aptget install compiz-core=1.0
31
32# fake conffile change
63c71412 33echo 'meep' >> rootdir/etc/compiz.conf/compiz.conf
c23e6cd5 34
f74a6fa1
DK
35# FIXME: Is there really no way to see if dpkg actually prompts?
36msgtest 'Test for successful execution of' 'apt-get install compiz-core=2.0'
c23e6cd5 37exec 3> apt-progress.log
63c71412 38testsuccess --nomsg aptget install compiz-core=2.0 -o APT::Status-Fd=3 -o Dpkg::Use-Pty=false -o dpkg::options::='--force-confold'
c23e6cd5
MV
39
40# and ensure there is a conffile message in the file
f74a6fa1 41msgtest 'Test status fd for an included' 'pmconffile msg'
63c71412 42testsuccess --nomsg grep "pmconffile:/etc/compiz.conf/compiz.conf" apt-progress.log