lunaryorn/pyudev — Issue #44: Test libudev signatures against libudev header
Author: lunaryorn
Created: 2012-03-09 10:42:59+00:00
State: open
Labels: testsuite

Verify the signatures of wrapped libudev functions in `_libudev.py` against the real signatures as declared in `libudev.h`.

- Implement a `libudev` plugin that parses `libudev.h` with `gccxml`, extracts the list of available `libudev` functions and their signatures, wraps this data into a list of `Function` tuples and attaches this to `pytest.config.libudev`.
- Provide `libudev` and `libudev_function` funcargs that provide the whole list of functions, or each libudev function respectively.

If `gccxml` is not available, attach an empty list to `pytest.config.libudev`, and make `libudev` and `libudev_function` funcargs skip the test. This will also fix the remaining part of #43.