From 954fe04e4d4cb3f00d2891dc1a0843e91b115e7f Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 10 Oct 2018 14:01:28 +0200 Subject: Add tests to install built wheels and build some examples Augment coin_test_instructions.py to run a new script testing/wheel_tester.py, 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 --- coin_test_instructions.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'coin_test_instructions.py') diff --git a/coin_test_instructions.py b/coin_test_instructions.py index 5ecb4c17a..a61a1c9fa 100644 --- a/coin_test_instructions.py +++ b/coin_test_instructions.py @@ -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 testrunner.py") + qmake_path = get_ci_qmake_path(CI_ENV_INSTALL_DIR, CI_HOST_OS) + + # Try to install built wheels, and build some buildable examples. + if CI_RELEASE_CONF: + wheel_tester_path = os.path.join("testing", "wheel_tester.py") + cmd = [env_python, wheel_tester_path, qmake_path] + run_instruction(cmd, "Error while running wheel_tester.py") + def run_test_instructions(): if not acceptCITestConfiguration(CI_HOST_OS, CI_HOST_OS_VER, CI_TARGET_ARCH, CI_COMPILER): exit() -- cgit v1.2.3