]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-683786-build-dep-on-virtual-packages
improve partial/ cleanup in abort and failure cases
[apt.git] / test / integration / test-bug-683786-build-dep-on-virtual-packages
CommitLineData
f1f874bd
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64' 'armel'
8
9insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
10
11insertpackage 'unstable' 'po-debconf' 'all' '1'
12insertsource 'unstable' 'dash' 'any' '1' 'Build-Depends: po-debconf'
13insertpackage 'unstable' 'make-po-debconf-pure-virtual' 'armel' '1' 'Depends: po-debconf'
14
15insertpackage 'unstable' 'po-debconf' 'amd64' '1'
16insertsource 'unstable' 'diffutils' 'any' '1' 'Build-Depends: texi2html'
17
727d8712
DK
18insertpackage 'unstable' 'libselinux1-dev' 'amd64' '1' 'Provides: libselinux-dev'
19insertsource 'unstable' 'sed' 'any' '1' 'Build-Depends: libselinux-dev'
20
666faa35
DK
21insertpackage 'unstable' 'libsehurd1-dev' 'amd64,armel' '1' 'Provides: libsehurd-dev'
22insertsource 'unstable' 'sed2' 'any' '1' 'Build-Depends: libsehurd-dev'
23
f1f874bd
DK
24setupaptarchive
25
25b86db1 26testsuccessequal 'Package: po-debconf:armel
f1f874bd
DK
27Versions:
28
29Reverse Depends:
30 make-po-debconf-pure-virtual:armel,po-debconf:armel
31Dependencies:
32Provides:
33Reverse Provides: ' aptcache showpkg po-debconf:armel
25b86db1 34testsuccessequal 'N: Unable to locate package texi2html' aptcache showpkg texi2html:armel -q=0
f1f874bd 35
25b86db1 36testsuccessequal 'Reading package lists...
f1f874bd
DK
37Building dependency tree...
38The following NEW packages will be installed:
39 po-debconf
400 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
34de054c
MV
41Inst po-debconf (1 unstable [all])
42Conf po-debconf (1 unstable [all])' aptget build-dep dash -s
f1f874bd 43
25b86db1 44testfailureequal 'Reading package lists...
f1f874bd
DK
45Building dependency tree...
46E: Build-Depends dependency for dash cannot be satisfied because the package po-debconf cannot be found' aptget build-dep -aarmel dash -s
47
25b86db1 48testfailureequal 'Reading package lists...
f1f874bd
DK
49Building dependency tree...
50E: Build-Depends dependency for diffutils cannot be satisfied because the package texi2html cannot be found' aptget build-dep -aarmel diffutils -s
727d8712 51
25b86db1 52testsuccessequal "Reading package lists...
727d8712
DK
53Building dependency tree...
54Note, selecting 'libselinux1-dev' instead of 'libselinux-dev'
55The following NEW packages will be installed:
56 libselinux1-dev
570 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
58Inst libselinux1-dev (1 unstable [amd64])
59Conf libselinux1-dev (1 unstable [amd64])" aptget build-dep sed -s
666faa35 60
25b86db1 61testfailureequal 'Reading package lists...
666faa35
DK
62Building dependency tree...
63E: Build-Depends dependency for sed cannot be satisfied because the package libselinux-dev cannot be found' aptget build-dep -aarmel sed -s
64
25b86db1 65testsuccessequal "Reading package lists...
666faa35
DK
66Building dependency tree...
67Note, selecting 'libsehurd1-dev' instead of 'libsehurd-dev'
68The following NEW packages will be installed:
69 libsehurd1-dev
700 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
71Inst libsehurd1-dev (1 unstable [amd64])
72Conf libsehurd1-dev (1 unstable [amd64])" aptget build-dep sed2 -s
73
25b86db1 74testsuccessequal "Reading package lists...
666faa35
DK
75Building dependency tree...
76Note, selecting 'libsehurd1-dev:armel' instead of 'libsehurd-dev:armel'
77The following NEW packages will be installed:
78 libsehurd1-dev:armel
790 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
80Inst libsehurd1-dev:armel (1 unstable [armel])
81Conf libsehurd1-dev:armel (1 unstable [armel])" aptget build-dep -aarmel sed2 -s