From 9f3d4c3fe2a9caf1501d590c73cb97b42cc04a0a Mon Sep 17 00:00:00 2001 From: David Allen Date: Wed, 10 Jul 2024 09:56:20 -0600 Subject: [PATCH] Updated Makefile to include a test rule --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6b5d2ef..689a632 100644 --- a/Makefile +++ b/Makefile @@ -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