]>
git.saurik.com Git - apt.git/blob - test/integration/test-no-fds-leaked-to-maintainer-scripts
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
'native'
11 setupsimplenativepackage
"fdleaks" 'native' '1.0' 'unstable'
12 BUILDDIR
="incoming/fdleaks-1.0"
13 for script in 'preinst' 'postinst' 'prerm' 'postrm'; do
15 ls -l /proc/self/fd/' > ${BUILDDIR}/debian
/$script
17 buildpackage
"$BUILDDIR" 'unstable' 'main' 'native'
22 testsuccess aptget
install -y fdleaks
23 msgtest
'Check if fds were not' 'leaked'
24 if [ "$(grep 'root root' rootdir/tmp/testsuccess.output | wc -l)" = '8' ]; then
28 cat rootdir
/tmp
/testsuccess.output
32 testsuccess aptget purge
-y fdleaks
33 msgtest
'Check if fds were not' 'leaked'
34 if [ "$(grep 'root root' rootdir/tmp/testsuccess.output | wc -l)" = '12' ]; then
38 cat rootdir
/tmp
/testsuccess.output