]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | setupenvironment | |
7 | configarchitecture 'amd64' 'armel' | |
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 | buildsimplenativepackage 'no-depends' 'armel' '1.0' 'stable' 'Build-Depends: foo [armhf], bar [arm] | |
18 | Depends: foo [armhf], bar [arm]' | |
19 | ||
20 | buildsimplenativepackage 'foo' 'amd64' '1.0' 'stable' | |
21 | ||
22 | insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign' | |
23 | ||
24 | setupaptarchive | |
25 | ||
26 | testequal 'Reading package lists... | |
27 | Building dependency tree... | |
28 | The following extra packages will be installed: | |
29 | foo | |
30 | The following NEW packages will be installed: | |
31 | foo pkg-arch-foo | |
32 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
33 | Inst foo (1.0 stable [amd64]) | |
34 | Inst pkg-arch-foo (1.0 stable [amd64]) | |
35 | Conf foo (1.0 stable [amd64]) | |
36 | Conf pkg-arch-foo (1.0 stable [amd64])' aptget install pkg-arch-foo -s | |
37 | ||
38 | testequal 'Reading package lists... | |
39 | Building dependency tree... | |
40 | The following NEW packages will be installed: | |
41 | pkg-arch-no-foo | |
42 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
43 | Inst pkg-arch-no-foo (1.0 stable [amd64]) | |
44 | Conf pkg-arch-no-foo (1.0 stable [amd64])' aptget install pkg-arch-no-foo -s | |
45 | ||
46 | testequal 'Reading package lists... | |
47 | Building dependency tree... | |
48 | The following extra packages will be installed: | |
49 | foo | |
50 | The following NEW packages will be installed: | |
51 | foo pkg-arch-foo-unrelated-no | |
52 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
53 | Inst foo (1.0 stable [amd64]) | |
54 | Inst pkg-arch-foo-unrelated-no (1.0 stable [amd64]) | |
55 | Conf foo (1.0 stable [amd64]) | |
56 | Conf pkg-arch-foo-unrelated-no (1.0 stable [amd64])' aptget install pkg-arch-foo-unrelated-no -s | |
57 | ||
58 | testequal 'Reading package lists... | |
59 | Building dependency tree... | |
60 | The following extra packages will be installed: | |
61 | foo | |
62 | The following NEW packages will be installed: | |
63 | foo pkg-arch-foo-unrelated-no2 | |
64 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. | |
65 | Inst foo (1.0 stable [amd64]) | |
66 | Inst pkg-arch-foo-unrelated-no2 (1.0 stable [amd64]) | |
67 | Conf foo (1.0 stable [amd64]) | |
68 | Conf pkg-arch-foo-unrelated-no2 (1.0 stable [amd64])' aptget install pkg-arch-foo-unrelated-no2 -s | |
69 | ||
70 | testequal 'Reading package lists... | |
71 | Building dependency tree... | |
72 | The following NEW packages will be installed: | |
73 | foo | |
74 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
75 | Inst foo (1.0 stable [amd64]) | |
76 | Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo -s | |
77 | ||
78 | testequal 'Reading package lists... | |
79 | Building dependency tree... | |
80 | 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget build-dep pkg-arch-no-foo -s | |
81 | ||
82 | testequal 'Reading package lists... | |
83 | Building dependency tree... | |
84 | The following NEW packages will be installed: | |
85 | foo | |
86 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
87 | Inst foo (1.0 stable [amd64]) | |
88 | Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo-unrelated-no -s | |
89 | ||
90 | testequal 'Reading package lists... | |
91 | Building dependency tree... | |
92 | The following NEW packages will be installed: | |
93 | foo | |
94 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
95 | Inst foo (1.0 stable [amd64]) | |
96 | Conf foo (1.0 stable [amd64])' aptget build-dep pkg-arch-foo-unrelated-no2 -s | |
97 | ||
98 | testequal 'Reading package lists... | |
99 | Building dependency tree... | |
100 | 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget build-dep no-depends -s | |
101 | ||
102 | # this is not really testing APT - more that dpkg is in line with us | |
103 | testequal 'Reading package lists... | |
104 | Building dependency tree... | |
105 | The following NEW packages will be installed: | |
106 | no-depends:armel | |
107 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
108 | Inst no-depends:armel (1.0 stable [armel]) | |
109 | Conf no-depends:armel (1.0 stable [armel])' aptget install no-depends -s |