mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
45 lines
845 B
Bash
Executable file
45 lines
845 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "preparation script"
|
|
pwd
|
|
source ./gitlab-ci/shared.sh
|
|
|
|
trap cleanup EXIT
|
|
trap cleanup SIGINT
|
|
|
|
echo "Compiling icmwp"
|
|
autoreconf -i
|
|
./configure --enable-acs=multi --enable-acs=hdm --enable-icwmp-test
|
|
make clean
|
|
make
|
|
check_ret $?
|
|
|
|
echo "Install libicwmp"
|
|
cp bin/.libs/libicwmp.a /usr/lib
|
|
cp bin/.libs/libicwmp.so* /usr/lib
|
|
mkdir /usr/include/libicwmp
|
|
cp inc/*.h /usr/include/libicwmp
|
|
|
|
echo "Starting dependent services"
|
|
supervisorctl status all
|
|
supervisorctl update
|
|
sleep 3
|
|
supervisorctl status all
|
|
|
|
echo "Running the unit test cases"
|
|
make clean -C test/cmocka/
|
|
make unit-test -C test/cmocka/
|
|
check_ret $?
|
|
|
|
echo "Stop dependent services"
|
|
supervisorctl stop all
|
|
supervisorctl status
|
|
|
|
#report part
|
|
#GitLab-CI output
|
|
gcovr -r .
|
|
# Artefact
|
|
gcovr -r . --xml -o ./unit-test-coverage.xml
|
|
date +%s > timestamp.log
|
|
|
|
echo "Unit test PASS"
|