2022-01-11 12:42:12 +03:00
|
|
|
CATALA_OPTS?=""
|
2020-12-21 18:15:42 +03:00
|
|
|
|
2022-01-11 12:42:12 +03:00
|
|
|
CLERK_OPTS?=
|
|
|
|
|
|
|
|
CLERK=../_build/default/build_system/clerk.exe --exe "../_build/default/compiler/catala.exe" \
|
|
|
|
$(CLERK_OPTS) --catala-opts=$(CATALA_OPTS) test
|
2020-12-21 18:15:42 +03:00
|
|
|
|
2020-12-11 17:24:10 +03:00
|
|
|
################################
|
|
|
|
# Running legislation unit tests
|
|
|
|
################################
|
|
|
|
|
2022-01-11 12:42:12 +03:00
|
|
|
|
|
|
|
%.catala_en %.catala_fr %.catala_pl: .FORCE
|
|
|
|
@$(CLERK) $@
|
2020-12-11 17:24:10 +03:00
|
|
|
|
2020-12-21 18:02:00 +03:00
|
|
|
TEST_FILES?=$(wildcard */tests/*.catala*)
|
2020-12-11 17:24:10 +03:00
|
|
|
|
2022-01-11 12:42:12 +03:00
|
|
|
pass_tests: $(TEST_FILES)
|
|
|
|
reset_tests: CLERK_OPTS+=--reset
|
|
|
|
reset_tests: $(TEST_FILES)
|
2020-12-11 17:24:10 +03:00
|
|
|
|
2021-01-11 17:19:05 +03:00
|
|
|
.FORCE:
|