forked from AeneasVerif/charon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (46 loc) · 1.65 KB
/
Copy pathMakefile
File metadata and controls
54 lines (46 loc) · 1.65 KB
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
.PHONY: all
all: build build-tests build-tests-nll
.PHONY: build
build:
cd charon && make
SRC = $(TESTS)/src
OPTIONS = --dest $(TESTS)/llbc
.PHONY: build-tests
build-tests:
cd tests && make
.PHONY: build-tests-nll
build-tests-nll:
cd tests-nll && make
.PHONY: test
test: build build-tests build-tests-nll \
test-nested_borrows test-no_nested_borrows test-loops test-hashmap \
test-paper test-hashmap_main \
test-matches test-matches_duplicate test-external \
test-nll-betree_nll test-nll-betree_main
test-nested_borrows: OPTIONS += --no-code-duplication
test-no_nested_borrows: OPTIONS += --no-code-duplication
test-loops: OPTIONS += --no-code-duplication
#test-hashmap: OPTIONS += --no-code-duplication
#test-hashmap_main: OPTIONS += --no-code-duplication
test-hashmap_main: OPTIONS += --opaque=hashmap_utils
test-paper: OPTIONS += --no-code-duplication
# Possible to add `OPTIONS += --no-code-duplication` if we use the optimized MIR
test-matches:
test-external: OPTIONS += --no-code-duplication
test-matches_duplicate:
#test-nll-betree_nll: OPTIONS += --no-code-duplication
# Possible to add `OPTIONS += --no-code-duplication` if we use the optimized MIR
test-nll-betree_main:
test-nll-betree_main: OPTIONS += --opaque=betree_utils
.PHONY: test-%
test-%: TESTS=../tests
test-%:
cd charon && cargo run $(SRC)/$*.rs $(OPTIONS)
# I would like to do this, however there is a problem when loading libstd.so.
# I guess we need to indicate the path to the installed Rust library, sth?
# charon/target/debug/charon $(SRC)/$*.rs $(OPTIONS)
.PHONY: test-nll-%
test-nll-%: TESTS=../tests-nll
test-nll-%: OPTIONS += --nll
test-nll-%:
cd charon && cargo run $(SRC)/$*.rs $(OPTIONS)