From 46200e12d830a9a02361d1ed219ed079e376c24e Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Fri, 23 Feb 2024 05:34:49 +1100 Subject: [PATCH] Add `unittests` make target (#11628) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 236d2d98e..3c017af47 100644 --- a/Makefile +++ b/Makefile @@ -303,6 +303,10 @@ install-completions: install -C ./scripts/bash-completion/lotus /usr/share/bash-completion/completions/lotus install -C ./scripts/zsh-completion/lotus /usr/local/share/zsh/site-functions/_lotus +unittests: + @$(GOCC) test $(shell go list ./... | grep -v /lotus/itests) +.PHONY: unittests + clean: rm -rf $(CLEAN) $(BINS) -$(MAKE) -C $(FFI_PATH) clean