-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathTaskfile.fuzz.yml
More file actions
38 lines (34 loc) · 981 Bytes
/
Copy pathTaskfile.fuzz.yml
File metadata and controls
38 lines (34 loc) · 981 Bytes
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
version: "3"
tasks:
fuzz:list:
# FUZZ_PKGS narrows discovery, defaulting to the whole module. It exists for
# the images that sit on a cloned fork tree: "./..." there is the entire
# KubeVirt or distribution source, thousands of test packages, some of which
# need a cluster to even build. Callers that do not set it are unaffected.
cmds:
- go test ${FUZZ_PKGS:-./...} -list '^Fuzz'
fuzz:run:
cmds:
- |
go test "${FUZZ_PKG}" \
-run '^$' \
-fuzz "^${FUZZ_TARGET}$" \
-parallel="${FUZZ_WORKERS}" \
-count=1 \
-v
fuzz:coverage:
cmds:
- |
go test "${FUZZ_PKG}" \
-run "^${FUZZ_TARGET}$" \
-count=1 \
-covermode=atomic \
-coverpkg=./... \
-coverprofile="${FUZZ_COVERAGE_FILE}"
fuzz:replay:
cmds:
- |
go test "${FUZZ_PKG}" \
-run "^${FUZZ_TARGET}$" \
-count=1 \
-v