-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from steffenfritz/add_tests
added fuzzing test for CreateFileTroveDB
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: '3' | ||
env: | ||
VERSION: 1.0.0-DEV-16 | ||
CGO_ENABLED: "1" | ||
|
||
tasks: | ||
build: | ||
cmds: | ||
- go build -gcflags="-m" -buildmode=pie -ldflags "-X main.Version=$VERSION -X main.Build={{.GIT_COMMIT}} -w -s" | ||
vars: | ||
GIT_COMMIT: | ||
sh: git log -n 1 --format=%h | ||
test: | ||
cmds: | ||
- go test -v | ||
fuzz: | ||
cmds: | ||
# workaround with ld_cla needed on MacOS due to a bug in Apples new linker: https://github.com/golang/go/issues/65169 | ||
# update 2024-05-15: With the latest MacOS update 14.5 the legacy linker is not available anymore | ||
#- go test -fuzz=Fuzz -test.fuzztime 10s -ldflags=-extldflags=-Wl,-ld_cla | ||
- go test -fuzz=Fuzz -test.fuzztime 10s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters