test-apt-cli-show 614 B

123456789101112131415161718192021222324252627282930
  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. setupaptarchive
  11. APTARCHIVE=$(readlink -f ./aptarchive)
  12. # note that we do not display Description-md5 with the "apt" cmd
  13. testequal "Package: foo
  14. Priority: optional
  15. Section: other
  16. Installed-Size: 42
  17. Maintainer: Joe Sixpack <joe@example.org>
  18. Architecture: all
  19. Version: 1.0
  20. Filename: pool/main/foo/foo_1.0_all.deb
  21. Description: Some description
  22. That has multiple lines
  23. " apt show foo