Skip to content

Commit

Permalink
only rebuild test executable if idr files change. restore test config…
Browse files Browse the repository at this point in the history
… after tests run
  • Loading branch information
mattpolzin committed Jul 7, 2024
1 parent df4089a commit 427e70f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ harmony ?= $(shell realpath "${PWD}/../harmony")

INTERACTIVE ?= "--interactive"

IDR_SOURCES := $(wildcard *.idr)

build/exec/test: $(IDR_SOURCES)
idris2 --build harmony-tests.ipkg

export harmony
test:
idris2 --build harmony-tests.ipkg && \
./build/exec/test runtests $(INTERACTIVE)
test: build/exec/test
cp config-command/harmony.json harmony.json.bak && \
build/exec/test runtests $(INTERACTIVE) && \
mv harmony.json.bak config-command/harmony.json

clean:
rm -rf ./test/build

0 comments on commit 427e70f

Please sign in to comment.