diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-09-16 15:31:50 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-09-16 15:31:50 -0700 |
commit | b773eefd1773bc2195f87f03721c89f7efb498f3 (patch) | |
tree | b5e6e444b9f0786132a8f798bd6141878521cf7d /tests/tests/clone-skew | |
parent | 1045e26443f21378d6fb98a46ace40c0d883cea6 (diff) | |
parent | 896c94474922bc2698474c5ba57321fa61504238 (diff) |
Merge tag 'debian/9.9' into buster-bpo
dgit release 9.9 for unstable (sid) [dgit]
[dgit distro=debian no-split]
# gpg: Signature made Sat 14 Sep 2019 01:35:57 PM MST
# gpg: using RSA key 559AE46C2D6B6D3265E7CBA1E3E3392348B50D39
# gpg: Can't check signature: No public key
Diffstat (limited to 'tests/tests/clone-skew')
-rwxr-xr-x | tests/tests/clone-skew | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/tests/clone-skew b/tests/tests/clone-skew new file mode 100755 index 0000000..dd51acd --- /dev/null +++ b/tests/tests/clone-skew @@ -0,0 +1,35 @@ +#!/bin/bash +set -e +. tests/lib + +t-dependencies libhttp-server-simple-static-perl + +$troot/http-static-server >$tmp/must-clean/mirror.port $tmp/mirror +read <$tmp/must-clean/mirror.port mirror_port + +t-git-config --global dgit-distro.test-dummy.mirror \ + http://127.0.0.1:$mirror_port/ + +t_archive_ln_s=cp + +t-archive example 1.0-1 +t-git-none + +perl -i -ne ' + print or die $!; + s/1.0-1/1.0-1+0.1/g; + s/ \w/ sprintf " %x", $& ^ 1 /e; + print or die $!; +' $tmp/aq/package.sid.$p +t-aq-archive-updated sid $p + +LC_MESSAGES=C \ +t-dgit clone $p 2>&1 |tee got.message + +grep 'Warning: archive skew detected.' got.message +egrep 'We were able to obtain only *1.0-1$' got.message + +cd $p +t-cloned-fetched-good + +t-ok |