]> git.saurik.com Git - apt.git/commitdiff
* test/libapt/run-tests:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 20 Jan 2012 01:00:48 +0000 (02:00 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 20 Jan 2012 01:00:48 +0000 (02:00 +0100)
  - hurd doesn't have dmesg yet and we don't really need it either,
    so use with $0 a more stable data source for hashsumming

debian/changelog
test/libapt/run-tests

index 99c3a203272121857a81fc240098ad5f7037e564..9484063bb1b40253849d7f086a8ca97775abcef3 100644 (file)
@@ -21,13 +21,16 @@ apt (0.8.16~exp12) experimental; urgency=low
     - use curls list append instead of appending Range and If-Range by hand
       which generates malformed requests, thanks Mel Collins for the hint!
       (Closes: #646381)
     - use curls list append instead of appending Range and If-Range by hand
       which generates malformed requests, thanks Mel Collins for the hint!
       (Closes: #646381)
+  * test/libapt/run-tests:
+    - hurd doesn't have dmesg yet and we don't really need it either,
+      so use with $0 a more stable data source for hashsumming
 
   [ Pino Toscano ]
   * test/libapt/globalerror_test.cc:
     - errno 0 has a different strerror on hurd, so generate the expected
       message dynamically instead of hardcoding 'Success' (Closes: #656530)
 
 
   [ Pino Toscano ]
   * test/libapt/globalerror_test.cc:
     - errno 0 has a different strerror on hurd, so generate the expected
       message dynamically instead of hardcoding 'Success' (Closes: #656530)
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Fri, 20 Jan 2012 01:31:30 +0100
+ -- David Kalnischkies <kalnischkies@gmail.com>  Fri, 20 Jan 2012 01:43:07 +0100
 
 apt (0.8.16~exp11) experimental; urgency=low
 
 
 apt (0.8.16~exp11) experimental; urgency=low
 
index 5fff4ecca4a7be787c280af8b3b72189f1d5e3bf..d4341412dd58212474921b9c5b3b42c15bb4f580 100755 (executable)
@@ -67,11 +67,9 @@ do
                        "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-st.bak" \
                        "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-ast_DE"
        elif [ $name = "HashSums${EXT}" ]; then
                        "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-st.bak" \
                        "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-ast_DE"
        elif [ $name = "HashSums${EXT}" ]; then
-               TMP="$(mktemp)"
-               dmesg > $TMP
+               TMP="$(readlink -f "./${0}")"
                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"
                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
        elif [ $name = "CompareVersion${EXT}" ]; then
                tmppath="${DIR}/versions.lst"
                continue
        elif [ $name = "CompareVersion${EXT}" ]; then
                tmppath="${DIR}/versions.lst"