Skip to content

Commit

Permalink
change fuzz build tag to fluxfuzz
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskar Jaiswal <[email protected]>
  • Loading branch information
Sanskar Jaiswal committed May 9, 2022
1 parent 3be256f commit cf31abd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/fuzz/age_fuzzer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build gofuzz
// +build gofuzz
//go:build fluxfuzz
// +build fluxfuzz

/*
Copyright 2022 The Flux authors
Expand Down
4 changes: 2 additions & 2 deletions tests/fuzz/controllers_fuzzer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build gofuzz
// +build gofuzz
//go:build fluxfuzz
// +build fluxfuzz

/*
Copyright 2021 The Flux authors
Expand Down
8 changes: 5 additions & 3 deletions tests/fuzz/oss_fuzz_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ pushd "${PROJECT_PATH}"

go get -d github.com/AdaLogics/go-fuzz-headers

compile_go_fuzzer "${PROJECT_PATH}/internal/sops/age/" FuzzAge fuzz_age
compile_go_fuzzer "${PROJECT_PATH}/internal/sops/pgp/" FuzzPgp fuzz_pgp
# TODO: The tag `fluxfuzz` is temporary. It should be removed from here and replaced everywhere
# else by `gofuzz` when this issue is resolved: https://github.com/aws/aws-sdk-go-v2/issues/1693
compile_go_fuzzer "${PROJECT_PATH}/internal/sops/age/" FuzzAge fuzz_age fluxfuzz
compile_go_fuzzer "${PROJECT_PATH}/internal/sops/pgp/" FuzzPgp fuzz_pgp fluxfuzz

popd

Expand All @@ -64,6 +66,6 @@ echo "replace github.com/fluxcd/kustomize-controller => ../../" >> go.mod

go mod download

compile_go_fuzzer "${PROJECT_PATH}/tests/fuzz/" FuzzControllers fuzz_controllers
compile_go_fuzzer "${PROJECT_PATH}/tests/fuzz/" FuzzControllers fuzz_controllers fluxfuzz

popd
4 changes: 2 additions & 2 deletions tests/fuzz/pgp_fuzzer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build gofuzz
// +build gofuzz
//go:build fluxfuzz
// +build fluxfuzz

/*
Copyright 2022 The Flux authors
Expand Down

0 comments on commit cf31abd

Please sign in to comment.