]>
Commit | Line | Data |
---|---|---|
42c1513b MV |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
42c1513b MV |
6 | |
7 | setupenvironment | |
90b56f54 | 8 | configarchitecture 'native' |
42c1513b MV |
9 | |
10 | mkdir -p usr/bin | |
11 | touch usr/bin/file-conflict | |
12 | ||
90b56f54 DK |
13 | buildsimplenativepackage 'foo1' 'native' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/' |
14 | buildsimplenativepackage 'foo2' 'native' '0.8.15' 'stable' '' 'pkg with file conflicts' '' '' 'usr/' | |
42c1513b | 15 | |
90b56f54 | 16 | setupaptarchive |
42c1513b MV |
17 | |
18 | exec 3> apt-progress.log | |
19 | testfailure aptget install foo1 foo2 -y -o APT::Status-Fd=3 | |
90b56f54 DK |
20 | msgtest 'Ensure correct error message' |
21 | testsuccess --nomsg grep "aptarchive/pool/foo2_0.8.15_[^.]\+.deb:36.3636:trying to overwrite '/usr/bin/file-conflict', which is also in package foo1 0.8.15" apt-progress.log |