]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cli-show
show APT-Sources in apt show
[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
9e51c0b6 24Installed-Size: 43.0 k
6d73fe5b
MV
25Maintainer: Joe Sixpack <joe@example.org>
26Architecture: all
27Version: 1.0
28Filename: pool/main/foo/foo_1.0_all.deb
9e51c0b6 29Download-Size: unknown
85d7c0eb
MV
30Archive-Origin: unstable,now
31Manual-Installed: yes
6d73fe5b
MV
32Description: Some description
33 That has multiple lines
34" apt show foo