X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Flib-restricts;h=5d32288217f01ac41350422731093b1858d723fa;hb=05b0c33bc4b28f2b0e105c9d72dd861a233d0d6e;hp=aca66926d8c377b8df97a3d83a88030f3779ebf3;hpb=ada48ca013e77d7e821d326db40bc1a59ba639ea;p=dgit.git diff --git a/tests/lib-restricts b/tests/lib-restricts index aca66926..5d322882 100644 --- a/tests/lib-restricts +++ b/tests/lib-restricts @@ -6,8 +6,29 @@ t-restriction-x-dgit-intree-only () { return 1 } +t-restriction-x-dgit-out-of-tree-only () { + if [ "x$DGIT_TEST_INTREE" = x ]; then return 0; fi + echo 'running out of development tree' + return 1 +} + t-restriction-x-dgit-git-only () { if test -d .git; then return 0; fi echo 'not running out of git clone' return 1 } + +t-restriction-x-dgit-schroot-build () { + # if DGIT_SCHROOT_CHROOT is set, user wants not to skip this test + if [ "x${DGIT_SCHROOT_CHROOT}" != x ]; then return 0; fi + schroot -l -c build 2>&1 >/dev/null || return 1 +} + +t-restriction-x-dgit-unfinished () { + echo 'unfinished test, or unfinished feature' + return 1 +} + +t-restriction-hint-testsuite-triggers () { + : +}