chiark / gitweb /
Test suite: orig-include-exclude: Tests orig auto-inclusion/exclusion
[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 v=1.0-2
19 t-commit $v $v
20 t-dgit --ch:-sa build
21
22 grep orig ../${p}_${v}_*.changes
23
24 t-dgit --ch:-sa push
25
26 # check that dgit stripped out the orig update
27 find $tmp/mirror -name '*orig*' -ls >../before
28 t-archive-process-incoming sid
29 find $tmp/mirror -name '*orig*' -ls >../after
30 diff -u ../before ../after
31
32 t-commit 'Some update' 1.1-1.2
33 t-dgit --ch:-sd build
34 t-dgit --ch:-sd push
35
36 t-archive-process-incoming sid
37
38 cd ..
39 mkdir get
40 cd get
41
42 t-dgit clone $p
43 # ^ checks that all the origs are there, ie that dgit added the origs
44
45 echo done.