]> git.notmuchmail.org Git - notmuch/blob - test/T391-python-cffi.sh
emacs: Use `cl-lib' instead of deprecated `cl'
[notmuch] / test / T391-python-cffi.sh
1 #!/usr/bin/env bash
2 test_description="python bindings (pytest)"
3 . $(dirname "$0")/test-lib.sh || exit 1
4
5 if [ $NOTMUCH_HAVE_PYTHON3_CFFI -eq 0 -o $NOTMUCH_HAVE_PYTHON3_PYTEST -eq 0 ]; then
6     test_done
7 fi
8
9
10 test_begin_subtest "python cffi tests"
11 pytest_dir=$NOTMUCH_SRCDIR/bindings/python-cffi/build/stage
12 printf "[pytest]\nminversion = 3.0\naddopts = -ra\n" > $pytest_dir/pytest.ini
13 test_expect_success "(cd $pytest_dir && ${NOTMUCH_PYTHON} -m pytest --log-file=$TMP_DIRECTORY/test.output)"
14 test_done