Fix Fuzzing (#10798)

This commit is contained in:
Nishant Das 2022-06-01 21:15:50 +08:00 committed by GitHub
parent 95c140b512
commit 2cc62cdf40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View File

@ -89,10 +89,10 @@ jobs:
# Use blst tag to allow go and bazel builds for blst. # Use blst tag to allow go and bazel builds for blst.
run: go build -v ./... run: go build -v ./...
# fuzz and blst_disabled leverage go tag based stubs at compile time. # fuzz leverage go tag based stubs at compile time.
# Building with these tags should be checked and enforced at pre-submit. # Building and testing with these tags should be checked and enforced at pre-submit.
- name: Build for fuzzing - name: Test for fuzzing
run: go build -tags=fuzz,blst_disabled ./... run: go test -tags=fuzz,develop ./... -test.run=^Fuzz
# Tests run via Bazel for now... # Tests run via Bazel for now...
# - name: Test # - name: Test

View File

@ -1,5 +1,5 @@
//go:build blst_disabled || fuzz //go:build blst_disabled
// +build blst_disabled fuzz // +build blst_disabled
package blst package blst

View File

@ -2,4 +2,3 @@ base:
language: go language: go
build_tags: build_tags:
- fuzz - fuzz
- blst_disabled