]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-get-download
add a testcase for support of various build-dependency types
[apt.git] / test / integration / test-apt-get-download
index 5c42c7e3cd2cc2efba9b0b531e9593e4838cf9b1..fc0e6cfa3c17485bc82ae0ac916bbf919c00b61b 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 
 setupenvironment
 configarchitecture "i386"
@@ -30,14 +30,8 @@ find aptarchive/dists -name '*Release*' -type f | while read file; do
        testaccessrights "$file" '640'
 done
 if [ "$(id -u)" = '0' ]; then
-       # permission errors an everything
-       testfailure aptget update
-
-       find aptarchive/dists -name '*Packages*' -type f | while read file; do
-               chmod 777 "$file"
-       done
-       # permission errors on Release
-       testwarning aptget update
+       # Release file can't be accessed by _apt
+       testsuccesswithnotice aptget update
 fi
 
 #everything (too) permissive