From: David Bremner <david@tethera.net>
To: Justus Winter <justus@sequoia-pgp.org>,
Floris Bruynooghe <flub@devork.be>,
David Bremner <david@tethera.net>,
"W. Trevor King" <wking@tremily.us>
Cc: notmuch@notmuchmail.org
Subject: [PATCH 1/3] configure: check for pytest binary
Date: Sun, 25 Mar 2018 14:40:32 -0300 [thread overview]
Message-ID: <20180325174034.17912-2-david@tethera.net> (raw)
In-Reply-To: <20180325174034.17912-1-david@tethera.net>
This is to support future use of pytest in the test suite
---
configure | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/configure b/configure
index b177b141..ab45878d 100755
--- a/configure
+++ b/configure
@@ -62,6 +62,7 @@ CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
LDFLAGS=${LDFLAGS:-}
XAPIAN_CONFIG=${XAPIAN_CONFIG:-}
PYTHON=${PYTHON:-}
+PYTEST=${PYTEST:-}
# We don't allow the EMACS or GZIP Makefile variables inherit values
# from the environment as we do with CC and CXX above. The reason is
@@ -118,6 +119,8 @@ Other environment variables can be used to control configure itself,
library. [$XAPIAN_CONFIG]
PYTHON Name of python command to use in
configure and the test suite.
+ PYTEST Name of pytest command to use in
+ the test suite.
Additionally, various options can be specified on the configure
command line.
@@ -571,6 +574,24 @@ if [ $have_python -eq 0 ]; then
errors=$((errors + 1))
fi
+pytest=""
+if [ $have_python -eq 1 ]; then
+ printf "Checking for pytest... "
+ have_pytest=0
+
+ for name in ${PYTEST} pytest-3 pytest pytest-2; do
+ if command -v $name > /dev/null; then
+ have_pytest=1
+ pytest=$name
+ printf "Yes (%s).\n" $pytest
+ break
+ fi
+ done
+ if [ $have_pytest -eq 0 ]; then
+ printf "No (some tests may be skipped).\n"
+ fi
+fi
+
printf "Checking for valgrind development files... "
if pkg-config --exists valgrind; then
printf "Yes.\n"
@@ -1234,6 +1255,9 @@ NOTMUCH_HAVE_MAN=$((have_sphinx))
# Name of python interpreter
NOTMUCH_PYTHON=${python}
+# Name of pytest runner
+NOTMUCH_PYTEST=${pytest}
+
# Are the ruby development files (and ruby) available? If not skip
# building/testing ruby bindings.
NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev}
--
2.16.2
next prev parent reply other threads:[~2018-03-25 18:22 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 9:41 Crash with Python bindings Konrad Hinsen
2016-01-12 13:11 ` David Bremner
2016-01-12 14:21 ` Konrad Hinsen
2016-01-12 15:26 ` David Bremner
2016-01-12 19:03 ` David Bremner
2016-01-12 19:13 ` Binding access to ~/.notmuch-config (was: Crash with Python bindings) W. Trevor King
2016-01-13 11:25 ` Binding access to ~/.notmuch-config Konrad Hinsen
2016-01-13 12:25 ` David Bremner
2016-01-13 17:23 ` W. Trevor King
[not found] ` <20160112102329.4269.20741@thinkbox.jade-hamburg.de>
2016-01-12 14:23 ` Crash with Python bindings Konrad Hinsen
2016-01-12 18:51 ` W. Trevor King
2018-03-16 11:59 ` David Bremner
2018-03-16 12:12 ` Justus Winter
2018-03-16 18:30 ` Floris Bruynooghe
2018-03-16 22:40 ` Daniel Kahn Gillmor
2018-03-18 8:01 ` Floris Bruynooghe
2018-03-21 10:16 ` New Python bindings (was: Crash with Python bindings) Justus Winter
2018-03-25 17:40 ` pytest integration for the notmuch test suite David Bremner
2018-03-25 17:40 ` David Bremner [this message]
2018-03-26 20:55 ` [PATCH 1/3] configure: check for pytest binary Floris Bruynooghe
2018-03-25 17:40 ` [PATCH 2/3] test: add new test_expect_pytest_success David Bremner
2018-03-25 17:40 ` [PATCH 3/3] test: add example test using pytest David Bremner
2018-03-25 19:14 ` pytest integration for the notmuch test suite Tomi Ollila
2018-03-26 11:31 ` David Bremner
2018-03-26 21:01 ` Floris Bruynooghe
2018-03-26 21:25 ` David Bremner
2018-03-26 20:47 ` New Python bindings (was: Crash with Python bindings) Floris Bruynooghe
2018-03-27 22:29 ` New Python bindings Justus Winter
2018-03-28 22:07 ` Floris Bruynooghe
2018-03-28 7:20 ` New Python bindings (was: Crash with Python bindings) Brian May
2018-03-28 13:42 ` David Bremner
2018-03-28 22:15 ` Floris Bruynooghe
2018-03-28 22:37 ` Brian May
2018-03-28 23:13 ` David Bremner
2018-04-04 22:37 ` Brian May
2018-04-05 1:09 ` Pypi David Bremner
2018-03-28 22:10 ` New Python bindings (was: Crash with Python bindings) Floris Bruynooghe
2016-01-12 18:08 ` Crash with Python bindings W. Trevor King
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=20180325174034.17912-2-david@tethera.net \
--to=david@tethera.net \
--cc=flub@devork.be \
--cc=justus@sequoia-pgp.org \
--cc=notmuch@notmuchmail.org \
--cc=wking@tremily.us \
/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).