]> git.saurik.com Git - apt.git/blame - test/integration/test-architecture-specification-parsing
add failing regression test for bug #346386
[apt.git] / test / integration / test-architecture-specification-parsing
CommitLineData
01f520ce
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8
9buildsimplenativepackage 'pkg-arch-foo' 'amd64' '1.0' 'stable' 'Build-Depends: foo [amd64 !amd64]
10Depends: foo [amd64 !amd64]'
11buildsimplenativepackage 'pkg-arch-no-foo' 'amd64' '1.0' 'stable' 'Build-Depends: foo [!amd64 amd64]
12Depends: foo [!amd64 amd64]'
13buildsimplenativepackage 'pkg-arch-foo-unrelated-no' 'amd64' '1.0' 'stable' 'Build-Depends: foo [!kfreebsd-any amd64]
14Depends: foo [!kfreebsd-any amd64]'
15buildsimplenativepackage 'pkg-arch-foo-unrelated-no2' 'amd64' '1.0' 'stable' 'Build-Depends: foo [amd64 !kfreebsd-any]
16Depends: foo [amd64 !kfreebsd-any]'
17
18buildsimplenativepackage 'foo' 'amd64' '1.0' 'stable'
19
20insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
21
22setupaptarchive
23
24testequal 'Reading package lists...
25Building dependency tree...
26The following extra packages will be installed:
27 foo
28The following NEW packages will be installed:
29 foo pkg-arch-foo
300 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
31Inst foo (1.0 stable [amd64])
32Inst pkg-arch-foo (1.0 stable [amd64])
33Conf foo (1.0 stable [amd64])
34Conf pkg-arch-foo (1.0 stable [amd64])' aptget install pkg-arch-foo -s
35
36testequal 'Reading package lists...
37Building dependency tree...
38The following NEW packages will be installed:
39 pkg-arch-no-foo
400 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
41Inst pkg-arch-no-foo (1.0 stable [amd64])
42Conf pkg-arch-no-foo (1.0 stable [amd64])' aptget install pkg-arch-no-foo -s
43
44testequal 'Reading package lists...
45Building dependency tree...
46The following extra packages will be installed:
47 foo
48The following NEW packages will be installed:
49 foo pkg-arch-foo-unrelated-no
500 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
51Inst foo (1.0 stable [amd64])
52Inst pkg-arch-foo-unrelated-no (1.0 stable [amd64])
53Conf foo (1.0 stable [amd64])
54Conf pkg-arch-foo-unrelated-no (1.0 stable [amd64])' aptget install pkg-arch-foo-unrelated-no -s
55
56testequal 'Reading package lists...
57Building dependency tree...
58The following extra packages will be installed:
59 foo
60The following NEW packages will be installed:
61 foo pkg-arch-foo-unrelated-no2
620 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
63Inst foo (1.0 stable [amd64])
64Inst pkg-arch-foo-unrelated-no2 (1.0 stable [amd64])
65Conf foo (1.0 stable [amd64])
66Conf pkg-arch-foo-unrelated-no2 (1.0 stable [amd64])' aptget install pkg-arch-foo-unrelated-no2 -s
67
68testequal 'Reading package lists...
69Building dependency tree...
70The following NEW packages will be installed:
71 foo
720 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
73Inst foo (1.0 stable [amd64])
74Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo -s
75
76testequal 'Reading package lists...
77Building dependency tree...
780 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget build-dep pkg-arch-no-foo -s
79
80testequal 'Reading package lists...
81Building dependency tree...
82The following NEW packages will be installed:
83 foo
840 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
85Inst foo (1.0 stable [amd64])
86Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo-unrelated-no -s
87
88testequal 'Reading package lists...
89Building dependency tree...
90The following NEW packages will be installed:
91 foo
920 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
93Inst foo (1.0 stable [amd64])
94Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo-unrelated-no2 -s
95
96