]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-ftparchive-cachedb
hide Translation-* in 'apt-cache policy' output
[apt.git] / test / integration / test-apt-ftparchive-cachedb
index 866e5a4696589ac9f77645db2f07167caf01d438..962095320e4ad3480f6aa14d422f2921f1b6579c 100755 (executable)
@@ -3,20 +3,20 @@ set -e
 
 ensure_correct_packages_file() {
     testequal "Package: foo
+Architecture: i386
+Version: 1
 Priority: optional
 Section: others
-$(dpkg-deb -I ./aptarchive/pool/main/foo_1_i386.deb | grep 'Installed-Size:' | sed 's#^ ##')
 Maintainer: Joe Sixpack <joe@example.org>
-Architecture: i386
-Version: 1
-Filename: pool/main/foo_1_i386.deb" head -n8 ./aptarchive/dists/test/main/binary-i386/Packages 
+$(dpkg-deb -I ./aptarchive/pool/main/foo_1_i386.deb | grep 'Installed-Size:' | sed 's#^ ##')
+Filename: pool/main/foo_1_i386.deb" head -n8 ./aptarchive/dists/test/main/binary-i386/Packages
 }
 
 ensure_correct_contents_file() {
-    testequal "usr/bin/foo-i386                                            others/foo
+    testfileequal ./aptarchive/dists/test/Contents-i386 "usr/bin/foo-i386                                          others/foo
 usr/share/doc/foo/FEATURES                                 others/foo
 usr/share/doc/foo/changelog                                others/foo
-usr/share/doc/foo/copyright                                others/foo" cat ./aptarchive/dists/test/Contents-i386
+usr/share/doc/foo/copyright                                others/foo"
 }
 
 #
@@ -99,8 +99,8 @@ testfileequal 'rootdir/tmp/testsuccess.output' ' Misses in Cache: 0
 
 # and clean
 rm -rf aptarchive/pool/main/*
-testequal "packages-main-i386.db" aptftparchive clean ftparchive.conf -q=0
+testsuccessequal "packages-main-i386.db" aptftparchive clean ftparchive.conf -q=0
 testsuccess aptftparchive clean ftparchive.conf -q=0 -o Debug::APT::FTPArchive::Clean=1
 cp rootdir/tmp/testsuccess.output clean-out.txt
-testequal "0   Number of unique keys in the tree" grep unique clean-out.txt
-testequal "packages-main-i386.db" grep packages-main-i386.db clean-out.txt
+testsuccessequal "0    Number of unique keys in the tree" grep unique clean-out.txt
+testsuccessequal "packages-main-i386.db" grep packages-main-i386.db clean-out.txt