aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/run_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/run_test.sh')
-rwxr-xr-xsources/pyside6/tests/run_test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/sources/pyside6/tests/run_test.sh b/sources/pyside6/tests/run_test.sh
new file mode 100755
index 000000000..2cb3efa69
--- /dev/null
+++ b/sources/pyside6/tests/run_test.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+# This is a nasty workaround of a CTest limitation
+# of setting the environment variables for the test.
+
+# $1: LD_LIBRARY_PATH
+# $2: $PYTHONPATH
+# $3: python executable
+# $4: test file
+
+export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH
+export PYTHONPATH=$2:$PYTHONPATH
+$3 $4