test: check for debug symbols in notmuch

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.
This commit is contained in:
David Bremner 2014-10-03 22:22:09 +02:00
parent 7f2cb3be4e
commit 5916c4634c

View file

@ -91,4 +91,9 @@ test_expect_equal \
"$(dirname ${TEST_DIRECTORY})" \ "$(dirname ${TEST_DIRECTORY})" \
"$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')" "$(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 test_done