X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/7852873a1347fcab50393b545cc1e6edd65531c8..952171787a0b865c17d5c9476e272106383ae93a:/test/integration/test-apt-ftparchive-by-hash diff --git a/test/integration/test-apt-ftparchive-by-hash b/test/integration/test-apt-ftparchive-by-hash index 6cda0e415..d08b94290 100755 --- a/test/integration/test-apt-ftparchive-by-hash +++ b/test/integration/test-apt-ftparchive-by-hash @@ -2,7 +2,7 @@ set -e verify_by_hash() { - for hash_gen in SHA1:sha1sum SHA256:sha256sum SHA512:sha512sum; do + for hash_gen in SHA256:sha256sum SHA512:sha512sum; do hash=$(echo ${hash_gen} | cut -f1 -d:) gen=$(echo ${hash_gen} | cut -f2 -d:) testsuccess stat aptarchive/dists/unstable/main/binary-i386/by-hash/$hash/$($gen aptarchive/dists/unstable/main/binary-i386/Packages | cut -f1 -d' ') @@ -13,11 +13,15 @@ verify_by_hash() { # # main() # -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture 'i386' configcompression 'gz' '.' +confighashes 'SHA256' 'SHA512' + +# enable by-hash in apt-ftparchive +echo 'APT::FTPArchive::DoByHash "1";' >> aptconfig.conf # build one pacakge buildsimplenativepackage 'foo' 'i386' '1' 'unstable'