]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-progress-fd-error
Merge remote-tracking branch 'mvo/feature/apt-ftparchive-srccache2' into debian/sid
[apt.git] / test / integration / test-apt-progress-fd-error
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6
7 setupenvironment
8 configarchitecture 'amd64' 'i386'
9
10 mkdir -p usr/bin
11 touch usr/bin/file-conflict
12
13 buildsimplenativepackage 'foo1' 'amd64,i386' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/'
14 buildsimplenativepackage 'foo2' 'amd64,i386' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/'
15
16 setupaptarchive
17
18 exec 3> apt-progress.log
19 testfailure aptget install foo1 foo2 -y -o APT::Status-Fd=3
20 msgtest "Ensure correct error message"
21 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 && msgpass || (cat apt-progress.log && msgfail)
22