-
Jakob Olsson authored
i.e. add/del_iface, un/subscribe, dump_beacon and monitor functions
Jakob Olsson authoredi.e. add/del_iface, un/subscribe, dump_beacon and monitor functions
functional-api-test.sh 548 B
#!/bin/bash
set -e
echo "Functional API Tests"
pwd
make coverage -C ./
supervisorctl status all
supervisorctl update
sleep 3
supervisorctl status all
# run API validation
ubus-api-validator -d ./test/api/json/ > ./api-result.log
supervisorctl stop all
supervisorctl status
#report part
gcovr -r . --xml -o ./api-test-coverage.xml
gcovr -r .
tap-junit --input ./api-result.log --output report
date +%s > timestamp.log
geninfo . -b . -o ./coverage.info
genhtml coverage.info -o coverage
tar -zcvf coverage.tar.gz coverage test/memory-report.xml