X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT000-basic.sh;h=0a8d6cdf40fc3ecc83d05f5347cd73c67e62f5f8;hp=9c94b62c99df3d4e0cba2d74231e85a9d2355540;hb=14c60cf168ac3b0f277188c16e6012b7ebdadde7;hpb=a755c9d6a9099366cc82ba3a4bee8e6d2b83d529 diff --git a/test/T000-basic.sh b/test/T000-basic.sh index 9c94b62c..0a8d6cdf 100755 --- a/test/T000-basic.sh +++ b/test/T000-basic.sh @@ -14,7 +14,7 @@ then exit 1 fi -. ./test-lib.sh +. ./test-lib.sh || exit 1 ################################################################ # Test harness @@ -86,8 +86,13 @@ test_expect_success \ 'NOTMUCH_CONFIG is set and points to an existing file' \ 'test -f "${NOTMUCH_CONFIG}"' -test_expect_success \ - 'PATH is set to this repository' \ - 'test "`echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,'`" = "`dirname ${TEST_DIRECTORY}`"' +test_begin_subtest 'PATH is set to build directory' +test_expect_equal \ + "$(dirname ${TEST_DIRECTORY})" \ + "$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')" + +test_begin_subtest 'notmuch is compiled with debugging symbols' +readelf --sections $(command -v notmuch) | grep \.debug +test_expect_equal 0 $? test_done