From df3f17c18766bb8e6862b42a1a304adedf9d6b40 Mon Sep 17 00:00:00 2001 From: Egor Nemtsev Date: Fri, 28 Feb 2020 17:58:48 +0300 Subject: [tests] fix import styles for tests - Qt Test allow only to import paths. Neptune components require Styles to work. Styles can only be set via env variables. In Neptune's qmlscene we add extra arguments: --style-conf and --styles-path. For testrunner we initialize evn varibles from defined in pro file paths pointing to build dir. We set QT_QUICK_CONTROLS_CONF and QT_QUICK_CONTROLS_STYLE_PATH Task-number: AUTOSUITE-1497 Change-Id: I1304063bc7628bb921c7c6ee9f7562202d3efbce Reviewed-by: Kimmo Ollila --- tests/neptune-qmlscene/neptune-qmlscene.cpp | 6 ++++++ tests/qmltests/qmltests.pro | 7 +++++++ tests/qmltests/testrunner.cpp | 4 ++++ 3 files changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/neptune-qmlscene/neptune-qmlscene.cpp b/tests/neptune-qmlscene/neptune-qmlscene.cpp index 74c442e3..b3750875 100644 --- a/tests/neptune-qmlscene/neptune-qmlscene.cpp +++ b/tests/neptune-qmlscene/neptune-qmlscene.cpp @@ -361,6 +361,8 @@ static void usage() puts(" -I ........................ Add to the list of import paths"); puts(" -P ........................ Add to the list of plugin paths"); puts(" -translation ... Set the language to run in"); + puts(" --style-conf