summaryrefslogtreecommitdiff
path: root/tests/tests/version-opt
blob: 2933912d928eda8feba9f78fcb3d91d0d82bf511 (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
#!/bin/bash
set -e
. tests/lib

# NOT t-tstunt-parsechangelog
# because that doesn't honour the perl option corresponding to -v

t-debpolicy
t-prep-newpackage example 1.0

cd $p
revision=1
git tag start
t-dgit setup-mergechangelogs

t-dgit build-source
t-dgit push --new --overwrite

t-archive-process-incoming sid

for v in 1.1 1.2; do
	dch -v $v -D unstable -m "Update to version $v"

	git add debian/changelog
	git commit -m "Commit changelog for $v"

	t-dgit build-source
done

fgrep 'Update to version 1.1' ../${p}_${v}_source.changes

t-ok