summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-08 23:43:05 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-11 18:20:22 +0200
commitdb27029ce45b8c523aaaceb4ab1027cade228ebd (patch)
tree506e31c641c53ec30b23aeec8f91c49dbffb9f48 /test
parent9e369da993955d541858ca841680329aaaae08e3 (diff)
meson: Fix coding style when declaring arrays
The meson.build files mix array declarations with and without a space after the opening and before the closing square bracket. The vast majority of cases don't use spaces, so standardize on that. While it it, fix indentation in a few places. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test')
-rw-r--r--test/camera/meson.build10
-rw-r--r--test/controls/meson.build8
-rw-r--r--test/ipc/meson.build2
-rw-r--r--test/process/meson.build2
-rw-r--r--test/serialization/meson.build2
-rw-r--r--test/stream/meson.build12
-rw-r--r--test/v4l2_subdevice/meson.build4
-rw-r--r--test/v4l2_videodevice/meson.build18
8 files changed, 29 insertions, 29 deletions
diff --git a/test/camera/meson.build b/test/camera/meson.build
index 0395e7dd..9cb95aff 100644
--- a/test/camera/meson.build
+++ b/test/camera/meson.build
@@ -3,11 +3,11 @@
# Tests are listed in order of complexity.
# They are not alphabetically sorted.
camera_tests = [
- [ 'configuration_default', 'configuration_default.cpp' ],
- [ 'configuration_set', 'configuration_set.cpp' ],
- [ 'buffer_import', 'buffer_import.cpp' ],
- [ 'statemachine', 'statemachine.cpp' ],
- [ 'capture', 'capture.cpp' ],
+ ['configuration_default', 'configuration_default.cpp'],
+ ['configuration_set', 'configuration_set.cpp'],
+ ['buffer_import', 'buffer_import.cpp'],
+ ['statemachine', 'statemachine.cpp'],
+ ['capture', 'capture.cpp'],
]
foreach t : camera_tests
diff --git a/test/controls/meson.build b/test/controls/meson.build
index 545fb03b..188c96da 100644
--- a/test/controls/meson.build
+++ b/test/controls/meson.build
@@ -1,10 +1,10 @@
# SPDX-License-Identifier: CC0-1.0
control_tests = [
- [ 'control_info', 'control_info.cpp' ],
- [ 'control_info_map', 'control_info_map.cpp' ],
- [ 'control_list', 'control_list.cpp' ],
- [ 'control_value', 'control_value.cpp' ],
+ ['control_info', 'control_info.cpp'],
+ ['control_info_map', 'control_info_map.cpp'],
+ ['control_list', 'control_list.cpp'],
+ ['control_value', 'control_value.cpp'],
]
foreach t : control_tests
diff --git a/test/ipc/meson.build b/test/ipc/meson.build
index 650df1d6..9f413ff6 100644
--- a/test/ipc/meson.build
+++ b/test/ipc/meson.build
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: CC0-1.0
ipc_tests = [
- [ 'unixsocket', 'unixsocket.cpp' ],
+ ['unixsocket', 'unixsocket.cpp'],
]
foreach t : ipc_tests
diff --git a/test/process/meson.build b/test/process/meson.build
index c215fa7e..d2272d50 100644
--- a/test/process/meson.build
+++ b/test/process/meson.build
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: CC0-1.0
process_tests = [
- [ 'process_test', 'process_test.cpp' ],
+ ['process_test', 'process_test.cpp'],
]
foreach t : process_tests
diff --git a/test/serialization/meson.build b/test/serialization/meson.build
index a9d9cbcb..6fc54f6b 100644
--- a/test/serialization/meson.build
+++ b/test/serialization/meson.build
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: CC0-1.0
serialization_tests = [
- [ 'control_serialization', 'control_serialization.cpp' ],
+ ['control_serialization', 'control_serialization.cpp'],
]
foreach t : serialization_tests
diff --git a/test/stream/meson.build b/test/stream/meson.build
index 2b9b29a9..5d3ef588 100644
--- a/test/stream/meson.build
+++ b/test/stream/meson.build
@@ -1,13 +1,13 @@
# SPDX-License-Identifier: CC0-1.0
stream_tests = [
- [ 'stream_formats', 'stream_formats.cpp' ],
+ ['stream_formats', 'stream_formats.cpp'],
]
foreach t : stream_tests
- exe = executable(t[0], t[1],
- dependencies : libcamera_dep,
- link_with : test_libraries,
- include_directories : test_includes_internal)
- test(t[0], exe, suite: 'stream')
+ exe = executable(t[0], t[1],
+ dependencies : libcamera_dep,
+ link_with : test_libraries,
+ include_directories : test_includes_internal)
+ test(t[0], exe, suite: 'stream')
endforeach
diff --git a/test/v4l2_subdevice/meson.build b/test/v4l2_subdevice/meson.build
index 5f0882ca..40d39766 100644
--- a/test/v4l2_subdevice/meson.build
+++ b/test/v4l2_subdevice/meson.build
@@ -1,8 +1,8 @@
# SPDX-License-Identifier: CC0-1.0
v4l2_subdevice_tests = [
- [ 'list_formats', 'list_formats.cpp'],
- [ 'test_formats', 'test_formats.cpp'],
+ ['list_formats', 'list_formats.cpp'],
+ ['test_formats', 'test_formats.cpp'],
]
foreach t : v4l2_subdevice_tests
diff --git a/test/v4l2_videodevice/meson.build b/test/v4l2_videodevice/meson.build
index b4bb3090..e733518c 100644
--- a/test/v4l2_videodevice/meson.build
+++ b/test/v4l2_videodevice/meson.build
@@ -3,15 +3,15 @@
# Tests are listed in order of complexity.
# They are not alphabetically sorted.
v4l2_videodevice_tests = [
- [ 'double_open', 'double_open.cpp' ],
- [ 'controls', 'controls.cpp' ],
- [ 'formats', 'formats.cpp' ],
- [ 'request_buffers', 'request_buffers.cpp' ],
- [ 'buffer_cache', 'buffer_cache.cpp' ],
- [ 'stream_on_off', 'stream_on_off.cpp' ],
- [ 'capture_async', 'capture_async.cpp' ],
- [ 'buffer_sharing', 'buffer_sharing.cpp' ],
- [ 'v4l2_m2mdevice', 'v4l2_m2mdevice.cpp' ],
+ ['double_open', 'double_open.cpp'],
+ ['controls', 'controls.cpp'],
+ ['formats', 'formats.cpp'],
+ ['request_buffers', 'request_buffers.cpp'],
+ ['buffer_cache', 'buffer_cache.cpp'],
+ ['stream_on_off', 'stream_on_off.cpp'],
+ ['capture_async', 'capture_async.cpp'],
+ ['buffer_sharing', 'buffer_sharing.cpp'],
+ ['v4l2_m2mdevice', 'v4l2_m2mdevice.cpp'],
]
foreach t : v4l2_videodevice_tests