]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | ||
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" | |
5 | . "$TESTDIR/framework" | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture 'i386' | |
9 | ||
10 | insertpackage 'unstable' 'apt' 'all' '1.0.10.1' 'Depends: libapt-pkg4.16 (>= 1.0.10.1)' | |
11 | insertinstalledpackage 'libapt-pkg4.16' 'all' '1.0.10.1' 'Breaks: apt (<< 0.9.4~), libapt-inst1.5 (<< 0.9.9~)' | |
12 | insertinstalledpackage 'libapt-pkg5.0' 'all' '1.1~exp9' 'Breaks: apt (<< 1.1~exp4), libapt-inst1.5 (<< 0.9.9~)' | |
13 | insertinstalledpackage 'apt' 'all' '1.1~exp9' 'Depends: libapt-pkg5.0' | |
14 | ||
15 | insertpackage 'unstable' 'napt' 'all' '1.0.10.1' 'Depends: nlibapt-pkg4.16 (>= 1.0.10.1)' | |
16 | insertinstalledpackage 'nlibapt-pkg4.16' 'all' '1.0.10.1' 'Breaks: napt (<< 0.9.4~), nlibapt-inst1.5 (<< 0.9.9~)' | |
17 | insertinstalledpackage 'nlibapt-pkg5.0' 'all' '1.1~exp9' 'Breaks: napt (<< 1.1~exp4), nlibapt-inst1.5 (<< 0.9.9~)' | |
18 | insertinstalledpackage 'napt' 'all' '1.1~exp9' 'Depends: nlibapt-pkg5.0' | |
19 | ||
20 | insertpackage 'unstable' 'eapt' 'all' '1.0.10.1' 'Depends: elibapt-pkg4.16 (>= 1.0.10.1) | |
21 | Essential: yes' | |
22 | insertinstalledpackage 'elibapt-pkg4.16' 'all' '1.0.10.1' 'Breaks: eapt (<< 0.9.4~), elibapt-inst1.5 (<< 0.9.9~)' | |
23 | insertinstalledpackage 'elibapt-pkg5.0' 'all' '1.1~exp9' 'Breaks: eapt (<< 1.1~exp4), elibapt-inst1.5 (<< 0.9.9~)' | |
24 | insertinstalledpackage 'eapt' 'all' '1.1~exp9' 'Depends: elibapt-pkg5.0 | |
25 | Essential: yes' | |
26 | ||
27 | ||
28 | setupaptarchive | |
29 | ||
30 | ||
31 | # Check with a normal package | |
32 | testsuccessequal 'Reading package lists... | |
33 | Building dependency tree... | |
34 | The following packages will be REMOVED: | |
35 | nlibapt-pkg5.0 | |
36 | The following packages will be DOWNGRADED: | |
37 | napt | |
38 | 0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded. | |
39 | Remv nlibapt-pkg5.0 [1.1~exp9] [napt:i386 ] | |
40 | Inst napt [1.1~exp9] (1.0.10.1 unstable [all]) | |
41 | Conf napt (1.0.10.1 unstable [all])' apt install -s napt=1.0.10.1 | |
42 | ||
43 | ||
44 | # Check with Essential | |
45 | testsuccessequal 'Reading package lists... | |
46 | Building dependency tree... | |
47 | The following packages will be REMOVED: | |
48 | elibapt-pkg5.0 | |
49 | The following packages will be DOWNGRADED: | |
50 | eapt | |
51 | 0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded. | |
52 | Inst eapt [1.1~exp9] (1.0.10.1 unstable [all]) [elibapt-pkg5.0:i386 on eapt:i386] [elibapt-pkg5.0:i386 ] | |
53 | Remv elibapt-pkg5.0 [1.1~exp9] | |
54 | Conf eapt (1.0.10.1 unstable [all])' apt install -s eapt=1.0.10.1 | |
55 | ||
56 | ||
57 | # Check with the APT name, aka essential | |
58 | testsuccessequal 'Reading package lists... | |
59 | Building dependency tree... | |
60 | The following packages will be REMOVED: | |
61 | libapt-pkg5.0 | |
62 | The following packages will be DOWNGRADED: | |
63 | apt | |
64 | 0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded. | |
65 | Inst apt [1.1~exp9] (1.0.10.1 unstable [all]) [libapt-pkg5.0:i386 on apt:i386] [libapt-pkg5.0:i386 ] | |
66 | Remv libapt-pkg5.0 [1.1~exp9] | |
67 | Conf apt (1.0.10.1 unstable [all])' apt install -s apt=1.0.10.1 |