]> git.saurik.com Git - apt.git/commitdiff
rework the parameter creation for the Hashsum test
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 15 Aug 2013 14:41:16 +0000 (16:41 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 15 Aug 2013 15:39:24 +0000 (17:39 +0200)
Avoids having to different places from which test binaries are called

Git-Dch: Ignore

test/libapt/run-tests

index 4f34b03e8081ad650ea43947aa804ef0257edc5c..7646630200f563996f4e3a38dd3d68b24aa5f055 100755 (executable)
@@ -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