From patchwork Tue Jan 1 21:29:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 125 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1023860B3A for ; Tue, 1 Jan 2019 22:29:53 +0100 (CET) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9DD15B81; Tue, 1 Jan 2019 22:29:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1546378192; bh=+bt7vKamcatq4RkWn4TnL+rqnL8+nxKC+8IUhdh7oFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t2n6Dy5kkX3SvkFcNdnjKsv/E4YFm6fiFylIFrcQPhKlNIEczG/luo29PNHR7CIna cSlUEC9BXMcRQjQX+ii3q8ItIseMzQOetjyKFbX3PKWa9IkcsuEUWpzaWMifZ95zzt WLJGsSr/jXK90DrrfFCQd+O3kPrGbzor7DS6srDs= From: Kieran Bingham To: LibCamera Devel Date: Tue, 1 Jan 2019 21:29:46 +0000 Message-Id: <20190101212947.28098-5-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190101212947.28098-1-kieran.bingham@ideasonboard.com> References: <20190101212947.28098-1-kieran.bingham@ideasonboard.com> Subject: [libcamera-devel] [PATCH 4/5] test: media_device: Convert to foreach 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: Tue, 01 Jan 2019 21:29:53 -0000 Prevent duplication of boilerplate code as the suite grows by establishing the foreach pattern in the media_device test suite. Signed-off-by: Kieran Bingham --- test/media_device/meson.build | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/media_device/meson.build b/test/media_device/meson.build index a7ebed102e24..d9394b0545d8 100644 --- a/test/media_device/meson.build +++ b/test/media_device/meson.build @@ -1,5 +1,11 @@ -media_device_test = executable('media_device_test', 'media_device_test.cpp', - link_with : test_libraries, - include_directories : test_includes_internal) +media_device_tests = [ + ['media_device_test', 'media_device_test.cpp'], +] -test('Media Device Test', media_device_test) +foreach t : media_device_tests + exe = executable(t[0], t[1], + link_with : test_libraries, + include_directories : test_includes_internal) + + test(t[0], exe, suite: 'media_device', is_parallel: false) +endforeach