Skip to content

Commit 33325e0

Browse files
committed
Option to exclude specific tests and drivers.
1 parent 6cd7838 commit 33325e0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,16 @@ else
7171
FLAGS += -DOPDI_USE_OMPT_BACKEND
7272
endif
7373

74+
EXCLUDE_TESTS ?=
75+
EXCLUDE_DRIVERS ?=
76+
7477
# list all test files and extract test names
7578
TEST_FILES = $(wildcard $(TEST_DIR)/Test**.hpp)
76-
TESTS ?= $(patsubst $(TEST_DIR)/Test%.hpp,%,$(TEST_FILES))
79+
TESTS ?= $(filter-out $(EXCLUDE_TESTS), $(patsubst $(TEST_DIR)/Test%.hpp,%,$(TEST_FILES)))
7780

7881
# list all driver files and extract driver names
7982
DRIVER_FILES = $(wildcard $(DRIVER_DIR)/Driver**.hpp)
80-
DRIVERS ?= $(patsubst $(DRIVER_DIR)/Driver%.hpp,%,$(DRIVER_FILES))
83+
DRIVERS ?= $(filter-out $(EXCLUDE_DRIVERS), $(patsubst $(DRIVER_DIR)/Driver%.hpp,%,$(DRIVER_FILES)))
8184

8285
# exclude specific tests on a per-driver basis
8386
DRIVERS_USING_ALL_TESTS = $(filter-out FirstOrderReverseNoParallel FirstOrderForward Primal, $(DRIVERS))

0 commit comments

Comments
 (0)