You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
954 B

  1. #!/bin/sh
  2. set -e
  3. art() {
  4. ar t "$@" | grep -v control.tar
  5. }
  6. test_process_package_with_compression() {
  7. COMPRESSOR="$1"
  8. DATA_TAR="$2"
  9. msgmsg "Testing apt-ftparchive with compression type: $COMPRESSOR"
  10. buildsimplenativepackage 'pkg' 'all' '1.0' '' '' 'some descr' '' '' '' "$COMPRESSOR"
  11. testsuccessequal "debian-binary
  12. $DATA_TAR" art incoming/pkg_1.0_all.deb
  13. testequal "Package: pkg" echo "$(aptftparchive packages incoming/|grep ^Package)"
  14. testsuccessequal "usr/bin/pkg-all pkg
  15. usr/share/doc/pkg/FEATURES pkg
  16. usr/share/doc/pkg/changelog pkg
  17. usr/share/doc/pkg/copyright pkg" aptftparchive contents incoming/
  18. rm -rf incoming/*
  19. }
  20. TESTDIR="$(readlink -f "$(dirname "$0")")"
  21. . "$TESTDIR/framework"
  22. setupenvironment
  23. test_process_package_with_compression "gzip" "data.tar.gz"
  24. test_process_package_with_compression "none" "data.tar"
  25. test_process_package_with_compression "xz" "data.tar.xz"