chiark / gitweb /
changelog: start 9.14
[dgit.git] / tests / tests / tagupl-baredebian
1 #!/bin/bash
2 set -e
3 . tests/lib
4 . $troot/lib-baredebian
5
6 t-dependencies quilt git-debpush
7
8 t-debpolicy
9
10 t-setup-import baredebian
11
12 cd $p
13
14 baredebian-test-vars
15 t-tagupl-settings
16
17 baredebian-test-minimum
18 baredebian-test-core-prepush
19
20
21 sed -i '15icorruption' debian/patches/0002-Edit-the-.c-file.patch
22 git add debian/patches/0002-Edit-the-.c-file.patch
23 git commit -m"corrupt a quilt patch to test the patches-applicable check"
24
25 tagname=test-dummy/$v
26
27 t-expect-fail "'git apply' failed to apply patch 0002-Edit-the-.c-file.patch ('patches-applicable' check)" \
28 t-tagupl-test --baredebian
29
30 git reset --hard HEAD~1
31
32 t-tagupl-test --baredebian
33
34 git branch split.p dgit/dgit/sid # we didn't generate this here
35
36 baredebian-test-core-postpush
37
38 t-ok