]> git.notmuchmail.org Git - notmuch/blobdiff - test/T000-basic.sh
test: make script exit (1) if it "fails" to source (.) a file
[notmuch] / test / T000-basic.sh
index ebbb6d2ecd995a2447609e119c220ca135f00d8b..d6811bd1075639d71986b283880d6bb40312a3b1 100755 (executable)
@@ -14,7 +14,7 @@ then
        exit 1
 fi
 
-. ./test-lib.sh
+. ./test-lib.sh || exit 1
 
 ################################################################
 # Test harness
@@ -91,4 +91,8 @@ 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 $(which notmuch) | grep \.debug
+test_expect_equal 0 $?
+
 test_done