summaryrefslogtreecommitdiff
path: root/test/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.cpp')
-rw-r--r--test/test.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/test.cpp b/test/test.cpp
new file mode 100644
index 00000000..4e7779e7
--- /dev/null
+++ b/test/test.cpp
@@ -0,0 +1,28 @@
+/* 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()
+{
+ cleanup();
+}
+
+int Test::execute()
+{
+ int ret;
+
+ ret = init();
+ if (ret < 0)
+ return ret;
+
+ return run();
+}