]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-769609-triggers-still-pending-after-run
protect only the latest same-source providers from autoremove
[apt.git] / test / integration / test-bug-769609-triggers-still-pending-after-run
index 0588b793ffe3b7239c2c3a4f16583ec6cc250684..bd43578a5540e15829027b6afad6748c9edf301b 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
 #!/bin/sh
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 
 setupenvironment
 configarchitecture 'amd64'
 
 setupenvironment
 configarchitecture 'amd64'
@@ -20,25 +20,22 @@ buildtriggerpackages() {
        local TYPE="$1"
        setupsimplenativepackage "triggerable-$TYPE" 'all' '1.0' 'unstable' "Depends: trigdepends-$TYPE"
        BUILDDIR="incoming/triggerable-${TYPE}-1.0"
        local TYPE="$1"
        setupsimplenativepackage "triggerable-$TYPE" 'all' '1.0' 'unstable' "Depends: trigdepends-$TYPE"
        BUILDDIR="incoming/triggerable-${TYPE}-1.0"
-       cat >${BUILDDIR}/debian/postinst <<EOF
+       cat >"${BUILDDIR}/debian/postinst" <<EOF
 #!/bin/sh
 if [ "\$1" = 'triggered' ]; then
        ls -l /proc/self/fd/
 fi
 EOF
 #!/bin/sh
 if [ "\$1" = 'triggered' ]; then
        ls -l /proc/self/fd/
 fi
 EOF
-       echo "$TYPE /usr/share/doc" > ${BUILDDIR}/debian/triggers
+       echo "$TYPE /usr/share/doc" > "${BUILDDIR}/debian/triggers"
        buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
        rm -rf "$BUILDDIR"
        buildsimplenativepackage "trigdepends-$TYPE" 'all' '1.0' 'unstable'
 }
 
        buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
        rm -rf "$BUILDDIR"
        buildsimplenativepackage "trigdepends-$TYPE" 'all' '1.0' 'unstable'
 }
 
-# FIXME: implement test with activate-style triggers
 #buildtriggerpackages 'interest'
 buildtriggerpackages 'interest-noawait'
 #buildtriggerpackages 'interest'
 buildtriggerpackages 'interest-noawait'
-
 buildsimplenativepackage "trigstuff" 'all' '1.0' 'unstable'
 
 buildsimplenativepackage "trigstuff" 'all' '1.0' 'unstable'
 
-
 setupaptarchive
 
 runtests() {
 setupaptarchive
 
 runtests() {