chiark / gitweb /
Test suite: orig-include-exclude: Refactor: introduce test-push-[12]
[dgit.git] / tests / tests / orig-include-exclude
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-tstunt-parsechangelog
6
7 t-archive example 1.0-1
8 t-git-none
9
10 t-dgit clone $p
11
12 for o in orig orig-docs; do
13         cp ${p}_{1.0,1.1}.${o}.tar.gz
14 done
15
16 cd $p
17
18 test-push-1 () {
19         v=$1
20         ch=$2
21
22         t-commit $v $v
23         t-dgit $ch build
24 }
25
26 test-push-2 () {
27         t-dgit $ch push
28 }
29
30 test-push-1 1.0-2 --ch:-sa
31
32 grep orig ../${p}_${v}_*.changes
33
34 test-push-2
35
36 # check that dgit stripped out the orig update
37 find $tmp/mirror -name '*orig*' -ls >../before
38
39 t-archive-process-incoming sid
40
41 find $tmp/mirror -name '*orig*' -ls >../after
42 diff -u ../before ../after
43
44 test-push-1 1.1-1.2 --ch:-sd
45
46 test-push-2
47
48 t-archive-process-incoming sid
49
50 cd ..
51 mkdir get
52 cd get
53
54 t-dgit clone $p
55 # ^ checks that all the origs are there, ie that dgit added the origs
56
57 echo done.