]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-cli-show
hide more from apt show
[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 DESCR='Some description
11 That has multiple lines'
12 insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
13 insertinstalledpackage 'foo' 'all' '1.0'
14
15 setupaptarchive
16
17 APTARCHIVE=$(readlink -f ./aptarchive)
18
19 # note that we do not display Description-md5 with the "apt" cmd
20 # and also show some additional fields that are calculated
21 testequal "Package: foo
22 Priority: optional
23 Section: other
24 Installed-Size: 43.0 kB
25 Maintainer: Joe Sixpack <joe@example.org>
26 Version: 1.0
27 Download-Size: unknown
28 APT-Manual-Installed: yes
29 APT-Sources: file:$APTARCHIVE/ unstable/main i386 Packages
30 Description: Some description
31 That has multiple lines
32 " apt show foo