]> git.saurik.com Git - apt.git/blame - test/integration/test-architecture-specification-parsing
use filesize of compressed pdiffs for the limit if possible
[apt.git] / test / integration / test-architecture-specification-parsing
CommitLineData
01f520ce
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
01f520ce 6setupenvironment
01f520ce 7
a7250ed0
DK
8# we need this construct here as it isn't really possible to fake native arch for dpkg-* tools
9NATIVE="$(command dpkg --print-architecture)"
10configarchitecture "${NATIVE}" 'armel'
11
12buildsimplenativepackage 'pkg-arch-foo' "$NATIVE" '1.0' 'stable' "Build-Depends: foo [${NATIVE} !${NATIVE}]
13Depends: foo [${NATIVE} !${NATIVE}]"
14buildsimplenativepackage 'pkg-arch-no-foo' "$NATIVE" '1.0' 'stable' "Build-Depends: foo [!${NATIVE} ${NATIVE}]
15Depends: foo [!${NATIVE} ${NATIVE}]"
e9bb097c
DK
16buildsimplenativepackage 'pkg-arch-foo-unrelated-no' "$NATIVE" '1.0' 'stable' "Build-Depends: foo [!someos-any ${NATIVE}]
17Depends: foo [!someos-any ${NATIVE}]"
18buildsimplenativepackage 'pkg-arch-foo-unrelated-no2' "$NATIVE" '1.0' 'stable' "Build-Depends: foo [${NATIVE} !someos-any]
19Depends: foo [${NATIVE} !someos-any]"
a7250ed0
DK
20buildsimplenativepackage 'no-depends' 'armel' '1.0' 'stable' 'Build-Depends: foo [armeb], bar [arm]
21Depends: foo [armeb], bar [arm]'
01f520ce 22
a7250ed0 23buildsimplenativepackage 'foo' "$NATIVE" '1.0' 'stable'
01f520ce
DK
24
25insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
26
27setupaptarchive
28
25b86db1 29testsuccessequal "Reading package lists...
01f520ce 30Building dependency tree...
e7ebb414 31The following additional packages will be installed:
01f520ce
DK
32 foo
33The following NEW packages will be installed:
34 foo pkg-arch-foo
350 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
a7250ed0
DK
36Inst foo (1.0 stable [${NATIVE}])
37Inst pkg-arch-foo (1.0 stable [${NATIVE}])
38Conf foo (1.0 stable [${NATIVE}])
39Conf pkg-arch-foo (1.0 stable [${NATIVE}])" aptget install pkg-arch-foo -s
01f520ce 40
25b86db1 41testsuccessequal "Reading package lists...
01f520ce
DK
42Building dependency tree...
43The following NEW packages will be installed:
44 pkg-arch-no-foo
450 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
a7250ed0
DK
46Inst pkg-arch-no-foo (1.0 stable [${NATIVE}])
47Conf pkg-arch-no-foo (1.0 stable [${NATIVE}])" aptget install pkg-arch-no-foo -s
01f520ce 48
25b86db1 49testsuccessequal "Reading package lists...
01f520ce 50Building dependency tree...
e7ebb414 51The following additional packages will be installed:
01f520ce
DK
52 foo
53The following NEW packages will be installed:
54 foo pkg-arch-foo-unrelated-no
550 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
a7250ed0
DK
56Inst foo (1.0 stable [${NATIVE}])
57Inst pkg-arch-foo-unrelated-no (1.0 stable [${NATIVE}])
58Conf foo (1.0 stable [${NATIVE}])
59Conf pkg-arch-foo-unrelated-no (1.0 stable [${NATIVE}])" aptget install pkg-arch-foo-unrelated-no -s
01f520ce 60
25b86db1 61testsuccessequal "Reading package lists...
01f520ce 62Building dependency tree...
e7ebb414 63The following additional packages will be installed:
01f520ce
DK
64 foo
65The following NEW packages will be installed:
66 foo pkg-arch-foo-unrelated-no2
670 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
a7250ed0
DK
68Inst foo (1.0 stable [${NATIVE}])
69Inst pkg-arch-foo-unrelated-no2 (1.0 stable [${NATIVE}])
70Conf foo (1.0 stable [${NATIVE}])
71Conf pkg-arch-foo-unrelated-no2 (1.0 stable [${NATIVE}])" aptget install pkg-arch-foo-unrelated-no2 -s
01f520ce 72
25b86db1 73testsuccessequal "Reading package lists...
01f520ce
DK
74Building dependency tree...
75The following NEW packages will be installed:
76 foo
770 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
a7250ed0
DK
78Inst foo (1.0 stable [${NATIVE}])
79Conf foo (1.0 stable [${NATIVE}])" aptget build-dep pkg-arch-foo -s
01f520ce 80
25b86db1 81testsuccessequal 'Reading package lists...
01f520ce 82Building dependency tree...
39f96d07 83pkg-arch-no-foo has no build depends.
01f520ce
DK
840 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget build-dep pkg-arch-no-foo -s
85
25b86db1 86testsuccessequal "Reading package lists...
01f520ce
DK
87Building dependency tree...
88The following NEW packages will be installed:
89 foo
900 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
a7250ed0
DK
91Inst foo (1.0 stable [${NATIVE}])
92Conf foo (1.0 stable [${NATIVE}])" aptget build-dep pkg-arch-foo-unrelated-no -s
01f520ce 93
25b86db1 94testsuccessequal "Reading package lists...
01f520ce
DK
95Building dependency tree...
96The following NEW packages will be installed:
97 foo
980 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
a7250ed0
DK
99Inst foo (1.0 stable [${NATIVE}])
100Conf foo (1.0 stable [${NATIVE}])" aptget build-dep pkg-arch-foo-unrelated-no2 -s
01f520ce 101
25b86db1 102testsuccessequal 'Reading package lists...
5f20ac7f 103Building dependency tree...
39f96d07 104no-depends has no build depends.
5f20ac7f 1050 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget build-dep no-depends -s
01f520ce 106
5f20ac7f 107# this is not really testing APT - more that dpkg is in line with us
a7250ed0 108configarchitecture 'amd64' 'armel'
25b86db1 109testsuccessequal 'Reading package lists...
5f20ac7f
DK
110Building dependency tree...
111The following NEW packages will be installed:
112 no-depends:armel
1130 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
114Inst no-depends:armel (1.0 stable [armel])
115Conf no-depends:armel (1.0 stable [armel])' aptget install no-depends -s