test-apt-cli-show 769 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. set -e
  3. TESTDIR=$(readlink -f $(dirname $0))
  4. . $TESTDIR/framework
  5. setupenvironment
  6. configarchitecture "i386"
  7. DESCR='Some description
  8. That has multiple lines'
  9. insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
  10. insertinstalledpackage 'foo' 'all' '1.0'
  11. setupaptarchive
  12. APTARCHIVE=$(readlink -f ./aptarchive)
  13. # note that we do not display Description-md5 with the "apt" cmd
  14. # and also show some additional fields that are calculated
  15. testequal "Package: foo
  16. Priority: optional
  17. Section: other
  18. Installed-Size: 43.0 kB
  19. Maintainer: Joe Sixpack <joe@example.org>
  20. Version: 1.0
  21. Download-Size: unknown
  22. APT-Manual-Installed: yes
  23. APT-Sources: file:$APTARCHIVE/ unstable/main i386 Packages
  24. Description: Some description
  25. That has multiple lines
  26. " apt show foo