From 73faaccbe130810a4aa8b5fcae9fed0ba96e9ecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20H=2E=20Fjeld?= Date: Sat, 21 Sep 2024 19:45:20 +0200 Subject: [PATCH] feat: add fast and benchmark test targets to Makefile --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 5d92871..a294eb4 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,17 @@ SQL_FILES = $(wildcard sql/[0-9]*_*.sql) REGRESS = $(if $(TESTS),$(TESTS),$(patsubst sql/%.sql,%,$(SQL_FILES))) +# New REGRESS_FAST variable excluding the benchmark test +REGRESS_FAST = $(filter-out 43_benchmark,$(REGRESS)) + +# New target for fast regression tests +fast-tests: + $(MAKE) installcheck REGRESS="$(REGRESS_FAST)" + +# New target for benchmark regression test +benchmark: + $(MAKE) installcheck REGRESS="43_benchmark" + OBJS = sql_saga.o periods.o no_gaps.o $(WIN32RES) PG_CONFIG = pg_config