[libcamera-devel] [RFC v3 5/5] py: Add cam.py

Tomi Valkeinen tomi.valkeinen at ideasonboard.com
Thu Dec 9 11:08:20 CET 2021


On 09/12/2021 12:03, Kieran Bingham wrote:

> I'd quite like to see something (anything?) that counts as a unittest
> integrated into /test/py/ that somehow validates the APIs that are
> created.
> 
> Even if it's only basic for now to construct a camera, or something, so
> that when built/enabled, the python code can be linked into the test
> framework with 'ninja -C build test'.

I've got this:

https://github.com/tomba/libcamera/blob/py/src/py/test/unittests.py

I probably could have added it in the series.

How do you test libcamera with unittests? With vimc?

  Tomi


More information about the libcamera-devel mailing list