chiark / gitweb /
test suite: protocol-compat: New test (wip)
[dgit.git] / tests / tests / protocol-compat
1 #!/bin/bash
2 set -e
3 . tests/lib
4 . $troot/lib-reprepro
5
6 t-setup-import examplegit
7 t-tstunt-parsechangelog
8
9 prep () {
10         dscf=$tmp/mirror/pool/main/example_$v.dsc
11 }
12
13 check () {
14         t-archive-none $p
15         t-archive-query $suite
16
17         t-dgit clone $p stable $p.cloned
18         cd $p.cloned
19         t-ref-head
20
21         t-dgit import-dsc $dscf +imported
22         t-ref-same refs/heads/imported
23         cd ..
24 }
25
26 : ---------- older ----------
27
28 suite=stable
29 v=1.2
30
31 prep
32
33 perl -i -pe 's/^(Dgit: \w+).*/$1/' $dscf
34
35 dgit_config_debian_alias='-cdgit-distro.debian.alias-canon=test-dummy'
36 # old Dgit fields are supposed to mean Debian
37
38 check
39
40 #t-ok