IPAManager is a class that will search in given directories for IPA modules, and will load them into a list. It also provides an interface for pipeline handlers to acquire an IPA. A meson build file for the IPAs is added, which also specifies a hard-coded path for where to load the IPAs from in the installation directory. More paths can be specified with the environment variable LIBCAMERA_IPA_MODULE_PATH, with the same syntax as the regular PATH environment variable. Make the test framework set this environment variable. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
37 lines
412 B
C++
37 lines
412 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2018, Google Inc.
|
|
*
|
|
* test.cpp - libcamera test base class
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "test.h"
|
|
|
|
Test::Test()
|
|
{
|
|
}
|
|
|
|
Test::~Test()
|
|
{
|
|
}
|
|
|
|
int Test::execute()
|
|
{
|
|
int ret;
|
|
|
|
ret = setenv("LIBCAMERA_IPA_MODULE_PATH", "src/ipa", 1);
|
|
if (ret)
|
|
return errno;
|
|
|
|
ret = init();
|
|
if (ret)
|
|
return ret;
|
|
|
|
ret = run();
|
|
|
|
cleanup();
|
|
|
|
return ret;
|
|
}
|