]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-cli-show
adapt to the new CacheSetHelper API
[apt.git] / test / integration / test-apt-cli-show
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6
7 setupenvironment
8 configarchitecture "i386"
9
10 if [ ! -x ${BUILDDIRECTORY}/apt ]; then
11 msgmsg "No ${BUILDDIRECTORY}/apt"
12 msgskip
13 exit 0
14 fi
15
16 DESCR='Some description
17 That has multiple lines'
18 insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
19 insertinstalledpackage 'foo' 'all' '1.0'
20
21 setupaptarchive
22
23 APTARCHIVE=$(readlink -f ./aptarchive)
24
25 # note that we do not display Description-md5 with the "apt" cmd
26 # and also show some additional fields that are calculated
27 testequal "Package: foo
28 Priority: optional
29 Section: other
30 Installed-Size: 43.0 kB
31 Maintainer: Joe Sixpack <joe@example.org>
32 Version: 1.0
33 Download-Size: unknown
34 APT-Manual-Installed: yes
35 APT-Sources: file:$APTARCHIVE/ unstable/main i386 Packages
36 Description: Some description
37 That has multiple lines
38 " apt show foo