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