summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-03-12 14:00:35 +0100
committerJohan Helsing <johan.helsing@qt.io>2018-03-13 07:46:56 +0000
commit6d9ee7d4c1a03eb2a3b51f2338e39be9f2c0b3ed (patch)
treeb10d4a5420c28d751a31fa1cec4a1acad57c9ac2 /tests
parent366be1aafe3ed1dacc7d597e6bb2b1d509d2e908 (diff)
Run shell agnostic tests on all shells
And not just the default one. Change-Id: I6debbda9ae249f5f9df914901dc60722253b7d09 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/client/client/client.pro2
-rwxr-xr-xtests/auto/client/client/run-with-all-shells.sh6
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/client/client/client.pro b/tests/auto/client/client/client.pro
index edf80bb9b..f4ced252c 100644
--- a/tests/auto/client/client/client.pro
+++ b/tests/auto/client/client/client.pro
@@ -2,3 +2,5 @@ include (../shared/shared.pri)
TARGET = tst_client
SOURCES += tst_client.cpp
+
+check.commands = $(TESTRUNNER) $${PWD}/run-with-all-shells.sh $(TESTARGS)
diff --git a/tests/auto/client/client/run-with-all-shells.sh b/tests/auto/client/client/run-with-all-shells.sh
new file mode 100755
index 000000000..41f383900
--- /dev/null
+++ b/tests/auto/client/client/run-with-all-shells.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -ex
+$@
+env QT_WAYLAND_SHELL_INTEGRATION=wl-shell $@
+env QT_WAYLAND_SHELL_INTEGRATION=ivi-shell $@
+env QT_WAYLAND_SHELL_INTEGRATION=xdg-shell-v6 $@