-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
64 lines (38 loc) · 1.34 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
63
64
BUILD_COMMAND="python3 ./build.py"
MANYLINUX=sudo docker run --rm -v "$${PWD}:/io"
python:
(cd bindings/python; ${BUILD_COMMAND})
python_manylinux2010: bindgen
${MANYLINUX} manylinux2010 make python
build_manylinux2010:
sudo docker build -t manylinux2010 -f ./setup/DockerFileManylinux2010 ./setup
python_manylinux2014: bindgen
${MANYLINUX} manylinux2014 make python
build_manylinux2014:
sudo docker build -t manylinux2014 -f ./setup/DockerFileManylinux2014 ./setup
update:
(cd graph; cargo update)
(cd bindings/python; cargo update)
(cd code_analysis; cargo update)
(cd fuzzing/graph_harness; cargo update)
(cd fuzzing/graph_harness/fuzz; cargo update)
(cd fuzzing/honggfuzz/; cargo update)
bindgen:
(cd code_analysis; cargo run --release --bin bindgen)
check:
(cd code_analysis; cargo run --release --bin check)
build_metatest_harness:
(cd code_analysis; cargo run --release --bin metatest)
test: test_from_vec test_meta_test test_graph check # test_from_csv
test_graph:
(cd graph; cargo test --release)
test_from_csv:
$(MAKE) -C "./fuzzing/stupid_fuzzer" test_from_csv
test_from_vec:
$(MAKE) -C "./fuzzing/stupid_fuzzer" test_from_vec
test_meta_test:
$(MAKE) -C "./fuzzing/stupid_fuzzer" test_meta_test
hfuzz_from_strings:
$(MAKE) -C "./fuzzing" hfuzz_from_strings
hfuzz_meta_test:
$(MAKE) -C "./fuzzing" hfuzz_meta_test