# a regression level.
# Regression level 1 is the default
-TESTS = $(REG0_TESTS) $(REG1_TESTS)
+ALL_TESTS = $(REG0_TESTS) $(REG1_TESTS)
ifeq ($(REGRESSION_LEVEL),0)
-TESTS = $(REG0_TESTS)
+ALL_TESTS = $(REG0_TESTS)
endif
ifeq ($(REGRESSION_LEVEL),2)
-TESTS = $(REG0_TESTS) $(REG1_TESTS) $(REG2_TESTS)
+ALL_TESTS = $(REG0_TESTS) $(REG1_TESTS) $(REG2_TESTS)
endif
ifeq ($(REGRESSION_LEVEL),3)
-TESTS = $(REG0_TESTS) $(REG1_TESTS) $(REG2_TESTS) $(REG3_TESTS)
+ALL_TESTS = $(REG0_TESTS) $(REG1_TESTS) $(REG2_TESTS) $(REG3_TESTS)
endif
ifeq ($(REGRESSION_LEVEL),4)
-TESTS = $(REG0_TESTS) $(REG1_TESTS) $(REG2_TESTS) $(REG3_TESTS) $(REG4_TESTS)
+ALL_TESTS = $(REG0_TESTS) $(REG1_TESTS) $(REG2_TESTS) $(REG3_TESTS) $(REG4_TESTS)
endif
+
+TEST_REGEX ?= ".*"
+TESTS = $(shell echo $(ALL_TESTS) | tr ' ' '\n' | grep $(TEST_REGEX) | tr '\n' ' ')