mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
![]() This patch adds tests for the swig generated python library bindings that reuse the C language tests. Fitting it into autotools was a bit of a trick, and is likely pretty brittle, as before the test script runs, it needs to know the location of the built libapparmor.so library, the built _LibAppArmor.so library and the python wrapper bits (thankfully, the latter two are the same directory). It's also unclear how to get autotools to emit the output of the test_python.py script when building, rather than just summarizing it as one test run. Also note that test_python.py is doing a bit of magic to automatically generate test case methods based on the contents of the test_multi/ directory. This has the disadvantage of breaking tools like nosetests and other external tools that try to automatically detect testcases. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Tyler Hicks <tyhicks@canonical.com> |
||
---|---|---|
.. | ||
Makefile.am | ||
test_python.py.in |