1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For regression test, add srs-bench to 3rdparty

This commit is contained in:
winlin 2021-03-04 13:23:01 +08:00
parent de87dd427d
commit 876210f6c9
1158 changed files with 256967 additions and 3 deletions

View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -e
touch coverage.txt
# test fuzz inputs
go test -tags gofuzz -run TestFuzz -v .
# quick-test without -race
go test ./...
# test with "debug" tag
go test -tags debug ./...
# test concurrency
go test -race -cpu=1,2,4 -run TestClient_DoConcurrent
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic "$d"
if [[ -f profile.out ]]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done