2 test_description="python bindings (pytest)"
3 . $(dirname "$0")/test-lib.sh || exit 1
5 if [ -n "${NOTMUCH_TEST_INSTALLED-}" ]; then
9 if [ "${NOTMUCH_HAVE_PYTHON3_CFFI-0}" = "0" -o "${NOTMUCH_HAVE_PYTHON3_PYTEST-0}" = "0" ]; then
13 test_begin_subtest "python cffi tests (NOTMUCH_CONFIG set)"
14 pytest_dir=$NOTMUCH_BUILDDIR/bindings/python-cffi/build/stage
15 printf "[pytest]\nminversion = 3.0\naddopts = -ra\n" > $pytest_dir/pytest.ini
16 test_expect_success "(cd $pytest_dir && ${NOTMUCH_PYTHON} -m pytest --verbose --log-file=$TMP_DIRECTORY/test.output)"
18 test_begin_subtest "python cffi tests (NOTMUCH_CONFIG unset)"
19 pytest_dir=$NOTMUCH_BUILDDIR/bindings/python-cffi/build/stage
20 printf "[pytest]\nminversion = 3.0\naddopts = -ra\n" > $pytest_dir/pytest.ini
22 test_expect_success "(cd $pytest_dir && ${NOTMUCH_PYTHON} -m pytest --verbose --log-file=$TMP_DIRECTORY/test.output)"