Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework of clerk run #789

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ build.ninja
.#*
.envrc
.direnv

**/__pycache__/

.catleg_secrets.toml
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,16 @@ CLERK_TEST=$(CLERK_BIN) test --exe $(CATALA_BIN) \
unit-tests: .FORCE
dune build @for-tests @runtest

BACKEND_TEST_DIRS = arithmetic array bool date dec default enum exception func io money monomorphisation name_resolution parsing scope struct tuples typing variable_state

BACKEND_TESTS = $(wildcard $(BACKEND_TEST_DIRS:%=tests/%/good/*.catala_*))

backend-tests-%: $(BACKEND_TESTS)
@echo ">> RUNNING BACKEND TESTS FOR $* <<"
@clerk run $^ --command interpret --backend $*

backend-tests: backend-tests-ocaml backend-tests-c backend-tests-python

#> test : Run interpreter tests
test: .FORCE unit-tests
$(CLERK_TEST) tests doc
Expand Down
Loading
Loading