2020-06-25 13:45:50 +00:00
|
|
|
type: Group
|
|
|
|
instructions:
|
2021-08-19 14:19:21 +00:00
|
|
|
# Informs qtestblacklist.cpp that tests are run in the CI.
|
|
|
|
# A related QT_BUILD_ENVIRONMENT env var is set during an integration's build phase.
|
2020-07-01 09:13:15 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: QTEST_ENVIRONMENT
|
|
|
|
variableValue: "ci"
|
2021-03-15 14:50:28 +00:00
|
|
|
- type: WriteFile
|
|
|
|
fileContents: |
|
|
|
|
#!/usr/bin/python3
|
|
|
|
import subprocess
|
|
|
|
import calendar
|
|
|
|
import datetime
|
|
|
|
import time
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
import re
|
|
|
|
from os.path import expanduser
|
|
|
|
home = expanduser("~")
|
|
|
|
|
|
|
|
file=os.path.basename(sys.argv[1])
|
|
|
|
timestamp = str(round(time.time() * 1000))
|
2021-08-02 18:18:32 +00:00
|
|
|
results_path = home + "/work/testresults/"
|
|
|
|
results_base = results_path + file + "-" + timestamp
|
|
|
|
testargs = [
|
|
|
|
"-o", results_base + ".xml,xml",
|
|
|
|
"-o", results_base + ".junitxml,junitxml",
|
|
|
|
"-o", "-,txt"
|
|
|
|
]
|
2021-03-15 14:50:28 +00:00
|
|
|
if re.search("testlib.selftests.tst_selftests", sys.argv[1]):
|
|
|
|
testargs = []
|
|
|
|
exit(subprocess.call([sys.argv[1]] + testargs))
|
|
|
|
filename: "{{.SourceDir}}/coin_ctest_runner.py"
|
|
|
|
fileMode: 755
|
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "chmod 755 {{.SourceDir}}/coin_ctest_runner.py"
|
|
|
|
maxTimeInSeconds: 10
|
|
|
|
maxTimeBetweenOutput: 10
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to change file permission.
|
|
|
|
disable_if:
|
|
|
|
condition: property
|
|
|
|
property: host.os
|
|
|
|
equals_value: Windows
|
2020-06-25 13:45:50 +00:00
|
|
|
- type: Group
|
|
|
|
instructions:
|
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: TESTS_ENV_PREFIX
|
|
|
|
variableValue: "{{.Env.ENV_PREFIX}}"
|
|
|
|
enable_if:
|
|
|
|
condition: and
|
|
|
|
conditions:
|
|
|
|
- condition: property
|
|
|
|
property: host.os
|
|
|
|
equals_property: target.os
|
|
|
|
- condition: property
|
|
|
|
property: target.osVersion
|
|
|
|
not_equals_value: QEMU
|
|
|
|
- type: Group
|
|
|
|
instructions:
|
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: TESTS_ENV_PREFIX
|
|
|
|
variableValue: "{{.Env.TARGET_ENV_PREFIX}}"
|
|
|
|
disable_if:
|
|
|
|
condition: and
|
|
|
|
conditions:
|
|
|
|
- condition: property
|
|
|
|
property: host.os
|
|
|
|
equals_property: target.os
|
|
|
|
- condition: property
|
|
|
|
property: target.osVersion
|
|
|
|
not_equals_value: QEMU
|