mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Add TESTFLAGS to Makefile targets
This commit allows to send `go test` arguments to current makefile `test` and `localtest` targets. A usage example would be `make test TESTFLAGS="-run=SomeTestFunction"` to easily run a single test function. Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
@@ -17,10 +17,10 @@ runctestimage:
|
||||
docker build -t $(RUNC_TEST_IMAGE) -f $(TEST_DOCKERFILE) .
|
||||
|
||||
test: runctestimage
|
||||
docker run --privileged --rm -v $(CURDIR):/go/src/$(PROJECT) $(RUNC_TEST_IMAGE) make localtest
|
||||
docker run -e TESTFLAGS --privileged --rm -v $(CURDIR):/go/src/$(PROJECT) $(RUNC_TEST_IMAGE) make localtest
|
||||
|
||||
localtest:
|
||||
go test -v ./...
|
||||
go test ${TESTFLAGS} -v ./...
|
||||
|
||||
install:
|
||||
cp runc /usr/local/bin/runc
|
||||
|
||||
Reference in New Issue
Block a user