2019-04-05 21:53:11 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set +e
|
|
|
|
|
2018-06-26 18:23:09 +02:00
|
|
|
case "$1" in
|
|
|
|
--log-file)
|
|
|
|
log_file="$2"
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
log_file="_build/meson-logs/testlog.json"
|
|
|
|
esac
|
|
|
|
|
2019-04-05 21:53:11 +02:00
|
|
|
meson test \
|
|
|
|
-C _build \
|
|
|
|
--timeout-multiplier ${MESON_TEST_TIMEOUT_MULTIPLIER} \
|
2018-06-26 18:23:09 +02:00
|
|
|
--no-suite flaky \
|
|
|
|
"$@"
|
2019-04-05 21:53:11 +02:00
|
|
|
|
|
|
|
exit_code=$?
|
|
|
|
|
|
|
|
python3 .gitlab-ci/meson-junit-report.py \
|
|
|
|
--project-name=glib \
|
|
|
|
--job-id "${CI_JOB_NAME}" \
|
|
|
|
--output "_build/${CI_JOB_NAME}-report.xml" \
|
2018-06-26 18:23:09 +02:00
|
|
|
"${log_file}"
|
2019-04-05 21:53:11 +02:00
|
|
|
|
|
|
|
exit $exit_code
|