Updated Makefile to include a test rule

This commit is contained in:
David Allen 2024-07-10 09:56:20 -06:00
parent 6359f8eaba
commit 9f3d4c3fe2
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -1,6 +1,6 @@
# build everything at once
all: plugins exe
all: plugins exe test
# build the main executable to make configs
main: exe
@ -21,8 +21,11 @@ plugins:
go build -buildmode=plugin -o lib/syslog.so internal/generator/plugins/syslog/syslog.go
go build -buildmode=plugin -o lib/warewulf.so internal/generator/plugins/warewulf/warewulf.go
# remove executable and all plugins
# remove executable and all built plugins
clean:
rm configurator
rm lib/*
# run all of the unit tests
test:
go test ./tests --tags=all