From c73e1b6f97a9d0184e9de345f4450963a0842e25 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Mon, 18 Nov 2024 10:50:43 -0500 Subject: [PATCH] Make test-rem test itself to ensure it always invokes remind as ../src/remind. --- tests/test-rem | 10 ++++++++++ 1 file changed, 10 insertions(+) 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