GitHub OAuth helpers
1; Crowbar fuzz testing for github-oauth
2;
3; Quick check: dune build @fuzz
4; With AFL: crow start --cpus=4
5
6(executable
7 (name fuzz)
8 (modules fuzz fuzz_github_oauth)
9 (libraries github-oauth crowbar crypto-rng.unix))
10
11(executable
12 (name gen_corpus)
13 (modules gen_corpus)
14 (libraries unix))
15
16(rule
17 (alias runtest)
18 (enabled_if
19 (<> %{profile} afl))
20 (deps fuzz.exe)
21 (action
22 (run %{exe:fuzz.exe})))
23
24(rule
25 (alias fuzz)
26 (enabled_if
27 (= %{profile} afl))
28 (deps
29 (source_tree corpus)
30 fuzz.exe
31 gen_corpus.exe)
32 (action
33 (echo "AFL fuzzer built: %{exe:fuzz.exe}\n")))