Show "Manual-Installed: {yes|no}" in apt show
[ntk/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 k
25 Maintainer: Joe Sixpack <joe@example.org>
26 Architecture: all
27 Version: 1.0
28 Filename: pool/main/foo/foo_1.0_all.deb
29 Download-Size: unknown
30 Archive-Origin: unstable,now
31 Manual-Installed: yes
32 Description: Some description
33 That has multiple lines
34 " apt show foo