]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-progress-fd-error
adapt to the new CacheSetHelper API
[apt.git] / test / integration / test-apt-progress-fd-error
CommitLineData
42c1513b
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture 'amd64' 'i386'
9
10mkdir -p usr/bin
11touch usr/bin/file-conflict
12
13buildsimplenativepackage 'foo1' 'amd64,i386' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/'
14buildsimplenativepackage 'foo2' 'amd64,i386' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/'
15
16setupaptarchive
17
18exec 3> apt-progress.log
19testfailure aptget install foo1 foo2 -y -o APT::Status-Fd=3
20msgtest "Ensure correct error message"
f920cbe8
DK
21if grep -q "aptarchive/pool/foo2_0.8.15_amd64.deb:40:trying to overwrite '/usr/bin/file-conflict', which is also in package foo1 0.8.15" apt-progress.log; then
22 msgpass
23else
24 cat apt-progress.log
25 msgfail
26fi
42c1513b 27