From ada48ca013e77d7e821d326db40bc1a59ba639ea Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 25 Jul 2015 17:36:18 +0100 Subject: Test suite: Introduce tests/list-tests --- tests/lib-restricts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/lib-restricts (limited to 'tests/lib-restricts') 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 +} -- cgit v1.2.3