set -u . "$TESTSDIR"/test.inc dodo test ! -d db mkdir -p conf db pool cat > conf/distributions < conf/options < fake1.deb echo "fake-deb2" > fake2.deb echo "fake-deb3" > fake3.deb fakedeb1md="$(md5 fake1.deb)" fakedeb2md="$(md5 fake2.deb)" fakedeb3md="$(md5 fake3.deb)" fakedeb1sha1="$(sha1 fake1.deb)" fakedeb2sha1="$(sha1 fake2.deb)" fakedeb3sha1="$(sha1 fake3.deb)" fakedeb1sha2="$(sha256 fake1.deb)" fakedeb2sha2="$(sha256 fake2.deb)" fakedeb3sha2="$(sha256 fake3.deb)" fakesize=10 cat > fakeindex < pool/c/p/pseudo/fake_0_all.deb testrun - -b . check 3<results.expected << EOF 'fake' -> 'Package: fake Version: 0 Source: pseudo (9999) Architecture: all Filename: pool/c/p/pseudo/fake_0_all.deb Section: base Priority: extra Description: test test Size: $fakesize MD5Sum: $fakedeb1md ' EOF dodiff results.expected results cat results testrun - -b . _listchecksums 3<