This is version 2 of the Python bindings patch, changes include feedback
from Dan and David - a big thank you to both of you for your review and
help - and Python versions of all the existing regression tests.

I'm reasonably happy with this version, so if I don't hear any objections
or further comments by the start of next week I'm going to go ahead and
commit these patches to the repository.

---

Paul Moore (3):
      api: add Python bindings via Cython
      tests: add basic support for python tests
      tests: add python versions of the existing tests


 configure                         |   25 ++
 macros.mk                         |   32 ++
 src/Makefile                      |   26 ++
 src/python/.gitignore             |    2 
 src/python/Makefile               |   54 ++++
 src/python/libseccomp.pxd         |   93 ++++++
 src/python/seccomp.pyx            |  546 +++++++++++++++++++++++++++++++++++++
 src/python/setup.py               |   45 +++
 tests/01-allow.py                 |   39 +++
 tests/02-basic.py                 |   43 +++
 tests/03-basic-chains.py          |   44 +++
 tests/04-multilevel-chains.py     |   55 ++++
 tests/05-long-jumps.py            |   55 ++++
 tests/06-actions.py               |   44 +++
 tests/07-db-bug-looping.py        |   44 +++
 tests/08-subtree-checks.py        |  121 ++++++++
 tests/09-syscall-priority-pre.py  |   46 +++
 tests/10-syscall-priority-post.py |   46 +++
 tests/11-basic-errors.py          |   85 ++++++
 tests/12-basic-masked-ops.c       |    3 
 tests/12-basic-masked-ops.py      |   60 ++++
 tests/13-attrs.py                 |   48 +++
 tests/14-reset.py                 |   42 +++
 tests/15-resolver.py              |   44 +++
 tests/16-arch-basic.py            |   50 +++
 tests/17-arch-merge.py            |   54 ++++
 tests/regression                  |   42 ++-
 tests/util.c                      |    4 
 tests/util.py                     |   56 ++++
 29 files changed, 1828 insertions(+), 20 deletions(-)
 create mode 100644 src/python/.gitignore
 create mode 100644 src/python/Makefile
 create mode 100644 src/python/libseccomp.pxd
 create mode 100644 src/python/seccomp.pyx
 create mode 100644 src/python/setup.py
 create mode 100755 tests/01-allow.py
 create mode 100755 tests/02-basic.py
 create mode 100755 tests/03-basic-chains.py
 create mode 100755 tests/04-multilevel-chains.py
 create mode 100755 tests/05-long-jumps.py
 create mode 100755 tests/06-actions.py
 create mode 100755 tests/07-db-bug-looping.py
 create mode 100755 tests/08-subtree-checks.py
 create mode 100755 tests/09-syscall-priority-pre.py
 create mode 100755 tests/10-syscall-priority-post.py
 create mode 100755 tests/11-basic-errors.py
 create mode 100755 tests/12-basic-masked-ops.py
 create mode 100755 tests/13-attrs.py
 create mode 100755 tests/14-reset.py
 create mode 100755 tests/15-resolver.py
 create mode 100755 tests/16-arch-basic.py
 create mode 100755 tests/17-arch-merge.py
 create mode 100644 tests/util.py

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to