path: root/
diff options
authorAlexandru Croitor <>2018-10-10 14:01:28 +0200
committerAlexandru Croitor <>2018-10-12 14:45:37 +0000
commit954fe04e4d4cb3f00d2891dc1a0843e91b115e7f (patch)
tree382892d7ac67546ea9d0cfc331589b4472af8504 /
parent43fe3494a9d902034896e3afa7b5158c77163be0 (diff)
Add tests to install built wheels and build some examples
Augment to run a new script testing/, which tries to pip install the built wheels, and then tries to build the samplebinding and scriptableapplication examples. This allows us to confirm that the generated wheels are actually installable, and also hopefully prevent us from breaking the embeddable examples, by making sure that they at least build (and execute in the case of samplebinding). The change also modifies the examples to be able to take the python executable as build argument, so that wheel_tester can specify explicitly which python interpeter to use. Change-Id: I0f141e40ab86e3311dd25915c4e53b0af36aaae9 Reviewed-by: Christian Tismer <> Reviewed-by: Qt CI Bot <>
Diffstat (limited to '')
1 files changed, 9 insertions, 0 deletions
diff --git a/ b/
index 5ecb4c17..a61a1c9f 100644
--- a/
+++ b/
@@ -44,6 +44,7 @@ from build_scripts.utils import get_qtci_virtualEnv
from build_scripts.utils import run_instruction
from build_scripts.utils import rmtree
from build_scripts.utils import acceptCITestConfiguration
+from build_scripts.utils import get_ci_qmake_path
import os
# Values must match COIN thrift
@@ -74,6 +75,14 @@ def call_testrunner(python_ver, buildnro):
"--buildno=" + buildnro]
run_instruction(cmd, "Failed to run")
+ qmake_path = get_ci_qmake_path(CI_ENV_INSTALL_DIR, CI_HOST_OS)
+ # Try to install built wheels, and build some buildable examples.
+ wheel_tester_path = os.path.join("testing", "")
+ cmd = [env_python, wheel_tester_path, qmake_path]
+ run_instruction(cmd, "Error while running")
def run_test_instructions():
if not acceptCITestConfiguration(CI_HOST_OS, CI_HOST_OS_VER, CI_TARGET_ARCH, CI_COMPILER):