summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-04 11:46:31 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-04 11:46:31 -0500
commitef8e954d8b6910fc2ea08baa8dbe3fbfb6ad7c01 (patch)
tree315ff64dfa9938352452f829c0edbc27b4dd7978 /GNUmakefile
parent8c7040e03a1cabf4b9dffad7c99633819e50ea5b (diff)
downloadbfs-ef8e954d8b6910fc2ea08baa8dbe3fbfb6ad7c01.tar.xz
build: Rename test targets
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile25
1 files changed, 15 insertions, 10 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 87a5753..637a63e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -288,21 +288,18 @@ $(BIN)/tests/units: \
$(OBJ)/tests/xtime.o \
$(LIBBFS)
+# Build all the test binaries
tests: $(TESTS)
.PHONY: tests
+# Run the unit tests
+unit-tests: $(BIN)/tests/units
+ $<
+.PHONY: unit-tests
+
# The different flag combinations we check
INTEGRATIONS := default dfs ids eds j1 j2 j3 s
-INTEGRATION_CHECKS := $(INTEGRATIONS:%=check-%)
-
-# All the different checks we run
-CHECKS := check-units $(INTEGRATION_CHECKS)
-
-check: $(CHECKS)
-.PHONY: check $(CHECKS)
-
-check-units: $(BIN)/tests/units
- $<
+INTEGRATION_TESTS := $(INTEGRATIONS:%=check-%)
check-default: $(BIN)/bfs $(TEST_UTILS)
+./tests/tests.sh --make="$(MAKE)" --bfs="$<" $(TEST_FLAGS)
@@ -313,6 +310,14 @@ check-dfs check-ids check-eds: check-%: $(BIN)/bfs $(TEST_UTILS)
check-j1 check-j2 check-j3 check-s: check-%: $(BIN)/bfs $(TEST_UTILS)
+./tests/tests.sh --make="$(MAKE)" --bfs="$< -$*" $(TEST_FLAGS)
+# Run the integration tests
+integration-tests: $(INTEGRATION_TESTS)
+.PHONY: integration-tests
+
+# Run all the tests
+check: unit-tests integration-tests
+.PHONY: check
+
# Custom test flags for distcheck
DISTCHECK_FLAGS := -s TEST_FLAGS="--sudo --verbose=skipped"