[libcamera-devel,1/3] test: Register the initialisation test with meson

Message ID 20181122131010.22085-2-kieran.bingham@ideasonboard.com
State Accepted
Headers show
Series
  • sphinx-documentation and initial CI
Related show

Commit Message

Kieran Bingham Nov. 22, 2018, 1:10 p.m. UTC
Register the test so that it can integrate with the meson test
framework.

To execute the test suite, use 'ninja test'.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 test/meson.build | 2 ++
 1 file changed, 2 insertions(+)

Comments

Laurent Pinchart Nov. 22, 2018, 3:17 p.m. UTC | #1
Hi Kieran,

Thank you for the patch.

On Thursday, 22 November 2018 15:10:08 EET Kieran Bingham wrote:
> Register the test so that it can integrate with the meson test
> framework.
> 
> To execute the test suite, use 'ninja test'.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

and looking forward to a more interesting test being implemented ;-)

> ---
>  test/meson.build | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/test/meson.build b/test/meson.build
> index faff4b2d4da4..4f5c7a82e4c4 100644
> --- a/test/meson.build
> +++ b/test/meson.build
> @@ -1,3 +1,5 @@
>  test_init = executable('test_init', 'init.cpp',
>  		       link_with : libcamera,
>  		       include_directories : inc)
> +
> +test('Initialisation test', test_init)
Kieran Bingham Nov. 22, 2018, 3:23 p.m. UTC | #2
On 22/11/2018 15:17, Laurent Pinchart wrote:
> Hi Kieran,
> 
> Thank you for the patch.
> 
> On Thursday, 22 November 2018 15:10:08 EET Kieran Bingham wrote:
>> Register the test so that it can integrate with the meson test
>> framework.
>>
>> To execute the test suite, use 'ninja test'.
>>
>> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> and looking forward to a more interesting test being implemented ;-)

Me too - Just needs someone to post some real source code.
I think I've given enough framework to do so now ;D

I'll apply this patch.

>> ---
>>  test/meson.build | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/test/meson.build b/test/meson.build
>> index faff4b2d4da4..4f5c7a82e4c4 100644
>> --- a/test/meson.build
>> +++ b/test/meson.build
>> @@ -1,3 +1,5 @@
>>  test_init = executable('test_init', 'init.cpp',
>>  		       link_with : libcamera,
>>  		       include_directories : inc)
>> +
>> +test('Initialisation test', test_init)
>

Patch

diff --git a/test/meson.build b/test/meson.build
index faff4b2d4da4..4f5c7a82e4c4 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,3 +1,5 @@ 
 test_init = executable('test_init', 'init.cpp',
 		       link_with : libcamera,
 		       include_directories : inc)
+
+test('Initialisation test', test_init)