chiark / gitweb /
test suite: Provide a gbp.conf which sets --export-dir to $bpd
[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-git-only () {
10         if test -d .git; then return 0; fi
11         echo 'not running out of git clone'
12         return 1
13 }
14
15 t-restriction-x-dgit-schroot-build () {
16         # if DGIT_SCHROOT_CHROOT is set, user wants not to skip this test
17         if [ "x${DGIT_SCHROOT_CHROOT}" != x ]; then return 0; fi
18         schroot -l -c build 2>&1 >/dev/null || return 1
19 }
20
21 t-restriction-x-dgit-unfinished () {
22         echo 'unfinished test, or unfinished feature'
23         return 1
24 }
25
26 t-restriction-hint-testsuite-triggers () {
27         :
28 }