Skip to content

Commit 0e40319

Browse files
committed
ci: update CI job to run all the fuzz tests
Just runs `./generate-files.sh`.
1 parent 6ff58af commit 0e40319

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

.github/workflows/fuzz.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
fuzz_target: [
19-
roundtrip_miniscript_str,
20-
roundtrip_miniscript_script,
19+
compile_descriptor,
2120
parse_descriptor,
22-
roundtrip_semantic,
2321
parse_descriptor_secret,
24-
roundtrip_descriptor,
2522
roundtrip_concrete,
26-
compile_descriptor,
23+
roundtrip_descriptor,
24+
roundtrip_miniscript_script,
25+
roundtrip_miniscript_str,
26+
roundtrip_semantic,
2727
]
2828
steps:
2929
- name: Install test dependencies

fuzz/Cargo.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,33 @@ miniscript = { path = "..", features = [ "compiler" ] }
1515
regex = "1.4"
1616

1717
[[bin]]
18-
name = "roundtrip_miniscript_str"
19-
path = "fuzz_targets/roundtrip_miniscript_str.rs"
20-
21-
[[bin]]
22-
name = "roundtrip_miniscript_script"
23-
path = "fuzz_targets/roundtrip_miniscript_script.rs"
18+
name = "compile_descriptor"
19+
path = "fuzz_targets/compile_descriptor.rs"
2420

2521
[[bin]]
2622
name = "parse_descriptor"
2723
path = "fuzz_targets/parse_descriptor.rs"
2824

29-
[[bin]]
30-
name = "roundtrip_semantic"
31-
path = "fuzz_targets/roundtrip_semantic.rs"
32-
3325
[[bin]]
3426
name = "parse_descriptor_secret"
3527
path = "fuzz_targets/parse_descriptor_secret.rs"
3628

29+
[[bin]]
30+
name = "roundtrip_concrete"
31+
path = "fuzz_targets/roundtrip_concrete.rs"
32+
3733
[[bin]]
3834
name = "roundtrip_descriptor"
3935
path = "fuzz_targets/roundtrip_descriptor.rs"
4036

4137
[[bin]]
42-
name = "roundtrip_concrete"
43-
path = "fuzz_targets/roundtrip_concrete.rs"
38+
name = "roundtrip_miniscript_script"
39+
path = "fuzz_targets/roundtrip_miniscript_script.rs"
4440

4541
[[bin]]
46-
name = "compile_descriptor"
47-
path = "fuzz_targets/compile_descriptor.rs"
42+
name = "roundtrip_miniscript_str"
43+
path = "fuzz_targets/roundtrip_miniscript_str.rs"
44+
45+
[[bin]]
46+
name = "roundtrip_semantic"
47+
path = "fuzz_targets/roundtrip_semantic.rs"

fuzz/fuzz-util.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
REPO_DIR=$(git rev-parse --show-toplevel)
44

5+
# Sort order is effected by locale. See `man sort`.
6+
# > Set LC_ALL=C to get the traditional sort order that uses native byte values.
7+
export LC_ALL=C
8+
59
listTargetFiles() {
610
pushd "$REPO_DIR/fuzz" > /dev/null || exit 1
7-
find fuzz_targets/ -type f -name "*.rs"
11+
find fuzz_targets/ -type f -name "*.rs" | sort
812
popd > /dev/null || exit 1
913
}
1014

0 commit comments

Comments
 (0)