X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Finarchivecopy;h=b34ba333fbae71d8282e5cb5c697a65f08c7706a;hb=3cc7776cbcc8f2fd0921f823ff4fddb186704bb9;hp=b6cbb129a93a5ae5603aa1718013a2ca756143f2;hpb=9eb48d0627f84bb57e9a81bf93bde98e2fa3fbf5;p=dgit.git diff --git a/tests/tests/inarchivecopy b/tests/tests/inarchivecopy index b6cbb129..b34ba333 100755 --- a/tests/tests/inarchivecopy +++ b/tests/tests/inarchivecopy @@ -14,7 +14,7 @@ t-inarchive-copy () { local from=${2:-sid} local to=${3:-stable} egrep "^${vm//./\\.}" aq/package.$from.$p >>aq/package.$to.$p - t-archive-updated $to $p + t-aq-archive-updated $to $p } copy-check-good () { @@ -49,13 +49,31 @@ copy-check () { local cloned=$(t-sametree-parent HEAD) cd .. + rm -rf example.initd + mkdir example.initd + cd example.initd + git init + t-refs-same-start + t-dgit -p $p fetch $tosuite + git reset --hard refs/remotes/dgit/dgit/$tosuite + copy-check-good + local initd=$(t-sametree-parent HEAD) + cd .. + t-refs-same-start t-ref-same-val fetched $fetched t-ref-same-val cloned $cloned + t-ref-same-val initd $initd } copy-check 2.0 copy-check 2.1 +cd $p +git checkout -b dgit/testing $(v=1.1 t-v-tag) +cd .. + +copy-check 2.1 testing + echo ok.