]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-712435-missing-descriptions
prevent MarkInstall of unsynced Multi-Arch:same siblings
[apt.git] / test / integration / test-bug-712435-missing-descriptions
CommitLineData
99359751
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8
9PACKAGESTANZA='Version: 0.9.7.8
10Installed-Size: 3270
11Maintainer: APT Development Team <deity@lists.debian.org>
12Architecture: amd64
13Filename: pool/main/a/apt/apt_0.9.7.8_amd64.deb
14MD5sum: 3a622acda41620df50aa22a9fac6f32e'
15
16DESCRIPTION='Description: commandline package manager
17 This APT has Super Cow Powers.'
18
19TRANSDESCRIPTION='Description-en: commandline package manager
20 This APT has translated Super Cow Powers.'
21
22echo "Package: apt-normal
23$PACKAGESTANZA
24$DESCRIPTION
25Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
26
27Package: apt-both-below
28$PACKAGESTANZA
29$DESCRIPTION
30$TRANSDESCRIPTION
31Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
32
33Package: apt-both-middle
34$PACKAGESTANZA
35$DESCRIPTION
36Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
37$TRANSDESCRIPTION
38
39Package: apt-both-top
40$PACKAGESTANZA
41Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
42$DESCRIPTION
43$TRANSDESCRIPTION
44
45Package: apt-trans
46$PACKAGESTANZA
47$TRANSDESCRIPTION
48Description-md5: cccccccccccccccccccccccccccccccc
49
50Package: apt-md5
51$PACKAGESTANZA
52Description-md5: dddddddddddddddddddddddddddddddd
53
54Package: apt-none
55$PACKAGESTANZA" > aptarchive/Packages
56
57setupaptarchive
58
59testequal "Package: apt-normal
60$PACKAGESTANZA
61$DESCRIPTION
62Description-md5: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
63" aptcache show apt-normal
64
65# displaying the translated Description would be equally valid,
66# but we assume only one description is in a Packages file and
67# so we prefer "Description" over "Description-*" currently.
68for variant in 'below' 'middle' 'top'; do
69 testequal "Package: apt-both-$variant
70$PACKAGESTANZA
71$DESCRIPTION
72Description-md5: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
73" aptcache show apt-both-$variant
74done
75
76testequal "Package: apt-trans
77$PACKAGESTANZA
78$TRANSDESCRIPTION
79Description-md5: cccccccccccccccccccccccccccccccc
80" aptcache show apt-trans
81
82testequal "Package: apt-md5
83$PACKAGESTANZA
84Description-md5: dddddddddddddddddddddddddddddddd
85" aptcache show apt-md5
86
87testequal "Package: apt-none
88$PACKAGESTANZA
89" aptcache show apt-none