]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-progress-fd-error-postinst
mark optional (private) symbols as hidden
[apt.git] / test / integration / test-apt-progress-fd-error-postinst
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 DEBIAN/
11echo "#!/bin/sh\nexit 1" > DEBIAN/postinst
12chmod 755 DEBIAN/postinst
13
14buildsimplenativepackage 'postinst-error' 'amd64,i386' '0.8.15' 'stable' '' 'pkg with posinst error' '' '' './DEBIAN'
15
16setupaptarchive
17
18exec 3> apt-progress.log
19testfailure aptget install postinst-error -y -o APT::Status-Fd=3
20msgtest "Ensure correct error message for postinst error"
21grep -q "pmerror:postinst-error :80:subprocess installed post-installation script returned error exit status 2" apt-progress.log && msgpass || msgfail
22