]>
Commit | Line | Data |
---|---|---|
6d73fe5b MV |
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" | |
85d7c0eb | 13 | insertinstalledpackage 'foo' 'all' '1.0' |
6d73fe5b MV |
14 | |
15 | setupaptarchive | |
16 | ||
17 | APTARCHIVE=$(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 |
21 | testequal "Package: foo |
22 | Priority: optional | |
23 | Section: other | |
9e51c0b6 | 24 | Installed-Size: 43.0 k |
6d73fe5b MV |
25 | Maintainer: Joe Sixpack <joe@example.org> |
26 | Architecture: all | |
27 | Version: 1.0 | |
28 | Filename: pool/main/foo/foo_1.0_all.deb | |
9e51c0b6 | 29 | Download-Size: unknown |
85d7c0eb MV |
30 | Archive-Origin: unstable,now |
31 | Manual-Installed: yes | |
6d73fe5b MV |
32 | Description: Some description |
33 | That has multiple lines | |
34 | " apt show foo |