mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
Updated Makefile to include a test rule
This commit is contained in:
parent
6359f8eaba
commit
9f3d4c3fe2
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
# build everything at once
|
# build everything at once
|
||||||
all: plugins exe
|
all: plugins exe test
|
||||||
|
|
||||||
# build the main executable to make configs
|
# build the main executable to make configs
|
||||||
main: exe
|
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/syslog.so internal/generator/plugins/syslog/syslog.go
|
||||||
go build -buildmode=plugin -o lib/warewulf.so internal/generator/plugins/warewulf/warewulf.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:
|
clean:
|
||||||
rm configurator
|
rm configurator
|
||||||
rm lib/*
|
rm lib/*
|
||||||
|
|
||||||
|
# run all of the unit tests
|
||||||
|
test:
|
||||||
|
go test ./tests --tags=all
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue