]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-key-used-in-maintainerscript
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
8 unset APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE
9 configarchitecture 'native'
15 setupsimplenativepackage "$PKG" 'native' '1' 'unstable' "$@
"
16 BUILDDIR="incoming
/${PKG}-1"
18 apt-key list >/dev/null' > "${BUILDDIR}/debian
/postinst
"
19 buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
22 buildingpkg 'aptkeyuser-nodepends' 'Depends: unrelated'
23 buildingpkg 'aptkeyuser-depends' 'Depends: gnupg'
25 insertinstalledpackage 'unrelated' 'native' '1'
26 insertinstalledpackage 'gnupg' 'native' '1'
27 testdpkgnotinstalled 'aptkeyuser-depends' 'aptkeyuser-nodepends'
29 testsuccess apt install ./incoming/aptkeyuser-depends_*.changes -y
30 cp rootdir/tmp/testsuccess.output apt.output
31 testdpkginstalled 'aptkeyuser-depends'
32 testfailure grep '^Warning: This will BREAK' apt.output
33 testsuccess grep '^Warning: apt-key' apt.output
35 testsuccess apt install --with-source ./incoming/aptkeyuser-nodepends_*.changes aptkeyuser-nodepends -y
36 cp rootdir/tmp/testsuccess.output apt.output
37 testdpkginstalled 'aptkeyuser-nodepends'
38 testsuccess grep '^Warning: This will BREAK' apt.output
39 testsuccess grep '^Warning: apt-key' apt.output
41 testsuccess aptkey list
42 cp rootdir/tmp/testsuccess.output aptkey.list
43 testsuccess grep '^Warning: apt-key' aptkey.list