Add a unit test to exercize the API of the ipa::Vector class.
The test binary being called 'vector', implicit includes cause the
binary to be picked by '#include <vector>', causing builds to fail. Set
implicit_include_directories to false to avoid this, as done in commit
6cd8491258 ("test: Don't add current build directory to include
path").
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
18 lines
623 B
Meson
18 lines
623 B
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
libipa_test = [
|
|
{'name': 'interpolator', 'sources': ['interpolator.cpp']},
|
|
{'name': 'vector', 'sources': ['vector.cpp']},
|
|
]
|
|
|
|
foreach test : libipa_test
|
|
exe = executable(test['name'], test['sources'],
|
|
dependencies : [libcamera_private, libipa_dep],
|
|
implicit_include_directories : false,
|
|
link_with : [test_libraries],
|
|
include_directories : [test_includes_internal,
|
|
'../../../src/ipa/libipa/'])
|
|
|
|
test(test['name'], exe, suite : 'ipa')
|
|
endforeach
|