Skip to content

Commit

Permalink
Restructure Makefile to make it easier to exclude tests
Browse files Browse the repository at this point in the history
* Include all test files in test-x-rkt-files using wildcard
* Drop the rule to build on ./test/racket directory
  • Loading branch information
manphiz committed Jan 19, 2025
1 parent 9e6ea1f commit 60a4eb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,17 @@ test-elisp:
-f ert-run-tests-batch-and-exit

# Files to test using `raco test -x`.
test-x-rkt-files := $(wildcard ./racket/*.rkt) $(wildcard ./racket/commands/*.rkt)
test-x-rkt-files := \
$(wildcard ./racket/*.rkt) \
$(wildcard ./racket/commands/*.rkt) \
$(wildcard ./test/racket/*.rkt)
# Exclude hash-lang.rkt because it will fail to eval on older Rackets;
# normally we only dynamic-require it. Furthermore its tests are in
# ./test/racket/hash-lang-test.rkt.
test-x-rkt-files := $(filter-out ./racket/hash-lang.rkt, $(test-x-rkt-files))

test-racket:
$(RACKET) -l raco test -x $(test-x-rkt-files)
$(RACKET) -l raco test ./test/racket/

test-slow:
$(RACKET) -l raco test --submodule slow-test ./racket/imports.rkt
Expand Down

0 comments on commit 60a4eb2

Please sign in to comment.