summaryrefslogtreecommitdiff
path: root/test/ipa/shared_test.cpp
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2019-05-10 19:10:41 -0400
committerPaul Elder <paul.elder@ideasonboard.com>2019-05-21 18:35:11 -0400
commitd8de003a0482c998c178151bd1e5684fef60b8be (patch)
treed5a3e4f6d67596a9f7798d05d272e310a9aab29c /test/ipa/shared_test.cpp
parentc1bbbd3b5b4706a31a7505fdd9ad65786764e2d7 (diff)
test: ipa: add IPAModule tests
Add tests to test the the IPAModule class, for loading the IPA module info from IPA module .so shared objects, with modules written in both C and C++. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/ipa/shared_test.cpp')
-rw-r--r--test/ipa/shared_test.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ipa/shared_test.cpp b/test/ipa/shared_test.cpp
new file mode 100644
index 00000000..4e5c976c
--- /dev/null
+++ b/test/ipa/shared_test.cpp
@@ -0,0 +1,12 @@
+#include <libcamera/ipa/ipa_module_info.h>
+
+namespace libcamera {
+
+extern "C" {
+const struct libcamera::IPAModuleInfo ipaModuleInfo = {
+ "It's over nine thousand!",
+ 9001,
+};
+};
+
+}; /* namespace libcamera */