Makefile: add unit-tests target
Add Makefile target to run all unit tests. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
b41705adfb
commit
3df67e9adb
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
|
@ -74,6 +74,7 @@ help:
|
|||
@echo
|
||||
@echo " help: Print this usage information."
|
||||
@echo " man: Generate all man-pages"
|
||||
@echo " unit-tests: Run unit tests"
|
||||
|
||||
$(BUILDDIR)/:
|
||||
mkdir -p "$@"
|
||||
|
|
@ -195,6 +196,10 @@ worker-key-pair: ca
|
|||
# delete the request
|
||||
rm /etc/osbuild-composer/worker-csr.pem
|
||||
|
||||
.PHONY: unit-tests
|
||||
unit-tests:
|
||||
go test -race ./...
|
||||
go test -race ./internal/dnfjson/... -force-dnf
|
||||
|
||||
#
|
||||
# Building packages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue