test-apt-bug-718329-support-data.tar 905 B

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