4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 if [ ! -x ${BUILDDIRECTORY}/apt
]; then
11 msgmsg
"No ${BUILDDIRECTORY}/apt"
16 DESCR
='Some description
17 That has multiple lines'
18 insertpackage
'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
19 insertinstalledpackage
'foo' 'all' '1.0'
23 APTARCHIVE
=$(readlink -f ./aptarchive)
25 # note that we do not display Description-md5 with the "apt" cmd
26 # and also show some additional fields that are calculated
27 testsuccessequal
"Package: foo
31 Maintainer: Joe Sixpack <joe@example.org>
32 Installed-Size: 43.0 kB
33 Download-Size: unknown
34 APT-Manual-Installed: yes
35 APT-Sources: file:$APTARCHIVE unstable/main i386 Packages
36 Description: Some description
37 That has multiple lines
40 # this is the default, but disabled by the testcases
41 testsuccess apt show foo
-o Apt
::Cmd
::Disable
-Script-Warning=0
42 cp rootdir
/tmp
/testsuccess.output aptshow.output
43 testsuccess
grep '^WARNING: ' aptshow.output
45 if [ "$(id -u)" != '0' ]; then
46 testsuccess apt
install foo
-s -o APT
::Get
::Show
-User-Simulation-Note=1
47 cp rootdir
/tmp
/testsuccess.output aptshow.output
48 testsuccess
grep '^NOTE: ' aptshow.output