unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: [PATCH 4/4] debian: add autopkgtests
Date: Wed,  4 Jan 2023 08:41:45 -0400	[thread overview]
Message-ID: <20230104124145.2882983-5-david@tethera.net> (raw)
In-Reply-To: <20230104124145.2882983-1-david@tethera.net>

We generate output to stderr for BROKEN tests, which are not failures,
so tell the test runner not to fail because of output on stderr.
---
 debian/tests/control | 13 +++++++++++++
 test/T800-asan.sh    |  8 ++++++--
 test/defaults.sh     |  2 +-
 3 files changed, 20 insertions(+), 3 deletions(-)
 create mode 100644 debian/tests/control

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 00000000..c8dc9ff7
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,13 @@
+Test-command: env NOTMUCH_TEST_INSTALLED=yes TERM=dumb ./test/notmuch-test
+Restrictions: allow-stderr
+Depends: @,
+ build-essential,
+ dtach,
+ emacs-nox,
+ gdb,
+ git,
+ gnupg,
+ gpgsm,
+ libtalloc-dev,
+ man,
+ xapian-tools
diff --git a/test/T800-asan.sh b/test/T800-asan.sh
index 1ddff0fe..658b88f3 100755
--- a/test/T800-asan.sh
+++ b/test/T800-asan.sh
@@ -2,17 +2,21 @@
 test_description='run code with ASAN enabled against the library'
 . $(dirname "$0")/test-lib.sh || exit 1
 
-if [ $NOTMUCH_HAVE_ASAN -ne 1 ]; then
+if [ "$NOTMUCH_HAVE_ASAN" -ne 1 ]; then
     printf "Skipping due to missing ASAN support\n"
     test_done
 fi
 
+if [ -n "$LD_PRELOAD" ]; then
+    printf "Skipping due to non-empty LD_PRELOAD\n"
+    test_done
+fi
+
 add_email_corpus
 
 TEST_CFLAGS="-fsanitize=address"
 
 test_begin_subtest "open and destroy"
-test_subtest_broken_for_installed
 test_C ${MAIL_DIR} ${NOTMUCH_CONFIG} <<EOF
 #include <notmuch.h>
 #include <stdio.h>
diff --git a/test/defaults.sh b/test/defaults.sh
index 6327e43b..ee4ded83 100644
--- a/test/defaults.sh
+++ b/test/defaults.sh
@@ -2,4 +2,4 @@
 NOTMUCH_PYTHON=${NOTMUCH_PYTHON-python3}
 NOTMUCH_HAVE_MAN=${NOTMUCH_HAVE_MAN-1}
 NOTMUCH_HAVE_SFSEXP=${NOTMUCH_HAVE_SFSEXP-1}
-NOTMUCH_HAVE_ASAN=${NOTMUCH_HAVE_ASAN-0}
+NOTMUCH_HAVE_ASAN=${NOTMUCH_HAVE_ASAN-1}
-- 
2.39.0

      parent reply	other threads:[~2023-01-04 12:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-04 12:41 Support testing notmuch as installed David Bremner
2023-01-04 12:41 ` [PATCH 1/4] test: mark some tests as broken when run as root David Bremner
2023-01-05 10:12   ` Tomi Ollila
2023-01-06  0:38     ` David Bremner
2023-01-04 12:41 ` [PATCH 2/4] test: check for empty/missing files in test_expect_equal_message_body David Bremner
2023-01-04 12:41 ` [PATCH 3/4] test: support testing notmuch as installed David Bremner
2023-01-04 12:41 ` David Bremner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230104124145.2882983-5-david@tethera.net \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).