summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/init.cpp9
-rw-r--r--test/meson.build3
2 files changed, 12 insertions, 0 deletions
diff --git a/test/init.cpp b/test/init.cpp
new file mode 100644
index 00000000..182728d3
--- /dev/null
+++ b/test/init.cpp
@@ -0,0 +1,9 @@
+#include <libcamera.h>
+
+int main(void)
+{
+ libcamera l = libcamera();
+ l.init_lib();
+
+ return 0;
+}
diff --git a/test/meson.build b/test/meson.build
new file mode 100644
index 00000000..faff4b2d
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,3 @@
+test_init = executable('test_init', 'init.cpp',
+ link_with : libcamera,
+ include_directories : inc)