mirror of
				https://github.com/aler9/gortsplib
				synced 2025-10-30 10:06:28 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			569 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			569 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| test-examples:
 | |
| 	go build -o /dev/null ./examples/...
 | |
| 
 | |
| test-pkg:
 | |
| 	go test -v -race -coverprofile=coverage-pkg.txt ./pkg/...
 | |
| 
 | |
| test-root:
 | |
| 	go test -v -race -coverprofile=coverage-root.txt .
 | |
| 
 | |
| test-nodocker: test-examples test-pkg test-root
 | |
| 
 | |
| define DOCKERFILE_TEST
 | |
| FROM $(BASE_IMAGE)
 | |
| RUN apk add --no-cache make git gcc musl-dev pkgconfig ffmpeg-dev
 | |
| WORKDIR /s
 | |
| COPY go.mod go.sum ./
 | |
| RUN go mod download
 | |
| COPY . ./
 | |
| endef
 | |
| export DOCKERFILE_TEST
 | |
| 
 | |
| test:
 | |
| 	echo "$$DOCKERFILE_TEST" | docker build -q . -f - -t temp
 | |
| 	docker run --rm -it \
 | |
| 	--name temp \
 | |
| 	temp \
 | |
| 	make test-nodocker
 | 
