bbfdm/bbfd/gitlab-ci/unit-test.sh
2023-03-20 12:07:27 +00:00

22 lines
343 B
Bash
Executable file

#!/bin/bash
echo "preparation script"
pwd
source ./gitlab-ci/shared.sh
trap cleanup EXIT
trap cleanup SIGINT
echo "Running the unit test cases"
make clean
make unit-test -C ./src/
check_ret $?
#report part
#GitLab-CI output
gcovr -r .
# Artefact
gcovr -r . --xml -o ./unit-test-coverage.xml
date +%s > timestamp.log
echo "Unit test PASS"