summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Pitt <martin@piware.de>2010-10-15 17:54:36 +0200
committerMartin Pitt <martin@piware.de>2010-10-15 17:54:36 +0200
commit915f0520645f68dda1aea1ddfd7e7a413e1f3e09 (patch)
tree4af79f0dcf8cf2fb6c184fc4379e95419fbd4533 /test
parent5a66868c039f3ca0307816d52d393eb9c6f6d682 (diff)
add test case for having no indexes, and fix regression in that case
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-indexes.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-indexes.sh b/test/test-indexes.sh
index dad3e1fb2..17363718d 100755
--- a/test/test-indexes.sh
+++ b/test/test-indexes.sh
@@ -135,6 +135,14 @@ echo "deb-src $TEST_SOURCE" >> etc/apt/sources.list
echo "RootDir \"$WORKDIR\";" > apt_config
export APT_CONFIG=`pwd`/apt_config
+echo "==== no indexes ===="
+echo '--- apt-get check works without indexes'
+[ -z `$APT_GET check` ]
+echo '--- apt-cache policy works without indexes'
+$APT_CACHE policy bash >/dev/null
+echo '--- apt-cache show works without indexes'
+! LC_MESSAGES=C $APT_CACHE show bash 2>&1| grep -q 'E: No packages found'
+
echo "===== uncompressed indexes ====="
check_update
check_indexes