summaryrefslogtreecommitdiff
path: root/test/integration/test-dont-forget-conflicts-via-unknown-architectures
blob: 07d5d8f84a25f42613fa8765b364e54da8310904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'arm64'
configdpkgnoopchroot

buildsimplenativepackage 'pkga' 'arm64' '1' 'stable'
buildsimplenativepackage 'pkgb' 'arm64' '1' 'stable'

cd aptarchive
aptftparchive packages ../incoming > Packages
cd ..
generatereleasefiles
signreleasefiles
setupflataptarchive
testsuccess apt update

testsuccess apt install pkga pkgb -y
testdpkginstalled 'pkga' 'pkgb'

rm -rf aptarchive incoming

buildsimplenativepackage 'pkga' 'arm64,amd64' '2' 'unstable' 'Provides: pkgb
Breaks: pkgb (<< 1+)
Replaces: pkgb (<< 1+)'

mkdir aptarchive
cd aptarchive
aptftparchive packages ../incoming > Packages
cd ..
generatereleasefiles
signreleasefiles
setupflataptarchive
testsuccess apt update

#apt upgrade pkga -o Debug::pkgDpkgPm=1 -y -o Dpkg::use-pty=0
rm -f rootdir/var/cache/apt/*.bin
testsuccess apt upgrade pkga -y
testdpkginstalled 'pkga'
testdpkgnotinstalled 'pkgb'