]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-key-used-in-maintainerscript
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
8 configarchitecture 'native'
14 setupsimplenativepackage "$PKG" 'native' '1' 'unstable' "$@
"
15 BUILDDIR="incoming
/${PKG}-1"
17 apt-key list' > "${BUILDDIR}/debian
/postinst
"
18 buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
21 buildingpkg 'aptkeyuser-nodepends' 'Depends: unrelated'
22 buildingpkg 'aptkeyuser-depends' 'Depends: gnupg'
26 insertinstalledpackage 'unrelated' 'native' '1'
27 insertinstalledpackage 'gnupg' 'native' '1'
29 testsuccess apt install aptkeyuser-depends -y
30 testfailure grep '^Warning: This will BREAK' rootdir/tmp/testsuccess.output
32 testsuccess apt install aptkeyuser-nodepends -y
33 cp rootdir/tmp/testsuccess.output apt.output
34 testsuccess grep '^Warning: This will BREAK' apt.output