Some checks failed
Basic Checks / license-check (push) Has been cancelled
Basic Checks / include-check (push) Has been cancelled
Basic Checks / style-check (push) Has been cancelled
Basic Checks / docs-check (push) Has been cancelled
Basic Checks / python-tests (push) Has been cancelled
Basic Checks / pin-validation (push) Has been cancelled
Basic Checks / cmake-checks (push) Has been cancelled
Basic Checks / frozen-tools-check (push) Has been cancelled
Publish or Update docker image for head of branch / prepare-tags (push) Has been cancelled
Release or update docker image for a released mbed-os version / prepare-tags (push) Has been cancelled
Publish or Update docker image for head of branch / build-container (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/amd64) (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/arm64) (push) Has been cancelled
Publish or Update docker image for head of branch / deploy-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / build-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/amd64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/arm64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / deploy-container (push) Has been cancelled
Prune temporary docker images / prune-images (push) Has been cancelled
44 lines
815 B
Bash
44 lines
815 B
Bash
#!/bin/bash
|
|
echo
|
|
echo Build mbed client randlib unit tests
|
|
echo
|
|
|
|
# Remember to add new test folder to Makefile
|
|
make clean
|
|
make all
|
|
|
|
echo
|
|
echo Create results
|
|
echo
|
|
mkdir results
|
|
|
|
find ./ -name '*.xml' | xargs cp -t ./results/
|
|
|
|
echo
|
|
echo Create coverage document
|
|
echo
|
|
mkdir coverages
|
|
cd coverages
|
|
|
|
#copy the .gcda & .gcno for all test projects (no need to modify
|
|
#cp ../../../source/*.gc* .
|
|
#find ../ -name '*.gcda' | xargs cp -t .
|
|
#find ../ -name '*.gcno' | xargs cp -t .
|
|
#find . -name "test*" -type f -delete
|
|
#find . -name "*test*" -type f -delete
|
|
#find . -name "*stub*" -type f -delete
|
|
#rm -rf main.*
|
|
|
|
lcov -q -d ../. -c -o app.info
|
|
lcov -q -r app.info "/test*" -o app.info
|
|
lcov -q -r app.info "/usr*" -o app.info
|
|
genhtml --no-branch-coverage app.info
|
|
cd ..
|
|
echo
|
|
echo
|
|
echo
|
|
echo Have a nice bug hunt!
|
|
echo
|
|
echo
|
|
echo
|