diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-25 17:36:18 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-25 18:32:29 +0100 |
commit | ada48ca013e77d7e821d326db40bc1a59ba639ea (patch) | |
tree | 795d0bcac6795fcf7168e1e60a88186ddba383f4 /tests/lib-restricts | |
parent | 417bcf4ea06b9e181c39734e121d9a32cf7cbb21 (diff) |
Test suite: Introduce tests/list-tests
Diffstat (limited to 'tests/lib-restricts')
-rw-r--r-- | tests/lib-restricts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/lib-restricts b/tests/lib-restricts new file mode 100644 index 0000000..aca6692 --- /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 +} |