Add eqc_mini_run and eqc_run directives to Makefile

This commit is contained in:
Irina Guberman 2017-08-16 23:40:51 -05:00
parent fd796440db
commit cfd654c275
2 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,5 @@
REBAR=rebar3 REBAR=rebar3
RUN_EQC=erl -pa _build/default/lib/enacl/ebin -noshell -s enacl_eqc -s init stop
.PHONY: compile .PHONY: compile
compile: compile:
@ -10,6 +11,12 @@ eqc_compile: compile
eqc_mini_compile: compile eqc_mini_compile: compile
erlc -Dmini -o _build/default/lib/enacl/ebin eqc_test/enacl_eqc.erl erlc -Dmini -o _build/default/lib/enacl/ebin eqc_test/enacl_eqc.erl
eqc_run: eqc_compile
$(RUN_EQC)
eqc_mini_run: eqc_mini_compile
$(RUN_EQC)
.PHONE: console .PHONE: console
console: compile console: compile
$(REBAR) shell $(REBAR) shell

View File

@ -11,6 +11,8 @@
-define(FAULT_RATE(Arg1, Arg2, Arg3), noop_fault_rate(Arg1, Arg2, Arg3)). -define(FAULT_RATE(Arg1, Arg2, Arg3), noop_fault_rate(Arg1, Arg2, Arg3)).
-endif. -endif.
start()->
eqc:module(?MODULE).
noop_fault(_Bad, Good) -> Good. noop_fault(_Bad, Good) -> Good.