diff --git a/tests/test-rem b/tests/test-rem index 013262dc..3390e0c7 100644 --- a/tests/test-rem +++ b/tests/test-rem @@ -27,6 +27,16 @@ if test `id -u` = 0 ; then exit 1 fi +# Make sure all invocations of "remind" are ../src/remind! +grep remind $0 | grep -v -F '../src/remind' > /dev/null 2>&1 +if test "$?" = 0 ; then + echo "*** test-rem seems to invoke remind without specifying it as ../src/remind" + echo "*** BAILING OUT" + exit 1 +fi + + + # Set a known timezone so moon phases show up in predictable places TZ=UTC export TZ