diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-10-05 21:16:13 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-10-07 17:05:42 +0300 |
commit | 8abcce31ee2b528cba1798fbb738294e5760dccf (patch) | |
tree | a2c4651f3ccc546ea24b6e0f7919ed69f0427191 /test/pipeline | |
parent | 2ee8faf3c89e8f5f3f7d9693d3ed8cd892bcb5ec (diff) |
test: meson: Use dictionaries instead of arrays to store test information
Tests are listed in meson.build using arrays that contain the test name
and source files at fixed positions. This isn't very readable, leading
to code using test[0], test[1] and test[2]. Replace the arrays with
dictionaries to improve readability.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'test/pipeline')
-rw-r--r-- | test/pipeline/ipu3/meson.build | 6 | ||||
-rw-r--r-- | test/pipeline/rkisp1/meson.build | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/pipeline/ipu3/meson.build b/test/pipeline/ipu3/meson.build index 5fcf5730..af075707 100644 --- a/test/pipeline/ipu3/meson.build +++ b/test/pipeline/ipu3/meson.build @@ -1,14 +1,14 @@ # SPDX-License-Identifier: CC0-1.0 ipu3_test = [ - ['ipu3_pipeline_test', 'ipu3_pipeline_test.cpp'], + {'name': 'ipu3_pipeline_test', 'sources': ['ipu3_pipeline_test.cpp']}, ] foreach test : ipu3_test - exe = executable(test[0], test[1], + exe = executable(test['name'], test['sources'], dependencies : libcamera_private, link_with : test_libraries, include_directories : test_includes_internal) - test(test[0], exe, suite : 'ipu3', is_parallel : false) + test(test['name'], exe, suite : 'ipu3', is_parallel : false) endforeach diff --git a/test/pipeline/rkisp1/meson.build b/test/pipeline/rkisp1/meson.build index c82cc789..1d178ad9 100644 --- a/test/pipeline/rkisp1/meson.build +++ b/test/pipeline/rkisp1/meson.build @@ -1,14 +1,14 @@ # SPDX-License-Identifier: CC0-1.0 rkisp1_test = [ - ['rkisp1_pipeline_test', 'rkisp1_pipeline_test.cpp'], + {'name': 'rkisp1_pipeline_test', 'sources': ['rkisp1_pipeline_test.cpp']}, ] foreach test : rkisp1_test - exe = executable(test[0], test[1], + exe = executable(test['name'], test['sources'], dependencies : libcamera_private, link_with : test_libraries, include_directories : test_includes_internal) - test(test[0], exe, suite : 'rkisp1', is_parallel : false) + test(test['name'], exe, suite : 'rkisp1', is_parallel : false) endforeach |