From patchwork Mon Mar 29 17:02:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 11771 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id B0CE9C32F0 for ; Mon, 29 Mar 2021 17:03:23 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3710068782; Mon, 29 Mar 2021 19:03:23 +0200 (CEST) Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D5C9B6877D for ; Mon, 29 Mar 2021 19:03:21 +0200 (CEST) X-Halon-ID: a6541635-90b0-11eb-a076-005056917f90 Authorized-sender: niklas.soderlund@fsdn.se Received: from bismarck.berto.se (p54ac5521.dip0.t-ipconnect.de [84.172.85.33]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id a6541635-90b0-11eb-a076-005056917f90; Mon, 29 Mar 2021 19:03:20 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Mon, 29 Mar 2021 19:02:47 +0200 Message-Id: <20210329170250.937120-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 0/3] lc-compliance: Add a libcamera compliance tool X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This series adds a compliance tool to libcamera. It was developed out of necessity while extending and debugging the IPU3 pipeline hander. Each test in the tool so far have at one point triggered fatal issues in one pipeline or another. The tool is simple at the moment and only tests a single stream. As our use-cases grow more complex I hope to find time to extend the tool to cover more areas. The tool also needs to grows a better structure for how to organize tests on file and selection to fit its execution environment. There are also many areas where the internal helpers can be refined. All in all this is an just a starting point that triggers some problems in our library that can be built upon and hopefully help us to avoid repeating the mistakes of our past. Niklas Söderlund (3): meson: Move libevent dependency lookup lc-compliance: Add a libcamera compliance tool lc-compliance: Add test stopping single stream with requests queued src/cam/meson.build | 2 - src/lc-compliance/main.cpp | 148 ++++++++++++++++++ src/lc-compliance/meson.build | 23 +++ src/lc-compliance/results.cpp | 75 ++++++++++ src/lc-compliance/results.h | 47 ++++++ src/lc-compliance/simple_capture.cpp | 214 +++++++++++++++++++++++++++ src/lc-compliance/simple_capture.h | 68 +++++++++ src/lc-compliance/single_stream.cpp | 97 ++++++++++++ src/lc-compliance/tests.h | 16 ++ src/meson.build | 4 + 10 files changed, 692 insertions(+), 2 deletions(-) create mode 100644 src/lc-compliance/main.cpp create mode 100644 src/lc-compliance/meson.build create mode 100644 src/lc-compliance/results.cpp create mode 100644 src/lc-compliance/results.h create mode 100644 src/lc-compliance/simple_capture.cpp create mode 100644 src/lc-compliance/simple_capture.h create mode 100644 src/lc-compliance/single_stream.cpp create mode 100644 src/lc-compliance/tests.h