-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (45 loc) · 1.15 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SHELL := /bin/bash
EXEC := rhovec
BUILDDIR := _build/default
TESTDIR := $(BUILDDIR)/test
SRCDIR := $(BUILDDIR)/src
all: exe
run: exe
./$(EXEC)
test: test-parse test-eval
test-parse:
dune build test/parse_suite.exe
cd $(TESTDIR) && ./parse_suite.exe --compact
test-eval:
dune build test/eval_suite.exe
cd $(TESTDIR) && ./eval_suite.exe --compact
test-oracle:
dune build test/eval_suite.exe
cd $(TESTDIR) && DUMP=suite.R ./eval_suite.exe test --compact "dummy"
R -f $(TESTDIR)/suite.R
utop:
dune utop lib
debug: bc
ocamldebug $(SRCDIR)/main.bc
exe:
dune build src/main.exe
cp $(SRCDIR)/main.exe $(EXEC)
@chmod 755 $(EXEC)
bc:
dune build src/main.bc
fmt:
@# force this command to always return true
dune build @fmt --auto-promote || true
coverage: clean
dune runtest --instrument-with bisect_ppx --force
@# Run the deparser
cd $(TESTDIR) && DUMP=suite.R ./eval_suite.exe test --compact "dummy"
bisect-ppx-report html
bisect-ppx-report summary
deps:
opam install . --deps-only --locked
clean:
dune clean
rm -rf _coverage
rm -f $(EXEC)
.PHONY: all run test test-parse test-eval testoracle utop debug exe bc fmt coverage deps clean