4 test_process_package_with_compression
() { 
   8     msgmsg 
"Testing apt-ftparchive with compression type: $COMPRESSOR" 
  10     buildsimplenativepackage 
'pkg' 'all' '1.0' '' '' 'some descr' '' '' '' "$COMPRESSOR" 
  11     testsuccessequal 
"debian-binary 
  13 $DATA_TAR" ar t incoming
/pkg_1.0_all.deb
 
  15     testequal 
"Package: pkg" echo "$(aptftparchive packages incoming/|grep ^Package)" 
  17     testsuccessequal 
"usr/bin/pkg-all                                               pkg 
  18 usr/share/doc/pkg/FEATURES                                  pkg 
  19 usr/share/doc/pkg/changelog                                 pkg 
  20 usr/share/doc/pkg/copyright                                 pkg" aptftparchive contents incoming
/ 
  25 TESTDIR
=$(readlink -f $(dirname $0)) 
  29 test_process_package_with_compression 
"gzip" "data.tar.gz" 
  30 test_process_package_with_compression 
"none" "data.tar" 
  31 test_process_package_with_compression 
"xz" "data.tar.xz"