Skip to content
Snippets Groups Projects
Verified Commit 319ddf85 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Pipeline variable CTEST_INCLUDE_REGEX.

parent fe9b8422
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ variables: ...@@ -10,6 +10,7 @@ variables:
BUILD_TYPE: Release BUILD_TYPE: Release
BUILD_TESTS: "true" BUILD_TESTS: "true"
BUILD_CTEST: "true" BUILD_CTEST: "true"
CTEST_INCLUDE_REGEX: "" # Regex is given via ctest -R [regex]
CPU_TARGET: ivybridge # envinf1 has oldest cpu CPU_TARGET: ivybridge # envinf1 has oldest cpu
ARTIFACTS_PAGES_URL: https://$CI_PROJECT_ROOT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts ARTIFACTS_PAGES_URL: https://$CI_PROJECT_ROOT_NAMESPACE.$CI_PAGES_DOMAIN/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts
......
...@@ -45,9 +45,14 @@ ...@@ -45,9 +45,14 @@
xvfb_run_cmd="xvfb-run -a" xvfb_run_cmd="xvfb-run -a"
fi fi
regex_argument=""
if [[ ! -z "$CTEST_INCLUDE_REGEX" ]]; then
regex_argument="-R ${CTEST_INCLUDE_REGEX}"
fi
# -M Continuous does not run any tests -> -M Experimental --group Continuous # -M Continuous does not run any tests -> -M Experimental --group Continuous
# --test-dir has to be provided despite using a preset # --test-dir has to be provided despite using a preset
${xvfb_run_cmd} ctest -M Experimental --group Continuous --test-dir ${build_dir_full} -T Test -T Submit --preset=${CMAKE_PRESET}${preset_postfix} --output-junit Tests/ctest.xml --stop-time `date -d "today + ${ctest_timeout} minutes" +'%H:%M:%S'` ${CTEST_ARGS} ${xvfb_run_cmd} ctest -M Experimental ${regex_argument} --group Continuous --test-dir ${build_dir_full} -T Test -T Submit --preset=${CMAKE_PRESET}${preset_postfix} --output-junit Tests/ctest.xml --stop-time `date -d "today + ${ctest_timeout} minutes" +'%H:%M:%S'` ${CTEST_ARGS}
fi fi
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment