[igt-dev] [PATCH i-g-t] tests/feature_discovery: Fix things spotted by GitLab's CI

Petri Latvala petri.latvala at intel.com
Fri Jul 31 10:52:39 UTC 2020


On Fri, Jul 31, 2020 at 10:48:39AM +0300, Arkadiusz Hiler wrote:
>  * compile with autotools
>  * ifdef chamelium
> 
> Cc: Petri Latvala <petri.latvala at intel.com>
> Cc: Lukasz Fiedorowicz <lukasz.fiedorowicz at intel.com>
> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>

Reviewed-by: Petri Latvala <petri.latvala at intel.com>


> ---
>  tests/Makefile.sources    | 1 +
>  tests/feature_discovery.c | 4 ++++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/tests/Makefile.sources b/tests/Makefile.sources
> index 93d7768c..fc1cb59c 100644
> --- a/tests/Makefile.sources
> +++ b/tests/Makefile.sources
> @@ -29,6 +29,7 @@ TESTS_progs = \
>  	drm_read \
>  	dumb_buffer \
>  	fbdev \
> +	feature_discovery \
>  	kms_3d \
>  	kms_addfb_basic \
>  	kms_atomic \
> diff --git a/tests/feature_discovery.c b/tests/feature_discovery.c
> index 32ef9df7..1978ce89 100644
> --- a/tests/feature_discovery.c
> +++ b/tests/feature_discovery.c
> @@ -23,7 +23,9 @@
>   */
>  
>  #include "igt.h"
> +#ifdef HAVE_CHAMELIUM
>  #include "igt_chamelium.h"
> +#endif
>  #include "igt_kms.h"
>  #include "igt_psr.h"
>  #include "igt_sysfs.h"
> @@ -91,12 +93,14 @@ igt_main {
>  			}
>  		}
>  
> +#ifdef HAVE_CHAMELIUM
>  		igt_describe("Make sure that Chamelium is configured and reachable.");
>  		igt_subtest("chamelium") {
>  			struct chamelium *chamelium = chamelium_init(fd);
>  			igt_require(chamelium);
>  			chamelium_deinit(chamelium);
>  		}
> +#endif
>  
>  		igt_describe("Make sure that we have eDP panel with PSR1 support.");
>  		igt_subtest("psr1") {
> -- 
> 2.25.4
> 


More information about the igt-dev mailing list