Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
18739831
Commit
18739831
authored
Oct 11, 2013
by
Nick Mathewson
🐻
Browse files
When python is available, run the commandline unit tests from "make check"
parent
0546edde
Changes
3
Hide whitespace changes
Inline
Side-by-side
changes/python-tests
0 → 100644
View file @
18739831
o Minor features:
- "make check" now runs extra tests beyond the unit test scripts if
Python is installed.
configure.ac
View file @
18739831
...
...
@@ -183,6 +183,13 @@ AM_CONDITIONAL(NAT_PMP, test x$natpmp = xtrue)
AM_CONDITIONAL(MINIUPNPC, test x$upnp = xtrue)
AM_PROG_CC_C_O
AC_ARG_VAR(PYTHON)
AC_CHECK_PROGS(PYTHON, [python python2 python3])
if test "x$PYTHON" = "x"; then
AC_MSG_WARN([Python unavailable; some tests will not be run.])
fi
AM_CONDITIONAL(USEPYTHON, [test "x$PYTHON" != "x"])
ifdef([AC_C_FLEXIBLE_ARRAY_MEMBER], [
AC_C_FLEXIBLE_ARRAY_MEMBER
], [
...
...
src/test/include.am
View file @
18739831
TESTS+= src/test/test
TESTS
+= src/test/test
noinst_PROGRAMS+= src/test/bench
if UNITTESTS_ENABLED
...
...
@@ -77,3 +77,8 @@ src_test_test_ntor_cl_AM_CPPFLAGS = \
endif
check-local:
if USEPYTHON
$(PYTHON) src/test/test_cmdline_args.py
endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment