make: test-unit and test-integration targets

Also switch test target to run the test script.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-05-30 00:57:16 +02:00
parent 98dedd3225
commit 55377b2b0f
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 9 additions and 1 deletions

View File

@ -45,7 +45,15 @@ lint:
.PHONY: test .PHONY: test
test: test:
$(BUILDX_CMD) bake test ./hack/test
.PHONY: test-unit
test-unit:
TESTPKGS=./... SKIP_INTEGRATION_TESTS=1 ./hack/test
.PHONY: test
test-integration:
TESTPKGS=./tests ./hack/test
.PHONY: validate-vendor .PHONY: validate-vendor
validate-vendor: validate-vendor: