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 58E3A6DE0F1C for ; Sun, 3 Nov 2019 17:58:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.059 X-Spam-Level: X-Spam-Status: No, score=-0.059 tagged_above=-999 required=5 tests=[AWL=-0.058, SPF_PASS=-0.001] 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 72NHrnIPK2UG for ; Sun, 3 Nov 2019 17:58:19 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id CB4BF6DE0EE7 for ; Sun, 3 Nov 2019 17:58:14 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1iRRRa-0003wY-2C; Sun, 03 Nov 2019 20:46:10 -0500 Received: (nullmailer pid 23214 invoked by uid 1000); Mon, 04 Nov 2019 01:39:35 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 4/5] tests: run python-cffi tests Date: Sun, 3 Nov 2019 21:39:26 -0400 Message-Id: <20191104013927.17037-5-david@tethera.net> X-Mailer: git-send-email 2.24.0.rc1 In-Reply-To: <20191104013927.17037-1-david@tethera.net> References: <20191104013927.17037-1-david@tethera.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 01:58:20 -0000 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. --- 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