mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-27 03:41:41 +01:00
85adc756c9
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.
14 lines
503 B
Bash
Executable file
14 lines
503 B
Bash
Executable file
#!/usr/bin/env bash
|
|
test_description="python bindings (pytest)"
|
|
. $(dirname "$0")/test-lib.sh || exit 1
|
|
|
|
if [ $NOTMUCH_HAVE_PYTHON3_CFFI -eq 0 -o $NOTMUCH_HAVE_PYTHON3_PYTEST -eq 0 ]; then
|
|
test_done
|
|
fi
|
|
|
|
|
|
test_begin_subtest "python cffi tests"
|
|
pytest_dir=$NOTMUCH_SRCDIR/bindings/python-cffi/build/stage
|
|
printf "[pytest]\nminversion = 3.0\naddopts = -ra\n" > $pytest_dir/pytest.ini
|
|
test_expect_success "(cd $pytest_dir && ${NOTMUCH_PYTHON} -m pytest --log-file=$TMP_DIRECTORY/test.output)"
|
|
test_done
|