summaryrefslogtreecommitdiff
path: root/tests/tests/orig-include-exclude
blob: 12478f3de555ece532d60e1a29a3b9694a2cffb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
set -e
. tests/lib

t-tstunt-parsechangelog

t-archive example 1.0-1
t-git-none

t-dgit clone $p

for o in orig orig-docs; do
	cp ${p}_{1.0,1.1}.${o}.tar.gz
done

cd $p

v=1.0-2
t-commit $v $v
t-dgit --ch:-sa build

grep orig ../${p}_${v}_*.changes

t-dgit --ch:-sa push

# check that dgit stripped out the orig update
find $tmp/mirror -name '*orig*' -ls >../before
t-archive-process-incoming sid
find $tmp/mirror -name '*orig*' -ls >../after
diff -u ../before ../after

t-commit 'Some update' 1.1-1.2
t-dgit --ch:-sd build
t-dgit --ch:-sd push

t-archive-process-incoming sid

cd ..
mkdir get
cd get

t-dgit clone $p
# ^ checks that all the origs are there, ie that dgit added the origs

echo done.