[libcamera-devel,v1,0/4] test: Various unit test cleanups
mbox series

Message ID 20221222010132.22177-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • test: Various unit test cleanups
Related show

Message

Laurent Pinchart Dec. 22, 2022, 1:01 a.m. UTC
Hello,

This patch series addresses two issues with unit tests:

- The v4l2_compat test is skipped when ASan is enabled. This shrinks
  test coverage, and can be fixed without too much trouble (at least
  when compiling with gcc). This is addressed in patches 1/4 and 2/4.

- The Python bindings test fails wehn ASan is enabled. This can also be
  fixed when using gcc. This is addressed in patch 3/4, which depends on
  2/4.

- The ipu3 and rkisp1 tests are never run in practice. Patch 4/4 drops
  them now that we have a better tool to test pipeline handlers
  (lc-compliance).

With this series, I don't get any unit test failure in my compiler
matrix anymore, which should have been the case for a long time. If
anyone still experiences regular unit test failures, please report it.

Laurent Pinchart (4):
  test: v4l2_compat: Reduce indentation
  test: v4l2_compat: Enable test with ASan
  test: py: Fix test failure when ASan is enabled
  test: Drop pipeline test

 test/meson.build                              |  17 ++-
 test/pipeline/ipu3/ipu3_pipeline_test.cpp     | 126 ------------------
 test/pipeline/ipu3/meson.build                |  14 --
 test/pipeline/meson.build                     |   4 -
 test/pipeline/rkisp1/meson.build              |  14 --
 test/pipeline/rkisp1/rkisp1_pipeline_test.cpp | 115 ----------------
 test/py/meson.build                           |  17 ++-
 test/v4l2_compat/meson.build                  |  33 +++--
 test/v4l2_compat/v4l2_compat_test.py          |  18 ++-
 9 files changed, 66 insertions(+), 292 deletions(-)
 delete mode 100644 test/pipeline/ipu3/ipu3_pipeline_test.cpp
 delete mode 100644 test/pipeline/ipu3/meson.build
 delete mode 100644 test/pipeline/meson.build
 delete mode 100644 test/pipeline/rkisp1/meson.build
 delete mode 100644 test/pipeline/rkisp1/rkisp1_pipeline_test.cpp


base-commit: f66a5c447b65bce774a1bc2d01034f437bf764b5