summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2021-06-10 16:38:09 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2021-06-10 16:38:09 +0200
commit18140e1db1c386a8c6da004956ae8a96152de4d1 (patch)
treef9c7eb36be371228a82c7ea425b76e0536e9ebe3 /test/integration/framework
parent7adecd8b2543fc8ee5288b91525a366cf9525cb8 (diff)
Give our test packages proper size information
Temporary hacks should be temporary, especially if they hide bugs. After fixing one in the previous commit this is just busy work to add download information to the places which check that output. Gbp-Dch: Ignore
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/integration/framework b/test/integration/framework
index f14b4da64..8c9abfbe4 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -486,10 +486,6 @@ EOF
echo 'APT::Machine-ID "912e43bd1c1d4ba481f9f8ccab25f9ee";' > rootdir/etc/apt/apt.conf.d/machine-id
- # XXX: We really ought to make the packages in the test suite all have Size fields.
- # But this needs a lot more changes, so let's keep it simple for stable updates.
- echo 'Acquire::AllowUnsizedPackages "true";' >> rootdir/etc/apt/apt.conf.d/temporary-allow-unsized-packages
-
configcompression '.' 'gz' #'bz2' 'lzma' 'xz'
confighashes 'SHA256' # these are tests, not security best-practices
@@ -974,6 +970,8 @@ insertpackage() {
Priority: $PRIORITY
Section: $SECTION
Installed-Size: 42
+Size: 42
+SHA256: 0000000000000000000000000000000000000000000000000000000000000000
Maintainer: Joe Sixpack <joe@example.org>"
test "$arch" = 'none' || echo "Architecture: $arch"
echo "Version: $VERSION
@@ -981,7 +979,6 @@ Filename: pool/${DISTSECTION}/${NAME}/${NAME}_${VERSION}_${arch}.deb"
test -z "$DEPENDENCIES" || printf "%b\n" "$DEPENDENCIES"
echo "Description: $(printf '%s' "$DESCRIPTION" | head -n 1)"
echo "Description-md5: $(printf '%s' "$DESCRIPTION" | md5sum | cut -d' ' -f 1)"
- echo "SHA256: 0000000000000000000000000000000000000000000000000000000000000000"
echo
} >> "${PPATH}/Packages"
done