mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
TEST: Upgrade pion to v3.2.9. (#3567)
------ Co-authored-by: chundonglinlin <chundonglinlin@163.com>
This commit is contained in:
parent
900c4cdd97
commit
1545425e06
1383 changed files with 118469 additions and 41421 deletions
30
trunk/3rdparty/srs-bench/vendor/github.com/pion/stun/Makefile
generated
vendored
30
trunk/3rdparty/srs-bench/vendor/github.com/pion/stun/Makefile
generated
vendored
|
@ -1,3 +1,6 @@
|
|||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
VERSION := $(shell git describe --tags | sed -e 's/^v//g' | awk -F "-" '{print $$1}')
|
||||
ITERATION := $(shell git describe --tags --long | awk -F "-" '{print $$2}')
|
||||
GO_VERSION=$(shell gobuild -v)
|
||||
|
@ -9,22 +12,6 @@ bench:
|
|||
go test -bench .
|
||||
bench-record:
|
||||
$(GO) test -bench . > "benchmarks/stun-go-$(GO_VERSION).txt"
|
||||
fuzz-prepare-msg:
|
||||
go-fuzz-build -func FuzzMessage -o stun-msg-fuzz.zip github.com/pion/stun
|
||||
fuzz-prepare-typ:
|
||||
go-fuzz-build -func FuzzType -o stun-typ-fuzz.zip github.com/pion/stun
|
||||
fuzz-prepare-setters:
|
||||
go-fuzz-build -func FuzzSetters -o stun-setters-fuzz.zip github.com/pion/stun
|
||||
fuzz-msg:
|
||||
go-fuzz -bin=./stun-msg-fuzz.zip -workdir=fuzz/stun-msg
|
||||
fuzz-typ:
|
||||
go-fuzz -bin=./stun-typ-fuzz.zip -workdir=fuzz/stun-typ
|
||||
fuzz-setters:
|
||||
go-fuzz -bin=./stun-setters-fuzz.zip -workdir=fuzz/stun-setters
|
||||
fuzz-test:
|
||||
go test -tags gofuzz -run TestFuzz -v .
|
||||
fuzz-reset-setters:
|
||||
rm -f -v -r stun-setters-fuzz.zip fuzz/stun-setters
|
||||
lint:
|
||||
@golangci-lint run ./...
|
||||
@echo "ok"
|
||||
|
@ -39,23 +26,14 @@ bench-compare:
|
|||
go test -bench . > bench.go-16
|
||||
go-tip test -bench . > bench.go-tip
|
||||
@benchcmp bench.go-16 bench.go-tip
|
||||
install-fuzz:
|
||||
go get -u github.com/dvyukov/go-fuzz/go-fuzz-build
|
||||
go get github.com/dvyukov/go-fuzz/go-fuzz
|
||||
install:
|
||||
go get gortc.io/api
|
||||
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
docker-build:
|
||||
docker build -t pion/stun .
|
||||
test-integration:
|
||||
@cd e2e && bash ./test.sh
|
||||
prepush: assert test lint test-integration
|
||||
prepush: test lint test-integration
|
||||
check-api:
|
||||
@cd api && bash ./check.sh
|
||||
assert:
|
||||
bash .github/assert-contributors.sh
|
||||
bash .github/lint-disallowed-functions-in-library.sh
|
||||
bash .github/lint-commit-message.sh
|
||||
test:
|
||||
@./go.test.sh
|
||||
clean:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue