mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Script: Support local fast coverage by gcovr
This commit is contained in:
parent
bb3bd1705e
commit
d6a6f98a70
3 changed files with 18 additions and 1 deletions
|
@ -48,7 +48,7 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
echo "Build and run utest for SRS" &&
|
echo "Build and run utest for SRS" &&
|
||||||
cd trunk && ./configure --gb28181=on --utest=on --gcov=on && make &&
|
cd trunk && ./configure --gb28181=on --utest=on --gcov=on && make &&
|
||||||
./objs/srs_utest && bash auto/coverage.sh
|
./objs/srs_utest && bash auto/codecov.sh
|
||||||
run-regression-test:
|
run-regression-test:
|
||||||
docker:
|
docker:
|
||||||
- image: ossrs/srs:dev
|
- image: ossrs/srs:dev
|
||||||
|
|
0
trunk/auto/coverage.sh → trunk/auto/codecov.sh
Normal file → Executable file
0
trunk/auto/coverage.sh → trunk/auto/codecov.sh
Normal file → Executable file
17
trunk/auto/fast.sh
Normal file
17
trunk/auto/fast.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
IS_LINUX=yes
|
||||||
|
uname -s|grep Darwin >/dev/null && IS_DARWIN=yes && IS_LINUX=no
|
||||||
|
echo "IS_LINUX: $IS_LINUX, IS_DARWIN: $IS_DARWIN"
|
||||||
|
|
||||||
|
echo "Clean gcda files"
|
||||||
|
find objs -name *.gcda |xargs rm -f
|
||||||
|
|
||||||
|
echo "Build and run utest"
|
||||||
|
make -j10 && ./objs/srs_utest
|
||||||
|
|
||||||
|
echo "Generating coverage"
|
||||||
|
mkdir -p ./objs/coverage &&
|
||||||
|
gcovr -r src --html --html-details -o ./objs/coverage/srs.html objs/src &&
|
||||||
|
echo "Coverage report at ./objs/coverage/srs.html" &&
|
||||||
|
open ./objs/coverage/srs.html
|
Loading…
Add table
Add a link
Reference in a new issue