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