Skip to content

Commit

Permalink
Makefile: run unit tests in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
neolynx committed Jun 8, 2024
1 parent d8f081b commit 471872d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ version: ## Print aptly version
docker-build-system-tests: ## Build system-test docker image
docker build -f system/Dockerfile --no-cache . -t aptly-system-test

docker-unit-tests: ## Run unit tests in docker container
docker run -t --rm -v ${PWD}:/app aptly-system-test go test -v ./... -gocheck.v=true

docker-system-tests: ## Run system tests in docker container (add TEST=t04_mirror to run only specific tests)
docker run -t --rm -v ${PWD}:/app aptly-system-test /app/system/run-system-tests $(TEST)

Expand Down

0 comments on commit 471872d

Please sign in to comment.