mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Skip compiling to js for running the tests
(making iterations quite a bit faster)
This commit is contained in:
parent
7f5b56e8f2
commit
d57eb023dd
4
Makefile
4
Makefile
@ -200,10 +200,10 @@ CLERK=$(CLERK_BIN) --exe $(CATALA_BIN) \
|
|||||||
.FORCE:
|
.FORCE:
|
||||||
|
|
||||||
unit-tests: .FORCE
|
unit-tests: .FORCE
|
||||||
dune runtest
|
dune build @for-tests @runtest
|
||||||
|
|
||||||
#> tests : Run interpreter tests
|
#> tests : Run interpreter tests
|
||||||
tests: .FORCE prepare-install unit-tests
|
tests: .FORCE unit-tests
|
||||||
@$(MAKE) -C tests pass_all_tests
|
@$(MAKE) -C tests pass_all_tests
|
||||||
|
|
||||||
tests/%: .FORCE
|
tests/%: .FORCE
|
||||||
|
10
dune
10
dune
@ -52,6 +52,16 @@
|
|||||||
(name exec)
|
(name exec)
|
||||||
(deps compiler/catala.exe build_system/clerk.exe))
|
(deps compiler/catala.exe build_system/clerk.exe))
|
||||||
|
|
||||||
|
;; This alias contains the minimum requirements to run the tests. It's lighter than building @install which includes the (long) compilation of `catala.js`
|
||||||
|
|
||||||
|
(alias
|
||||||
|
(name for-tests)
|
||||||
|
(deps
|
||||||
|
_build/install/default/bin/catala
|
||||||
|
_build/install/default/bin/clerk
|
||||||
|
_build/install/default/lib/catala/runtime_ocaml/runtime_ocaml.cmi
|
||||||
|
_build/install/default/lib/catala/runtime_ocaml/runtime_ocaml__Runtime.cmi))
|
||||||
|
|
||||||
;; This garbles Clerk output, prefer to run from Makefile
|
;; This garbles Clerk output, prefer to run from Makefile
|
||||||
;; (rule
|
;; (rule
|
||||||
;; (alias runtest)
|
;; (alias runtest)
|
||||||
|
Loading…
Reference in New Issue
Block a user