From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 41C376DE0EED for ; Mon, 4 Nov 2019 08:18:44 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.407 X-Spam-Level: X-Spam-Status: No, score=0.407 tagged_above=-999 required=5 tests=[AWL=-0.245, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aYYNTFWvjfUl for ; Mon, 4 Nov 2019 08:18:42 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 9B77B6DE0EEA for ; Mon, 4 Nov 2019 08:18:42 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 7EE1D100199; Mon, 4 Nov 2019 18:18:37 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH 4/5] tests: run python-cffi tests In-Reply-To: <20191104013927.17037-5-david@tethera.net> References: <20191104013927.17037-1-david@tethera.net> <20191104013927.17037-5-david@tethera.net> User-Agent: Notmuch/0.28.3+84~g41389bb (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2019 16:18:44 -0000 On Sun, Nov 03 2019, David Bremner wrote: > The entire python-cffi test suite is considered as a single test at > the level of the notmuch test suite. This might or might not be ideal, > but it gets them run. IMO this is good enough approach -- provided that pytest is prereq for this test to be run =D (i.e. one may have cffi but decided not to install pytest) Tomi > --- > test/T391-python-cffi.sh | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > create mode 100755 test/T391-python-cffi.sh > > diff --git a/test/T391-python-cffi.sh b/test/T391-python-cffi.sh > new file mode 100755 > index 00000000..a03f9e0e > --- /dev/null > +++ b/test/T391-python-cffi.sh > @@ -0,0 +1,12 @@ > +#!/usr/bin/env bash > +test_description="python bindings (pytest)" > +. $(dirname "$0")/test-lib.sh || exit 1 > + > +if [ $NOTMUCH_HAVE_PYTHON_CFFI -eq 0 ]; then > + test_done > +fi > + > + > +test_begin_subtest "python cffi tests" > +test_expect_success "(cd $NOTMUCH_SRCDIR/bindings/python-cffi/build/stage && ${NOTMUCH_PYTHON} -m pytest --log-file=$TMP_DIRECTORY/test.output)" > +test_done > -- > 2.24.0.rc1 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch