]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-bug-718329-support-data.tar
Merge remote-tracking branch 'mvo/feature/apt-ftparchive-srccache2' into debian/sid
[apt.git] / test / integration / test-apt-bug-718329-support-data.tar
CommitLineData
adff049d
MV
1#!/bin/sh
2set -e
3
4test_process_package_with_compression() {
5 COMPRESSOR="$1"
6 DATA_TAR="$2"
7
8 msgtest "Testing apt-ftparchive with compression type: $COMPRESSOR"
9
10 buildsimplenativepackage 'pkg' 'all' '1.0' '' '' 'some descr' '' '' '' "$COMPRESSOR"
11 testequal "debian-binary
12control.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
17 testequal "usr/bin/pkg-all pkg
18usr/share/doc/pkg/FEATURES pkg
19usr/share/doc/pkg/changelog pkg
20usr/share/doc/pkg/copyright pkg" aptftparchive contents incoming/
21
22 rm -rf incoming/*
23}
24
25TESTDIR=$(readlink -f $(dirname $0))
26. $TESTDIR/framework
27
28setupenvironment
29test_process_package_with_compression "gzip" "data.tar.gz"
30test_process_package_with_compression "none" "data.tar"
31test_process_package_with_compression "xz" "data.tar.xz"
32
33
34