|
9 | 9 | # make clean - Clean build artifacts |
10 | 10 | # make help - Show this help |
11 | 11 |
|
12 | | -.PHONY: all test test-unit test-parity test-browser build clean help \ |
| 12 | +.PHONY: all test test-unit test-parity test-parity-parallel test-parity-all test-slow test-browser build clean help \ |
13 | 13 | _test-unit _test-parity _test-browser dist \ |
14 | 14 | universal build-arm64 build-x64 size-report |
15 | 15 |
|
@@ -70,6 +70,38 @@ test-parity: |
70 | 70 | @echo "" |
71 | 71 | @cd harness && bash test-parity.sh |
72 | 72 |
|
| 73 | +# Shell parity tests (parallel execution for faster CI) |
| 74 | +# Uses run-all-tests.sh to run all test-*.sh scripts concurrently |
| 75 | +# Default: uses nproc jobs. Override with PARALLEL_JOBS env var. |
| 76 | +# Note: Excludes slow tests by default (fuzz, stress, large-data). |
| 77 | +test-parity-parallel: build |
| 78 | + @echo "" |
| 79 | + @echo "$(CYAN)$(BOLD)════════════════════════════════════════════════════════════════$(RESET)" |
| 80 | + @echo "$(CYAN)$(BOLD) Shell Parity Tests (Parallel - Fast)$(RESET)" |
| 81 | + @echo "$(CYAN)$(BOLD)════════════════════════════════════════════════════════════════$(RESET)" |
| 82 | + @echo "" |
| 83 | + @cd harness && bash run-all-tests.sh --fast |
| 84 | + |
| 85 | +# Shell parity tests including slow tests (fuzz, stress, large-data) |
| 86 | +# Use this for thorough CI runs or release validation. |
| 87 | +test-parity-all: build |
| 88 | + @echo "" |
| 89 | + @echo "$(CYAN)$(BOLD)════════════════════════════════════════════════════════════════$(RESET)" |
| 90 | + @echo "$(CYAN)$(BOLD) Shell Parity Tests (Parallel - All)$(RESET)" |
| 91 | + @echo "$(CYAN)$(BOLD)════════════════════════════════════════════════════════════════$(RESET)" |
| 92 | + @echo "" |
| 93 | + @cd harness && bash run-all-tests.sh --all |
| 94 | + |
| 95 | +# Only slow tests (fuzz, stress, large-data) |
| 96 | +# Use for extended testing or CI nightly builds. |
| 97 | +test-slow: build |
| 98 | + @echo "" |
| 99 | + @echo "$(CYAN)$(BOLD)════════════════════════════════════════════════════════════════$(RESET)" |
| 100 | + @echo "$(CYAN)$(BOLD) Slow Tests Only (Fuzz, Stress, Large-Data)$(RESET)" |
| 101 | + @echo "$(CYAN)$(BOLD)════════════════════════════════════════════════════════════════$(RESET)" |
| 102 | + @echo "" |
| 103 | + @cd harness && bash run-all-tests.sh --slow |
| 104 | + |
73 | 105 | # Browser tests (Playwright + sql.js) |
74 | 106 | test-browser: |
75 | 107 | @echo "" |
@@ -277,10 +309,13 @@ help: |
277 | 309 | @echo "$(BOLD)Zig CR-SQLite Makefile$(RESET)" |
278 | 310 | @echo "" |
279 | 311 | @echo "$(BOLD)Test Targets:$(RESET)" |
280 | | - @echo " $(CYAN)make test$(RESET) - Run all tests concurrently (unit + parity + browser)" |
281 | | - @echo " $(CYAN)make test-unit$(RESET) - Run Zig unit tests only" |
282 | | - @echo " $(CYAN)make test-parity$(RESET) - Run shell parity tests only" |
283 | | - @echo " $(CYAN)make test-browser$(RESET) - Run Playwright browser tests only" |
| 312 | + @echo " $(CYAN)make test$(RESET) - Run all tests concurrently (unit + parity + browser)" |
| 313 | + @echo " $(CYAN)make test-unit$(RESET) - Run Zig unit tests only" |
| 314 | + @echo " $(CYAN)make test-parity$(RESET) - Run shell parity tests only (sequential)" |
| 315 | + @echo " $(CYAN)make test-parity-parallel$(RESET) - Run shell parity tests (parallel, excludes slow)" |
| 316 | + @echo " $(CYAN)make test-parity-all$(RESET) - Run ALL shell parity tests (including slow)" |
| 317 | + @echo " $(CYAN)make test-slow$(RESET) - Run only slow tests (fuzz, stress, large-data)" |
| 318 | + @echo " $(CYAN)make test-browser$(RESET) - Run Playwright browser tests only" |
284 | 319 | @echo "" |
285 | 320 | @echo "$(BOLD)Build Targets:$(RESET)" |
286 | 321 | @echo " $(CYAN)make build$(RESET) - Build the Zig extension" |
|
0 commit comments