summaryrefslogtreecommitdiff
path: root/test/ipc
AgeCommit message (Collapse)Author
2019-08-19test: Get event dispatcher from current threadLaurent Pinchart
For all tests that don't otherwise require access to the camera manager, get the event dispatcher from the current thread instead of the camera manager. This prepares for the removal of CameraManager::instance(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
2019-08-19test: unixsocket: Fix typo in error messageLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
2019-07-04test: Allow self-contained tests to run in parallelNiklas Söderlund
The IPA, IPC and Stream tests are self-contained so they can run in parallel. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-07-02test: ipc: unix: Add test for IPCUnixSocketNiklas Söderlund
Test that the IPC supports sending data and file descriptors over the IPC med/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (C) 2019, Raspberry Pi Ltd * * algorithm.cpp - ISP control algorithms */ #include "algorithm.h" using namespace RPiController; int Algorithm::read([[maybe_unused]] const libcamera::YamlObject &params) { return 0; } void Algorithm::initialise() { } void Algorithm]] Metadata *metadata) { } void Algorithm::prepare([[maybe_unused]] Metadata *imageMetadata) { } void Algorithm::process([[maybe_unused]] StatisticsPtr &stats, [[maybe_unused]] Metadata *imageMetadata) { } /* For registering algorithms with the system: */ namespace { std::map<std::string, AlgoCreateFunc> &algorithms() { static std::map<std::string, AlgoCreateFunc> algorithms; return algorithms; } } /* namespace */ std::map<std::string, AlgoCreateFunc> const &RPiController::getAlgorithms() { return algorithms(); } RegisterAlgorithm::RegisterAlgorithm(char const *name, AlgoCreateFunc createFunc) { algorithms()[std::string(name)] = createFunc; }