]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-590438-broken-provides-thanks-to-remove-order
pass versioned provides to external solvers in EDSP
[apt.git] / test / integration / test-bug-590438-broken-provides-thanks-to-remove-order
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6
7setupenvironment
8configarchitecture "i386"
9setupaptarchive
10
11pkgbasefile="Package: base-files
12Status: install ok installed
13Essential: yes
14Priority: required
15Section: admin
16Installed-Size: 472
17Maintainer: Santiago Vila <sanvila@debian.org>
18Architecture: i386
19Version: 5.8
20Replaces: base, dpkg (<= 1.15.0), miscutils
21Provides: base
22Filename: pool/main/b/base-files/base-files_5.8_i386.deb
23Size: 73986
24MD5sum: 8489687ce10e656babd467c9ee389349
25Description-de: Verschiedene Dateien für das Basis-System von Debian"
26
27predependsgawk() {
28 cp "$TESTDIR/$(echo "$(basename "$0")" | sed 's/test-/status-/')" rootdir/var/lib/dpkg/status
29 echo "$pkgbasefile
30Pre-Depends: $1
31" >> rootdir/var/lib/dpkg/status
32 testsuccessequal "Inst gawk (1:3.1.7.dfsg-5 localhost [i386])
33Conf gawk (1:3.1.7.dfsg-5 localhost [i386])
34Remv mawk [1.3.3-15]" aptget install gawk mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g')
35}
36
37predependsgawk "gawk | mawk"
38predependsgawk "mawk | gawk"
39
40predependsgawk "aawk | mawk | gawk"
41predependsgawk "aawk | gawk | mawk"
42
43predependsgawk "gawk | awk"
44predependsgawk "aawk | gawk | awk"
45
46predependsgawk "mawk | awk"
47
48predependsgawk "awk | gawk"
49predependsgawk "awk | gawk | aawk"
50
51predependsgawk "awk | mawk"
52
53predependsgawk "aawk | awk"
54predependsgawk "awk | aawk"
55
56predependsgawk "awk"
57
58predependsgawk2() {
59 cp "$TESTDIR/$(echo "$(basename "$0")" | sed 's/test-/status-/')" rootdir/var/lib/dpkg/status
60 echo "$pkgbasefile
61Pre-Depends: $1
62" >> rootdir/var/lib/dpkg/status
63 testequalor2 "Inst coolstuff (1-1 localhost [all])
64Conf coolstuff (1-1 localhost [all])
65Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386])
66Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386])
67Remv mawk [1.3.3-15]" "Inst coolstuff (1-1 localhost [all])
68Inst gawk2 (1:3.1.7.dfsg-5 localhost [i386])
69Conf coolstuff (1-1 localhost [all])
70Conf gawk2 (1:3.1.7.dfsg-5 localhost [i386])
71Remv mawk [1.3.3-15]" aptget install gawk2 mawk- -sqq -o PreDepends=$(echo "$1" | sed 's/ //g')
72}
73
74predependsgawk2 "gawk2 | mawk"
75predependsgawk2 "mawk | gawk2"
76
77predependsgawk2 "aawk | mawk | gawk2"
78predependsgawk2 "aawk | gawk2 | mawk"
79
80predependsgawk2 "gawk2 | awk"
81predependsgawk2 "aawk | gawk2 | awk"
82
83predependsgawk2 "mawk | awk"
84
85predependsgawk2 "awk | gawk2"
86predependsgawk2 "awk | gawk2 | aawk"
87
88predependsgawk2 "awk | mawk"
89
90predependsgawk2 "aawk | awk"
91predependsgawk2 "awk | aawk"
92
93predependsgawk2 "awk"
94
95
96# aptget install gawk2 mawk- -s #-o Debug::pkgOrderList=1 #-o Debug::pkgPackageManager=1