#!/bin/sh
set -e
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
setupenvironment
configarchitecture 'amd64' 'i386'
cat >> rootdir/etc/apt/sources.list <<EOF
deb http://example.org/debian stable main rocks
EOF
+rm -r rootdir/var/cache/apt/*.bin
+testwarning aptcache gencaches
testwarningequal "${APTLISTS}/example.org_debian_dists_stable_main_source_Sources
${APTLISTS}/example.org_debian_dists_stable_rocks_source_Sources
${APTLISTS}/example.org_debian_dists_stable_main_binary-amd64_Packages
deb [target=Contents1,Contents2,Contentsflat arch=amd64] http://example.org/debian stable main rocks
deb-src [target=Contents1,Contents2,Contentsflat arch=amd64] http://example.org/debian stable main rocks
EOF
+rm -r rootdir/var/cache/apt/*.bin
+testwarning aptcache gencaches
testwarningequal "${APTLISTS}/example.org_debian_dists_stable_main_source_Sources
${APTLISTS}/example.org_debian_dists_stable_rocks_source_Sources
${APTLISTS}/example.org_debian_dists_stable_main_binary-amd64_Packages