5 t-tstunt-parsechangelog
16 t-dgit --no-rm-on-error clone $p
18 # And now we make an update using the same orig tarball, and
19 # check that the orig import is stable.
23 git branch first-import
25 m='Commit for import check'
26 echo "$m" >>import-check
29 dch -v $v -D unstable -m "$m"
31 git add import-check debian/changelog
34 t-dgit -wgf quilt-fixup
35 t-dgit -wgf build-source
37 # The resulting .dsc does not have a Dgit line (because dgit push
38 # puts that in). So we just shove it in the archive now
40 ln ../${p}_${v}.* $tmp/mirror/pool/main/
45 git branch first-2nd-import remotes/dgit/dgit/sid
49 git update-ref refs/remotes/dgit/dgit/sid first-import
54 t-ref-same refs/remotes/dgit/dgit/sid
55 t-ref-same refs/heads/first-2nd-import
57 for orig in ../${p}_${v%-*}.orig*.tar.*; do
58 tar -atf $orig | LC_ALL=C sort >../files.o
59 pfx=$(perl <../files.o -ne '
61 m#^([^/]+/)# or exit 0;
69 $_="" if m/^$/ || m#/$#;
72 pat="^Import ${orig//./\\.}\$"
74 for start in first-import first-2nd-import; do
75 git log --pretty='tformat:%H' --grep "$pat" $start \
77 test $(wc -l <../t.imp) = 1
79 t-ref-same-val "$orig $start" "$imp"
81 git ls-tree -r --name-only "$t_ref_val:" \
88 chk() { chk1 "$@"; chk2; }
93 # 3.0 (quilt), multiple patches, multiple origs
96 # 3.0 (quilt), single-debian-patch, one orig
97 chk sunxi-tools 1.2-2.~~dgittest
102 cd $tmp/mirror/pool/main
103 dpkg-source -x ${p}_${v}.dsc td
104 orig=${p}_${v%-*}.orig.tar.gz
122 # 3.0 (quilt), multiple patches, tarbomb orig
123 mangle1 example 1.0-1
127 # 3.0 (quilt), multiple patches, tarbomb orig with dot
128 mangle1 example 1.0-1