From 3900b0771ecb160f26a24b4a9bf72e827256e7da Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Thu, 20 Dec 2018 15:40:37 +0000 Subject: test: Move test objects to libtest Create a subdirectory to contain the libtest helper library. Define two variables to clarify when tests are aimed at public or internal components. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- test/libtest/test.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/libtest/test.cpp (limited to 'test/libtest/test.cpp') diff --git a/test/libtest/test.cpp b/test/libtest/test.cpp new file mode 100644 index 00000000..1bb6ebcb --- /dev/null +++ b/test/libtest/test.cpp @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2018, Google Inc. + * + * test.cpp - libcamera test base class + */ + +#include "test.h" + +Test::Test() +{ +} + +Test::~Test() +{ +} + +int Test::execute() +{ + int ret; + + ret = init(); + if (ret < 0) + return ret; + + ret = run(); + + cleanup(); + + return ret; +} -- cgit v1.2.1