summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-ftparchive-src-cachedb
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-05-10 11:24:44 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2014-05-10 11:24:44 +0200
commit8710a36a01c0cb1648926792c2ad05185535558e (patch)
tree0f4bc04b87ae5926d9f855f7268ee84802232749 /test/integration/test-apt-ftparchive-src-cachedb
parentffe3c68e494efc1c2c4d748fa9d69e150867e5c2 (diff)
improve pkgTagSection scanning and parsing
Removes the 256 fields limit, deals consistently with spaces littered all over the place and is even a tiny bit faster than before. Even comes with a bunch of new tests to validate these claims.
Diffstat (limited to 'test/integration/test-apt-ftparchive-src-cachedb')
-rwxr-xr-xtest/integration/test-apt-ftparchive-src-cachedb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/test-apt-ftparchive-src-cachedb b/test/integration/test-apt-ftparchive-src-cachedb
index 1af193632..c850c739f 100755
--- a/test/integration/test-apt-ftparchive-src-cachedb
+++ b/test/integration/test-apt-ftparchive-src-cachedb
@@ -177,6 +177,11 @@ assert_correct_sources_file
mkdir aptarchive/pool/invalid
printf "meep" > aptarchive/pool/invalid/invalid_1.0.dsc
testequal "
+E: Could not find a record in the DSC 'aptarchive/pool/invalid/invalid_1.0.dsc'" aptftparchive sources aptarchive/pool/invalid
+rm -f aptarchive/pool/invalid/invalid_1.0.dsc
+
+printf "meep: yes" > aptarchive/pool/invalid/invalid_1.0.dsc
+testequal "
E: Could not find a Source entry in the DSC 'aptarchive/pool/invalid/invalid_1.0.dsc'" aptftparchive sources aptarchive/pool/invalid
rm -f aptarchive/pool/invalid/invalid_1.0.dsc