mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 20:11:56 -08:00
add -race flag to tests
This commit is contained in:
parent
4afe8428c8
commit
1c19af6251
1 changed files with 2 additions and 3 deletions
5
Makefile
5
Makefile
|
|
@ -32,7 +32,7 @@ format:
|
|||
|
||||
define DOCKERFILE_TEST
|
||||
FROM amd64/$(BASE_IMAGE)
|
||||
RUN apk add --no-cache make docker-cli git ffmpeg
|
||||
RUN apk add --no-cache make docker-cli git ffmpeg gcc musl-dev
|
||||
WORKDIR /s
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
|
@ -48,10 +48,9 @@ test:
|
|||
make test-nodocker
|
||||
|
||||
test-nodocker:
|
||||
$(eval export CGO_ENABLED=0)
|
||||
$(foreach IMG,$(shell echo test-images/*/ | xargs -n1 basename), \
|
||||
docker build -q test-images/$(IMG) -t rtsp-simple-server-test-$(IMG)$(NL))
|
||||
go test -v .
|
||||
go test -race -v .
|
||||
|
||||
define DOCKERFILE_RUN
|
||||
FROM amd64/$(BASE_IMAGE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue