X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Flib-restricts;fp=tests%2Flib-restricts;h=aca66926d8c377b8df97a3d83a88030f3779ebf3;hb=ada48ca013e77d7e821d326db40bc1a59ba639ea;hp=0000000000000000000000000000000000000000;hpb=417bcf4ea06b9e181c39734e121d9a32cf7cbb21;p=dgit.git diff --git a/tests/lib-restricts b/tests/lib-restricts new file mode 100644 index 00000000..aca66926 --- /dev/null +++ b/tests/lib-restricts @@ -0,0 +1,13 @@ +#!/bin/sh + +t-restriction-x-dgit-intree-only () { + if [ "x$DGIT_TEST_INTREE" != x ]; then return 0; fi + echo 'running installed package version' + 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 +}