From 15f9a01c4200c469460c2395867901861c885acb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 8 Sep 2017 17:10:13 -0400 Subject: maint: Add a `check` target to run tests, and add nescessary dependencies This also downgrades the sys/unix dep. The golang.org/x/sys/unix library can't be updated past commit ab9e364efd8b52800ff7ee48a9ffba4e0ed78dfb (where I have it right now) until go commit 93da0b6e66f24c4c307e0df37ceb102a33306174 (currently on master) makes it in to a release. It narrowly missed the cut-off to be in go 1.9; I expect it to be in go 1.10 around February 2018. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bd8ee0b..4b5506e 100644 --- a/Makefile +++ b/Makefile @@ -90,6 +90,11 @@ $(outdir)/go/src/nshd/nshd_files/paths.go: $(var.)bindir $(var.)conf_file $(var. $(outdir)/go/bin/nshd: $(outdir)/$(files.generate) $(outdir)/go/src/nshd/nshd_files/paths.go files.out.all += $(outdir)/go/src/nshd/nshd_files/paths.go +$(outdir)/check: + GOPATH=$$PWD/go go test $$(GOPATH=$$PWD/go go list -f '{{.ImportPath}}{{"\n"}}{{join .Deps "\n"}}' $(bins_go) | sort -u | grep -e ^nshd -e '\.[^/]*/') +.PHONY: $(outdir)/check +at.targets += $(outdir)/check + # Install -- cgit v1.2.2