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