mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-14 10:45:08 +00:00
21 lines
521 B
Makefile
21 lines
521 B
Makefile
test-highlevel-nodocker:
|
|
go test -v -race -tags enable_highlevel_tests ./internal/highleveltests
|
|
|
|
define DOCKERFILE_HIGHLEVEL_TEST
|
|
FROM $(BASE_IMAGE)
|
|
RUN apk add --no-cache make docker-cli gcc musl-dev
|
|
WORKDIR /s
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . ./
|
|
endef
|
|
export DOCKERFILE_HIGHLEVEL_TEST
|
|
|
|
test-highlevel:
|
|
echo "$$DOCKERFILE_HIGHLEVEL_TEST" | docker build -q . -f - -t temp
|
|
docker run --rm -it \
|
|
-v /var/run/docker.sock:/var/run/docker.sock:ro \
|
|
--network=host \
|
|
temp \
|
|
make test-highlevel-nodocker
|