Mentions légales du service

Skip to content
Snippets Groups Projects
Commit fb17d565 authored by hhakim's avatar hhakim
Browse files

Output test report link in ci job log of ctest_matlab/python

parent e8fb5f0c
Branches
Tags
No related merge requests found
...@@ -59,6 +59,7 @@ ctest_python: ...@@ -59,6 +59,7 @@ ctest_python:
- junit2html build_FaustLinuxPython/junit_output.xml build_FaustLinuxPython/python_pyfaust_test_output.html - junit2html build_FaustLinuxPython/junit_output.xml build_FaustLinuxPython/python_pyfaust_test_output.html
- deactivate - deactivate
- rm -Rf junit_venv - rm -Rf junit_venv
- 'echo The test report will be published here: https://gitlab.inria.fr/faustgrp/faust/-/jobs/${CI_JOB_ID}/artifacts/external_file/build_FaustLinuxPython/python_pyfaust_test_output.html'
# fail the ci job if any ctest test (or unit test) have failed # fail the ci job if any ctest test (or unit test) have failed
- echo "Failed tests:" - echo "Failed tests:"
- if grep -B 1 'Outcome:.*Failed' build_FaustLinuxPython/python_pyfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p'; then exit 1; else echo "all tests passed"; exit 0;fi - if grep -B 1 'Outcome:.*Failed' build_FaustLinuxPython/python_pyfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p'; then exit 1; else echo "all tests passed"; exit 0;fi
...@@ -88,6 +89,7 @@ ctest_matlab: ...@@ -88,6 +89,7 @@ ctest_matlab:
- junit2html ${BUILD_DIR}/junit_output.xml ${BUILD_DIR}/matlab_matfaust_test_output.html - junit2html ${BUILD_DIR}/junit_output.xml ${BUILD_DIR}/matlab_matfaust_test_output.html
- deactivate - deactivate
- rm -Rf junit_venv - rm -Rf junit_venv
- 'echo The test report will be published here: https://gitlab.inria.fr/faustgrp/faust/-/jobs/${CI_JOB_ID}/artifacts/external_file/${BUILD_DIR}/matlab_matfaust_test_output.html'
# fail the ci job if any ctest test (or unit test) have failed # fail the ci job if any ctest test (or unit test) have failed
- echo "Failed tests:" - echo "Failed tests:"
- if grep -B 1 'Outcome:.*Failed' ${BUILD_DIR}/matlab_matfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p'; then exit 1; else if grep "Failure Summary:" ${BUILD_DIR}/matlab_matfaust_test_output.html; then echo "all ctest passed but some unit tests failed (look the junit report!)"; exit 2; else echo "(None) all tests passed"; exit 0;fi;fi - if grep -B 1 'Outcome:.*Failed' ${BUILD_DIR}/matlab_matfaust_test_output.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p'; then exit 1; else if grep "Failure Summary:" ${BUILD_DIR}/matlab_matfaust_test_output.html; then echo "all ctest passed but some unit tests failed (look the junit report!)"; exit 2; else echo "(None) all tests passed"; exit 0;fi;fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment