chiark / gitweb /
git-debrebase: merge: test suite: Check wreckage saving
[dgit.git] / tests / tests / gitconfig
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-tstunt-parsechangelog
6
7 t-prep-newpackage example 1.0
8
9 cd $p
10
11 t-dgit clean | tee ../t.output
12 grep 'EXAMPLE RULES TARGET clean' ../t.output
13
14 t-git-config dgit.default.clean-mode git
15
16 t-dgit clean | tee ../t.output
17
18 set +e
19 grep 'EXAMPLE RULES TARGET clean' ../t.output
20 rc=$?
21 set -e
22 test $rc = 1
23
24 git config dgit.default.clean-mode dpkg-source-d
25
26 t-dgit clean | tee ../t.output
27 grep 'EXAMPLE RULES TARGET clean' ../t.output
28
29 t-git-config dgit.default.opts-dpkg-buildpackage --dgit-fail-global
30 git config --add dgit.default.opts-dpkg-buildpackage --dgit-fail-foo
31 git config --add dgit.default.opts-dpkg-buildpackage --dgit-fail-bar
32
33 t-expect-fail '--dgit-fail-global --dgit-fail-foo --dgit-fail-bar' \
34 t-dgit clean
35
36 t-dgit -cdgit.default.clean-mode=none clean
37
38 t-ok