chiark / gitweb /
changelog: start 9.14
[dgit.git] / tests / lib-restricts
1 #!/bin/sh
2
3 t-restriction-x-dgit-intree-only () {
4         if [ "x$DGIT_TEST_INTREE" != x ]; then return 0; fi
5         echo 'running installed package version'
6         return 1
7 }
8
9 t-restriction-x-dgit-out-of-tree-only () {
10         if [ "x$DGIT_TEST_INTREE" = x ]; then return 0; fi
11         echo 'running out of development tree'
12         return 1
13 }
14
15 t-restriction-x-dgit-git-only () {
16         if test -d .git; then return 0; fi
17         echo 'not running out of git clone'
18         return 1
19 }
20
21 t-restriction-x-dgit-schroot-build () {
22         # if DGIT_SCHROOT_CHROOT is set, user wants not to skip this test
23         if [ "x${DGIT_SCHROOT_CHROOT}" != x ]; then return 0; fi
24         schroot -l -c build 2>&1 >/dev/null || return 1
25 }
26
27 t-restriction-x-dgit-unfinished () {
28         echo 'unfinished test, or unfinished feature'
29         return 1
30 }
31
32 t-restriction-hint-testsuite-triggers () {
33         :
34 }