mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SquashSRS4: Update srs-bench.
This commit is contained in:
parent
25145b945d
commit
b7b474deba
10 changed files with 590 additions and 516 deletions
33
trunk/3rdparty/srs-bench/auto/sync_vnet.sh
vendored
Executable file
33
trunk/3rdparty/srs-bench/auto/sync_vnet.sh
vendored
Executable file
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
|
||||
FILES=(udpproxy.go udpproxy_test.go)
|
||||
for file in ${FILES[@]}; do
|
||||
echo "cp vnet/udpproxy.go ~/git/transport/vnet/" &&
|
||||
cp vnet/udpproxy.go ~/git/transport/vnet/
|
||||
done
|
||||
|
||||
# https://github.com/pion/webrtc/wiki/Contributing#run-all-automated-tests-and-checks-before-submitting
|
||||
cd ~/git/transport/
|
||||
|
||||
echo ".github/lint-commit-message.sh" &&
|
||||
.github/lint-commit-message.sh &&
|
||||
echo ".github/assert-contributors.sh" &&
|
||||
.github/assert-contributors.sh &&
|
||||
echo ".github/lint-disallowed-functions-in-library.sh" &&
|
||||
.github/lint-disallowed-functions-in-library.sh &&
|
||||
echo ".github/lint-filename.sh" &&
|
||||
.github/lint-filename.sh
|
||||
if [[ $? -ne 0 ]]; then echo "fail"; exit -1; fi
|
||||
|
||||
# https://github.com/pion/webrtc/wiki/Contributing#run-all-automated-tests-and-checks-before-submitting
|
||||
cd ~/git/transport/vnet/
|
||||
|
||||
echo "go test -race ./..." &&
|
||||
go test -race ./...
|
||||
if [[ $? -ne 0 ]]; then echo "fail"; exit -1; fi
|
||||
|
||||
echo "golangci-lint run --skip-files conn_map_test.go" &&
|
||||
golangci-lint run --skip-files conn_map_test.go
|
||||
if [[ $? -ne 0 ]]; then echo "fail"; exit -1; fi
|
||||
|
||||
echo "OK"
|
Loading…
Add table
Add a link
Reference in a new issue