-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
36 lines (26 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ligo_compiler?=docker run --rm -v "$$PWD":"$$PWD" -w "$$PWD" ligolang/ligo:1.0.0
PROTOCOL_OPT?=
help:
@echo 'Usage:'
@echo ' test - Run integration tests (written in LIGO)'
@echo ''
.PHONY: test
test: test_ligo_utils test_ligo_math test_ligo_float test_ligo_trigo_float test_ligo_trigo_rational test_ligo_trigo_rational
test_ligo_trigo_rational: rational/test/test_trigo_rational.mligo
@echo "Running integration tests (trigo rational)"
@$(ligo_compiler) run test $^ $(PROTOCOL_OPT)
test_ligo_rational: rational/test/test_rational.mligo
@echo "Running integration tests (Rational)"
@$(ligo_compiler) run test $^ $(PROTOCOL_OPT)
test_ligo_float: float/test/test_float.mligo
@echo "Running integration tests (Float)"
@$(ligo_compiler) run test $^ $(PROTOCOL_OPT)
test_ligo_trigo_float: float/test/test_trigo_float.mligo
@echo "Running integration tests (trigo float)"
@$(ligo_compiler) run test $^ $(PROTOCOL_OPT)
test_ligo_utils: core/test/test_utils.mligo
@echo "Running integration tests (is_implicit, bytes_to_nat)"
@$(ligo_compiler) run test $^ $(PROTOCOL_OPT)
test_ligo_math: core/test/test_math.mligo
@echo "Running integration tests (Math)"
@$(ligo_compiler) run test $^ $(PROTOCOL_OPT)