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>
This commit is contained in:
Paul Elder 2019-05-10 19:10:41 -04:00
parent c1bbbd3b5b
commit d8de003a04
5 changed files with 114 additions and 0 deletions

12
test/ipa/shared_test.cpp Normal file
View file

@ -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 */