diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-07-13 19:34:11 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-07-13 19:34:11 +0200 |
commit | 67dc3830798e6b59a9fce03682c9802233b0a1fe (patch) | |
tree | c6d8e165acb46e7ab2be4aeb1b1b4ad63f66df85 /test/libapt/run-tests | |
parent | c31c1dded85ee1e88231a041aac7e507f2ed426c (diff) |
move hash test to libapt-testcases and add a few more tests
Diffstat (limited to 'test/libapt/run-tests')
-rwxr-xr-x | test/libapt/run-tests | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libapt/run-tests b/test/libapt/run-tests index 4b71c2097..0eea6d4f8 100755 --- a/test/libapt/run-tests +++ b/test/libapt/run-tests @@ -53,6 +53,13 @@ do "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-pt" \ "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-se~" \ "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-st.bak" + elif [ $name = "HashSums${EXT}" ]; then + TMP="$(mktemp)" + dmesg > $TMP + echo -n "Testing with \033[1;35m${name}\033[0m ... " + 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 "\033[1;32mOKAY\033[0m" || echo "\033[1;31mFAILED\033[0m" + rm $TMP + continue fi echo -n "Testing with \033[1;35m${name}\033[0m ... " |