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/test.h | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 test/test.h (limited to 'test/test.h') diff --git a/test/test.h b/test/test.h deleted file mode 100644 index c85eeb5d..00000000 --- a/test/test.h +++ /dev/null @@ -1,32 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Copyright (C) 2018, Google Inc. - * - * test.h - libcamera test base class - */ -#ifndef __TEST_TEST_H__ -#define __TEST_TEST_H__ - -#include - -class Test -{ -public: - Test(); - virtual ~Test(); - - int execute(); - -protected: - virtual int init() { return 0; } - virtual int run() = 0; - virtual void cleanup() { } -}; - -#define TEST_REGISTER(klass) \ -int main(int argc, char *argv[]) \ -{ \ - return klass().execute(); \ -} - -#endif /* __TEST_TEST_H__ */ -- cgit v1.2.1