]> git.saurik.com Git - apt.git/blame - test/integration/skip-bug-711456-apt-cdrom-multiple-cds-multiarch
implement socks5h proxy support for http method
[apt.git] / test / integration / skip-bug-711456-apt-cdrom-multiple-cds-multiarch
CommitLineData
8b8cc7bf
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
8b8cc7bf
DK
6setupenvironment
7configarchitecture 'amd64' 'i386'
8
9buildsimplenativepackage 'testing' 'amd64,i386' '0.8.15' 'stable' 'Depends: libtest'
10buildsimplenativepackage 'libtest' 'amd64,i386' '0.8.15' 'stable' 'Multi-Arch: same'
11buildsimplenativepackage 'libtest' 'amd64,i386' '1' 'unstable' 'Multi-Arch: same'
12
13# needed by the ftparchive.conf
14cd aptarchive
15ln -s ../incoming pool
16createaptftparchiveconfig
17cd - >/dev/null
18# create an amd64 cdrom
19sed -i 's#Architectures .*$#Architectures "amd64 source";#' aptarchive/ftparchive.conf
20setupaptarchive --no-update
21changetocdrom 'Debian APT Testdisk amd64 0.8.15'
22mv rootdir/media/cdrom rootdir/media/cdrom-amd64
23addtrap 'prefix' "chmod -R +w $PWD/rootdir/media/cdrom-amd64/dists/;"
24chmod -R -w rootdir/media/cdrom-amd64/dists
25ln -s $PWD/rootdir/media/cdrom-amd64 $PWD/rootdir/media/cdrom
26aptcdrom add -m -o quiet=1
27rm $PWD/rootdir/media/cdrom
28# do it again to create a i386 cdrom
29sed -i 's#Architectures .*$#Architectures "i386 source";#' aptarchive/ftparchive.conf
30setupaptarchive --no-update
31changetocdrom 'Debian APT Testdisk i386 0.8.15'
32mv rootdir/media/cdrom rootdir/media/cdrom-i386
33addtrap 'prefix' "chmod -R +w $PWD/rootdir/media/cdrom-i386/dists/;"
34chmod -R -w rootdir/media/cdrom-i386/dists
35ln -s $PWD/rootdir/media/cdrom-i386 $PWD/rootdir/media/cdrom
36aptcdrom add -m -o quiet=1
37
38# play with the cdroms
39testdpkgnotinstalled testing
40aptget install testing -t stable -y #> /dev/null 2>&1
41testdpkginstalled testing
42
43testdpkgnotinstalled testing:i386
44aptget install testing:i386 -t stable -y #> /dev/null 2>&1
45testdpkginstalled testing:i386
46
47aptget dist-upgrade -y