test: check for debug symbols in notmuch
authorDavid Bremner <david@tethera.net>
Fri, 3 Oct 2014 20:22:09 +0000 (22:22 +0200)
committerDavid Bremner <david@tethera.net>
Sun, 5 Oct 2014 05:24:56 +0000 (07:24 +0200)
In the future, tests may rely on debug symbols being present in
notmuch, so we plan to switch the default flags.

The main purpose of this test is to help explain the perhaps
mysterious failures of other tests which rely on symbols being
present.

test/T000-basic.sh

index ebbb6d2ecd995a2447609e119c220ca135f00d8b..bf08f3e66e84f4ce1d392c254c4b4d96546bd291 100755 (executable)
@@ -91,4 +91,9 @@ 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'
+test_subtest_known_broken
+readelf --sections $(which notmuch) | grep \.debug
+test_expect_equal 0 $?
+
 test_done