]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-838779-untrusted-to-trusted-Release-hit
correct cross & disappear progress detection
[apt.git] / test / integration / test-bug-838779-untrusted-to-trusted-Release-hit
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6 setupenvironment
7 configarchitecture 'amd64'
8
9 buildsimplenativepackage 'foo' 'all' '1' 'stable'
10
11 export APT_DONT_SIGN=''
12 setupaptarchive --no-update
13
14 changetowebserver
15
16 testsuccess aptget update
17 testdpkgnotinstalled 'foo'
18 testsuccess apt install foo -y
19 testdpkginstalled 'foo'
20 testsuccess apt purge foo -y
21 testdpkgnotinstalled 'foo'
22
23 msgmsg 'Untrusted to trusted hit' 'InRelease'
24 rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
25 mv rootdir/etc/apt/trusted.gpg.d rootdir/etc/apt/trusted.gpg.d-bak
26 testwarning aptget update
27 testfailure apt install foo -y
28 testdpkgnotinstalled 'foo'
29 mv rootdir/etc/apt/trusted.gpg.d-bak rootdir/etc/apt/trusted.gpg.d
30 testsuccess aptget update
31 testsuccess apt install foo -y
32 testdpkginstalled 'foo'
33 testsuccess apt purge foo -y
34 testdpkgnotinstalled 'foo'
35
36 msgmsg 'Untrusted to trusted hit' 'Release.gpg'
37 find aptarchive -name 'InRelease' -delete
38 rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
39 mv rootdir/etc/apt/trusted.gpg.d rootdir/etc/apt/trusted.gpg.d-bak
40 testwarning aptget update
41 testfailure apt install foo -y
42 testdpkgnotinstalled 'foo'
43 mv rootdir/etc/apt/trusted.gpg.d-bak rootdir/etc/apt/trusted.gpg.d
44 testsuccess aptget update
45 testsuccess apt install foo -y
46 testdpkginstalled 'foo'