diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-27 05:05:23 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-28 01:54:56 +0300 |
commit | 32df46f0b6faf46b9d96852e4160c4817730f5e9 (patch) | |
tree | fc15182f68efde171c59041f484a1269fc930c90 /test | |
parent | e951a2af20c6ca025cf82bae995dee7efe5f9b6b (diff) |
test: ipa: ipa_interface: Pass configuration file to IPA init()
Pass the vimc IPA dummy configuration file to the IPA init() function.
This will be used by the IPA to validate the init() call.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/ipa/ipa_interface_test.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/ipa/ipa_interface_test.cpp b/test/ipa/ipa_interface_test.cpp index 2e2dfb8d..7fa88efe 100644 --- a/test/ipa/ipa_interface_test.cpp +++ b/test/ipa/ipa_interface_test.cpp @@ -98,8 +98,13 @@ protected: } /* Test initialization of IPA module. */ - IPASettings settings; - ipa_->init(settings); + std::string conf = ipa_->configurationFile("vimc.conf"); + int ret = ipa_->init(IPASettings{ conf }); + if (ret < 0) { + cerr << "IPA interface init() failed" << endl; + return TestFail; + } + timer.start(1000); while (timer.isRunning() && trace_ != IPAOperationInit) dispatcher->processEvents(); @@ -155,7 +160,7 @@ private: } std::shared_ptr<PipelineHandler> pipe_; - std::unique_ptr<IPAInterface> ipa_; + std::unique_ptr<IPAProxy> ipa_; enum IPAOperationCode trace_; EventNotifier *notifier_; int fd_; |