|
@@ -23,7 +23,7 @@ buildtriggerpackages() {
|
|
|
cat >"${BUILDDIR}/debian/postinst" <<EOF
|
|
cat >"${BUILDDIR}/debian/postinst" <<EOF
|
|
|
#!/bin/sh
|
|
#!/bin/sh
|
|
|
if [ "\$1" = 'triggered' ]; then
|
|
if [ "\$1" = 'triggered' ]; then
|
|
|
- ls -l /proc/self/fd/
|
|
|
|
|
|
|
+ echo "TRIGGER IS RUNNING"
|
|
|
fi
|
|
fi
|
|
|
EOF
|
|
EOF
|
|
|
echo "$TYPE /usr/share/doc" > "${BUILDDIR}/debian/triggers"
|
|
echo "$TYPE /usr/share/doc" > "${BUILDDIR}/debian/triggers"
|
|
@@ -49,26 +49,26 @@ runtests() {
|
|
|
testsuccess aptget install trigdepends-$TYPE -y --reinstall
|
|
testsuccess aptget install trigdepends-$TYPE -y --reinstall
|
|
|
cp rootdir/tmp/testsuccess.output terminal.output
|
|
cp rootdir/tmp/testsuccess.output terminal.output
|
|
|
testsuccess grep '^REWRITE ' terminal.output
|
|
testsuccess grep '^REWRITE ' terminal.output
|
|
|
- testsuccess grep ' root root ' terminal.output
|
|
|
|
|
|
|
+ testsuccess grep 'TRIGGER IS RUNNING' terminal.output
|
|
|
testdpkginstalled triggerable-$TYPE trigdepends-$TYPE
|
|
testdpkginstalled triggerable-$TYPE trigdepends-$TYPE
|
|
|
|
|
|
|
|
testsuccess aptget install trigstuff -y
|
|
testsuccess aptget install trigstuff -y
|
|
|
cp rootdir/tmp/testsuccess.output terminal.output
|
|
cp rootdir/tmp/testsuccess.output terminal.output
|
|
|
testsuccess grep '^REWRITE ' terminal.output
|
|
testsuccess grep '^REWRITE ' terminal.output
|
|
|
- testsuccess grep ' root root ' terminal.output
|
|
|
|
|
|
|
+ testsuccess grep 'TRIGGER IS RUNNING' terminal.output
|
|
|
testdpkginstalled triggerable-$TYPE trigdepends-$TYPE trigstuff
|
|
testdpkginstalled triggerable-$TYPE trigdepends-$TYPE trigstuff
|
|
|
|
|
|
|
|
testsuccess aptget purge trigstuff -y
|
|
testsuccess aptget purge trigstuff -y
|
|
|
cp rootdir/tmp/testsuccess.output terminal.output
|
|
cp rootdir/tmp/testsuccess.output terminal.output
|
|
|
testsuccess grep '^REWRITE ' terminal.output
|
|
testsuccess grep '^REWRITE ' terminal.output
|
|
|
- testsuccess grep ' root root ' terminal.output
|
|
|
|
|
|
|
+ testsuccess grep 'TRIGGER IS RUNNING' terminal.output
|
|
|
testdpkginstalled triggerable-$TYPE trigdepends-$TYPE
|
|
testdpkginstalled triggerable-$TYPE trigdepends-$TYPE
|
|
|
testdpkgnotinstalled trigstuff
|
|
testdpkgnotinstalled trigstuff
|
|
|
|
|
|
|
|
testsuccess aptget purge trigdepends-$TYPE -y
|
|
testsuccess aptget purge trigdepends-$TYPE -y
|
|
|
cp rootdir/tmp/testsuccess.output terminal.output
|
|
cp rootdir/tmp/testsuccess.output terminal.output
|
|
|
testfailure grep '^REWRITE ' terminal.output
|
|
testfailure grep '^REWRITE ' terminal.output
|
|
|
- testfailure grep ' root root ' terminal.output
|
|
|
|
|
|
|
+ testfailure grep 'TRIGGER IS RUNNING' terminal.output
|
|
|
testdpkgnotinstalled triggerable-$TYPE trigdepends-$TYPE
|
|
testdpkgnotinstalled triggerable-$TYPE trigdepends-$TYPE
|
|
|
}
|
|
}
|
|
|
#runtests 'interest'
|
|
#runtests 'interest'
|