summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-07-31 10:48:39 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-07-31 14:12:12 +0300
commite9ef5db4cd286fb4bf151a24efcd7a62a4df18f1 (patch)
tree781a07da5ad33b4e7326f250aa2a6059f3e8d9b9
parent2f61bd43993e6d2289f39eb1818d2cd55480e3aa (diff)
tests/feature_discovery: Fix things spotted by GitLab's CI
* compile with autotools * ifdef chamelium Cc: Petri Latvala <petri.latvala@intel.com> Cc: Lukasz Fiedorowicz <lukasz.fiedorowicz@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--tests/Makefile.sources1
-rw-r--r--tests/feature_discovery.c4
2 files changed, 5 insertions, 0 deletions
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") {