X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.sh;h=9f0d7e02a3d940454edf1e5b71888e6a4e6815ed;hp=84051bc90ac09ce74dd788918a05181d693f8bef;hb=e1bd4f23634a88a49256c74e0780dd1dcdb852cd;hpb=fd36ae9f514520e85d9e43d4aa08263b3a5a8d3e diff --git a/test/test-lib.sh b/test/test-lib.sh index 84051bc9..9f0d7e02 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -26,6 +26,13 @@ fi # Make sure echo builtin does not expand backslash-escape sequences by default. shopt -u xpg_echo +# It appears that people try to run tests without building... +if ! test -x ../notmuch +then + echo >&2 'You do not seem to have built notmuch yet.' + exit 1 +fi + this_test=${0##*/} this_test=${this_test%.sh} this_test_bare=${this_test#T[0-9][0-9][0-9]-}