mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
30 lines
602 B
Bash
Executable file
30 lines
602 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "Functional API Tests"
|
|
pwd
|
|
source ./gitlab-ci/shared.sh
|
|
|
|
echo "Starting supervisor"
|
|
supervisorctl shutdown
|
|
sleep 1
|
|
supervisord -c /etc/supervisor/supervisord.conf
|
|
sleep 3
|
|
|
|
supervisorctl status all
|
|
|
|
echo "Running the functional API test cases"
|
|
make clean -C test/cmocka/
|
|
make functional-api-test -C test/cmocka/
|
|
check_ret $?
|
|
|
|
supervisorctl stop all
|
|
supervisorctl status
|
|
|
|
#report part
|
|
#GitLab-CI output
|
|
gcovr -r . 2> /dev/null #throw away stderr
|
|
# Artefact
|
|
gcovr -r . 2> /dev/null --xml -o ./functional-api-test-coverage.xml
|
|
date +%s > timestamp.log
|
|
|
|
echo "Functional API Test :: PASS"
|