]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-apt-cli-show
deal with hashes in ftparchive more dynamic as well
[apt.git] / test / integration / test-apt-cli-show
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
10if [ ! -x ${BUILDDIRECTORY}/apt ]; then
11 msgmsg "No ${BUILDDIRECTORY}/apt"
12 msgskip
13 exit 0
14fi
15
16DESCR='Some description
17 That has multiple lines'
18insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
19insertinstalledpackage 'foo' 'all' '1.0'
20
21setupaptarchive
22
23APTARCHIVE=$(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
27testequal "Package: foo
28Priority: optional
29Section: other
30Installed-Size: 43.0 kB
31Maintainer: Joe Sixpack <joe@example.org>
32Version: 1.0
33Download-Size: unknown
34APT-Manual-Installed: yes
35APT-Sources: file:$APTARCHIVE/ unstable/main i386 Packages
36Description: Some description
37 That has multiple lines
38" apt show foo