From 6ab277bf9e30d9b45ed2133ce50db4b7a3ae19fe Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 2 Jan 2026 14:13:06 -0500 Subject: [PATCH] test: add ndpgen plugin tests in the pipeline and update Makefile Signed-off-by: Deluan --- .github/workflows/pipeline.yml | 7 +++++++ Makefile | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 7d4fbc0f4..14f058ee5 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -118,6 +118,13 @@ jobs: pkg-config --define-prefix --cflags --libs taglib # for debugging go test -shuffle=on -tags netgo -race ./... -v + - name: Test ndpgen + run: | + cd plugins/cmd/ndpgen + go test -shuffle=on -v + go build -o ndpgen . + ./ndpgen --help + js: name: Test JS code runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 78a7c33bb..4073bdfb7 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,11 @@ test: ##@Development Run Go tests. Use PKG variable to specify packages to test, go test -tags netgo $(PKG) .PHONY: test -testall: test test-i18n test-js ##@Development Run Go and JS tests +test-ndpgen: ##@Development Run tests for ndpgen plugin + cd plugins/cmd/ndpgen && go test ./...... +.PHONY: test-ndpgen + +testall: test test-ndpgen test-i18n test-js ##@Development Run Go and JS tests .PHONY: testall test-race: ##@Development Run Go tests with race detector