From patchwork Fri Jan 11 11:09:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 203 Return-Path: Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F1AAC60B33 for ; Fri, 11 Jan 2019 12:09:55 +0100 (CET) X-Originating-IP: 2.224.242.101 Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 8B9021C0002; Fri, 11 Jan 2019 11:09:55 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Fri, 11 Jan 2019 12:09:56 +0100 Message-Id: <20190111110956.14812-4-jacopo@jmondi.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111110956.14812-1-jacopo@jmondi.org> References: <20190111110956.14812-1-jacopo@jmondi.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/3] test: media_device: Use foreach iterator X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 11:09:56 -0000 Use 'foreach' iterator construct to simplify adding test targets to the media_device testing part. Signed-off-by: Jacopo Mondi --- test/media_device/meson.build | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/media_device/meson.build b/test/media_device/meson.build index b1294f6..9f55457 100644 --- a/test/media_device/meson.build +++ b/test/media_device/meson.build @@ -1,12 +1,12 @@ -media_device_print_test = executable('media_device_print_test', - 'media_device_print_test.cpp', - link_with : test_libraries, - include_directories : test_includes_internal) +media_device_tests = [ + ['print media device', 'media_device_print_test.cpp'], + ['media device link handling', 'media_device_link_test.cpp'], +] -media_device_link_test = executable('media_device_link_test', - 'media_device_link_test.cpp', - link_with : test_libraries, - include_directories : test_includes_internal) +foreach t : media_device_tests + exe = executable(t[0], t[1], + link_with : test_libraries, + include_directories : test_includes_internal) -test('Media Device Print Test', media_device_print_test) -test('Media Device Link Test', media_device_link_test) + test(t[0], exe) +endforeach