chiark / gitweb /
test suite: baredebian-*: Drop explicit list of implied deps
[dgit.git] / tests / tests / baredebian-multitar
1 #!/bin/bash
2 set -e
3 . tests/lib
4 . $troot/lib-baredebian
5
6 t-dependencies quilt
7
8 t-setup-import baredebian
9 t-tstunt-parsechangelog
10
11 cd $p
12 baredebian-test-vars
13 baredebian-tarball-mode
14
15 rm -f ../example_1.0.orig.tar.*
16 cp $troot/pkg-srcs/${p}_${uv}.orig*.tar.* ..
17 xorigcomps=docs
18
19 git tag -d $uvtag
20
21 baredebian-test-core
22
23 combine=$(
24         git log --pretty=format:%H \
25         --grep "Combine orig tarballs for example $uv" split.p
26 )
27
28 parentnum=0
29 for comp in '' $xorigcomps; do
30         parentnum=$(( $parentnum + 1 ))
31         fn=${origbase}${comp:+-}${comp}.tar.gz
32
33         git checkout --orphan imp$parentnum
34         git rm -rf .
35         tar --strip-components=1 -axf ../$fn
36         git add -Af .
37
38         git commit -m P$parentnum
39         git diff --stat --exit-code $combine^$parentnum
40
41         count=$(git log $combine^$parentnum | grep -Fc $fn)
42         [ $count = 2 ]
43 done
44
45 t-ok