"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Anna Vyalkova <cyber+misc@sysrq.in>
Subject:
[PATCH 1/2] portable: Makefile: support standard 'check' target
To:
gameoftrees@openbsd.org
Date:
Wed, 8 Mar 2023 23:52:38 +0500

Download raw body.

Thread
---
 Makefile.am | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index f7b80f50c..2b17e07b4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,14 +15,18 @@ LIBS += -lm $(zlib_LIBS) $(libbsd_LIBS)
 AM_CPPFLAGS += $(libbsd_CFLAGS)
 
 TEST_TARGETS=compat regress-delta regress-deltify regress-fetch regress-idset \
-	     regress-path regress-cmdline
+	     regress-path
 GOT_TEST_ROOT=/tmp
 
 .PHONY: compat
 compat:
 	$(MAKE) -C compat
 
-tests: $(TEST_TARGETS)
+check-local: $(TEST_TARGETS)
+
+postinstallcheck: regress-cmdline
+
+tests: check postinstallcheck
 
 regress-cmdline:
 	(export PLATFORM=@PLATFORM@; 				\
-- 
2.39.2