test-apt-cli-show 792 B

1234567891011121314151617181920212223242526272829303132333435
  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 k
  19. Maintainer: Joe Sixpack <joe@example.org>
  20. Architecture: all
  21. Version: 1.0
  22. Filename: pool/main/foo/foo_1.0_all.deb
  23. Download-Size: unknown
  24. Archive-Origin: unstable,now
  25. Manual-Installed: yes
  26. Description: Some description
  27. That has multiple lines
  28. " apt show foo