Commit 53664cf
committed
fuzz: remove
Substantially rewrite the `encode_decode` fuzztest, which had some
ugly/awkward control flow. For the other tests, remove the AFL feature
which has not been used in years and the now-unneeded `extern crate` and
`macro_use` calls.
Now you can fuzz things by just running `cargo hfuzz` directly without
needing to set rustflags etc.
Also run shellcheck on fuzz.sh, add a bunch of quotes to it, and change
the runtime from 100000 iterations (which seems to run in less than a
second on my system for all the existing tests) to a fixed 10 seconds.
This does **not** pull the full rust-bitcoin fuzztest scripts over. I
would like to wait until the "move fuzztests to cron" PR merges in
rust-bitcoin, and consider trying to move all the scripts into a shared
repo rather than copy/pasting them in, before doing so.afl feature, clean up fuzztests a bit1 parent 665f864 commit 53664cf
File tree
5 files changed
+36
-81
lines changed- fuzz
- fuzz_targets
5 files changed
+36
-81
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 13 | | |
28 | 14 | | |
29 | 15 | | |
| |||
39 | 25 | | |
40 | 26 | | |
41 | 27 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
45 | 31 | | |
46 | 32 | | |
47 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
35 | 31 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 32 | + | |
| 33 | + | |
43 | 34 | | |
44 | 35 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 36 | | |
50 | 37 | | |
51 | 38 | | |
| |||
61 | 48 | | |
62 | 49 | | |
63 | 50 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
67 | 54 | | |
68 | 55 | | |
69 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 12 | | |
27 | 13 | | |
28 | 14 | | |
| |||
38 | 24 | | |
39 | 25 | | |
40 | 26 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
44 | 30 | | |
45 | 31 | | |
46 | 32 | | |
| |||
0 commit comments