chiark / gitweb /
93c6a452d7a3d0fa174f0d8ecdea77649780cd22
[dgit.git] / tests / tests / version-opt
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 # NOT t-tstunt-parsechangelog
6 # because that doesn't honour the perl option corresponding to -v
7
8 t-debpolicy
9 t-prep-newpackage example 1.0
10
11 cd $p
12 revision=1
13 git tag start
14 t-dgit setup-mergechangelogs
15
16 t-dgit build-source
17 t-dgit push --new
18
19 t-archive-process-incoming sid
20
21 for v in 1.1 1.2; do
22         dch -v $v -D unstable -m "Update to version $v"
23
24         git add debian/changelog
25         git commit -m "Commit changelog for $v"
26
27         t-dgit build-source
28 done
29
30 fgrep 'Update to version 1.1' ../${p}_${v}_source.changes
31
32 echo ok.