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

GB28181: Enable regression test for gb28181. v5.0.122

1. Build regression test tool for gb28181.
2. Run regression test for gb28181.
3. Format go code and eliminate logs.
4. Change base docker to ubuntu20.

PICK 7750bdae10
This commit is contained in:
winlin 2022-12-31 17:15:07 +08:00
parent bc381a0242
commit 3f7c4a7ff4
32 changed files with 3882 additions and 9727 deletions

View file

@ -3,7 +3,7 @@
default: bench test
clean:
rm -f ./objs/srs_bench ./objs/srs_test
rm -f ./objs/srs_bench ./objs/srs_test ./objs/srs_gb28181_test
.format.txt: *.go srs/*.go vnet/*.go janus/*.go gb28181/*.go
gofmt -w .
@ -14,12 +14,16 @@ bench: ./objs/srs_bench
./objs/srs_bench: .format.txt *.go srs/*.go vnet/*.go janus/*.go gb28181/*.go Makefile
go build -mod=vendor -o objs/srs_bench .
test: ./objs/srs_test
test: ./objs/srs_test ./objs/srs_gb28181_test
./objs/srs_test: .format.txt *.go srs/*.go vnet/*.go Makefile
go test ./srs -mod=vendor -c -o ./objs/srs_test
./objs/srs_gb28181_test: .format.txt *.go gb28181/*.go Makefile
go test ./gb28181 -mod=vendor -c -o ./objs/srs_gb28181_test
help:
@echo "Usage: make [bench|test]"
@echo " bench Make the bench to ./objs/srs_bench"
@echo " test Make the test tool to ./objs/srs_test"
@echo " test Make the test tool to ./objs/srs_test and ./objs/srs_gb28181_test"