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:
parent
de87dd427d
commit
876210f6c9
1158 changed files with 256967 additions and 3 deletions
24
trunk/3rdparty/srs-bench/vendor/github.com/pion/stun/go.test.sh
generated
vendored
Normal file
24
trunk/3rdparty/srs-bench/vendor/github.com/pion/stun/go.test.sh
generated
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue