diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-10-08 08:36:53 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-10-08 08:36:53 +0200 |
commit | a943fbf21ca0b9b58b8f1492fc518679b1d7c749 (patch) | |
tree | 8db7050b025ca3918ff3e5ebad00f3a7f339a7d2 /test/integration/test-apt-update-transactions | |
parent | 8f45798d532223adc378a4ad9ecfc64b3be26e4f (diff) | |
parent | f9a3c4bde867e70e8c89b6ed5924ab9fab517096 (diff) |
Merge remote-tracking branch 'mvo/feature/acq-trans' into debian/experimental
Diffstat (limited to 'test/integration/test-apt-update-transactions')
-rwxr-xr-x | test/integration/test-apt-update-transactions | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/integration/test-apt-update-transactions b/test/integration/test-apt-update-transactions new file mode 100755 index 000000000..247334991 --- /dev/null +++ b/test/integration/test-apt-update-transactions @@ -0,0 +1,24 @@ +#!/bin/sh +set -e + +TESTDIR=$(readlink -f $(dirname $0)) +. $TESTDIR/framework + +setupenvironment +configarchitecture "i386" + +insertpackage 'unstable' 'foo' 'all' '1.0' + +setupaptarchive --no-update +changetowebserver + +# break package file +cat > aptarchive/dists/unstable/main/binary-i386/Packages <<EOF +Package: bar +EOF +compressfile aptarchive/dists/unstable/main/binary-i386/Packages '+1hour' + +# ensure that a update will only succeed entirely or not at all +testfailure aptget update +testequal "partial" ls rootdir/var/lib/apt/lists + |