]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cli-show
Make the test more verbose and check for the negative case of a kernel that
[apt.git] / test / integration / test-apt-cli-show
CommitLineData
6d73fe5b
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
10DESCR='Some description
11 That has multiple lines'
12insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
85d7c0eb 13insertinstalledpackage 'foo' 'all' '1.0'
6d73fe5b
MV
14
15setupaptarchive
16
17APTARCHIVE=$(readlink -f ./aptarchive)
18
19# note that we do not display Description-md5 with the "apt" cmd
85d7c0eb 20# and also show some additional fields that are calculated
6d73fe5b
MV
21testequal "Package: foo
22Priority: optional
23Section: other
17622532 24Installed-Size: 43.0 kB
6d73fe5b 25Maintainer: Joe Sixpack <joe@example.org>
6d73fe5b 26Version: 1.0
9e51c0b6 27Download-Size: unknown
17622532
MV
28APT-Manual-Installed: yes
29APT-Sources: file:$APTARCHIVE/ unstable/main i386 Packages
6d73fe5b
MV
30Description: Some description
31 That has multiple lines
32" apt show foo