From ca6ab6e37c101f21066d1522c6e9c202856842ca Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 15 Aug 2013 16:41:16 +0200 Subject: rework the parameter creation for the Hashsum test Avoids having to different places from which test binaries are called Git-Dch: Ignore --- test/libapt/run-tests | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/libapt/run-tests') diff --git a/test/libapt/run-tests b/test/libapt/run-tests index 4f34b03e8..764663020 100755 --- a/test/libapt/run-tests +++ b/test/libapt/run-tests @@ -72,9 +72,11 @@ do "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-tlh%5fDE" elif [ $name = "HashSums${EXT}" ]; then TMP="$(readlink -f "./${0}")" - echo -n "Testing with ${NAME} " - LD_LIBRARY_PATH=${LDPATH} ${testapp} $TMP $(md5sum $TMP | cut -d' ' -f 1) $(sha1sum $TMP | cut -d' ' -f 1) $(sha256sum $TMP | cut -d' ' -f 1) $(sha512sum $TMP | cut -d' ' -f 1) && echo "$TESTOKAY" || echo "$TESTFAIL" - continue + tmppath="$TMP" + tmppath="${tmppath} $(md5sum $TMP | cut -d' ' -f 1)" + tmppath="${tmppath} $(sha1sum $TMP | cut -d' ' -f 1)" + tmppath="${tmppath} $(sha256sum $TMP | cut -d' ' -f 1)" + tmppath="${tmppath} $(sha512sum $TMP | cut -d' ' -f 1)" elif [ $name = "CompareVersion${EXT}" ]; then tmppath="${DIR}/versions.lst" elif [ $name = "CdromFindPackages${EXT}" ]; then -- cgit v1.2.3