]> git.saurik.com Git - apt.git/blame - test/integration/test-pdiff-usage
fix test/integration/test-apt-key-net-update
[apt.git] / test / integration / test-pdiff-usage
CommitLineData
f213b6ea
DK
1#!/bin/sh
2set -e
3
9962ae93 4TESTDIR=$(readlink -f $(dirname $0))
f213b6ea
DK
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
10buildaptarchive
11setupflataptarchive
12changetowebserver
13signreleasefiles
0440d936 14testsuccess aptget update
f213b6ea
DK
15
16testnopackage newstuff
17PKGFILE="${TESTDIR}/$(echo "$(basename $0)" | sed 's#^test-#Packages-#')"
18testequal "$(cat ${PKGFILE})
19" aptcache show apt oldstuff
20
21cp ${PKGFILE}-new aptarchive/Packages
276e51dd 22compressfile 'aptarchive/Packages'
f213b6ea 23rm -rf aptarchive/Packages.diff
f213b6ea
DK
24mkdir -p aptarchive/Packages.diff
25PATCHFILE="aptarchive/Packages.diff/$(date +%Y-%m-%d-%H%M.%S)"
26diff -e ${PKGFILE} ${PKGFILE}-new > ${PATCHFILE} || true
27cat $PATCHFILE | gzip > ${PATCHFILE}.gz
28PATCHINDEX="aptarchive/Packages.diff/Index"
29echo "SHA1-Current: $(sha1sum ${PKGFILE}-new | cut -d' ' -f 1) $(stat -c%s ${PKGFILE}-new)
30SHA1-History:
31 9f4148e06d7faa37062994ff10d0c842d7017513 33053002 2010-08-18-2013.28
32 $(sha1sum $PKGFILE | cut -d' ' -f 1) $(stat -c%s $PKGFILE) $(basename $PATCHFILE)
33SHA1-Patches:
34 7651fc0ac57cd83d41c63195a9342e2db5650257 19722 2010-08-18-0814.28
35 $(sha1sum $PATCHFILE | cut -d' ' -f 1) $(stat -c%s $PATCHFILE) $(basename $PATCHFILE)" > $PATCHINDEX
e3c62328 36generatereleasefiles '+1hour'
f213b6ea 37signreleasefiles
321dfa5e 38find aptarchive -name 'Packages*' -type f -delete
0440d936 39testsuccess aptget update
f213b6ea
DK
40
41testnopackage oldstuff
42testequal "$(cat ${PKGFILE}-new)
43" aptcache show apt newstuff