Skip to content

Commit

Permalink
adding back fuzz test boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Dec 19, 2024
1 parent 226ecac commit d90e9a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LDFLAGSSTRING +=-X main.Date=$(BUILD_TIME)
LDFLAGSSTRING +=-X main.Version=$(GIT_TAG)
LDFLAGS := -ldflags "$(LDFLAGSSTRING)"

E2EFUZZTEST = go test ./e2e -fuzz -v -fuzztime=30m
E2EFUZZTEST = FUZZ=true go test ./e2e -fuzz -v -fuzztime=15m

.PHONY: eigenda-proxy
eigenda-proxy:
Expand Down
2 changes: 2 additions & 0 deletions e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ import (
var (
runTestnetIntegrationTests bool // holesky tests
runIntegrationTests bool // memstore tests
runFuzzTests bool // fuzz tests
)

// ParseEnv ... reads testing cfg fields. Go test flags don't work for this library due to the dependency on Optimism's E2E framework
// which initializes test flags per init function which is called before an init in this package.
func ParseEnv() {
runFuzzTests = os.Getenv("FUZZ") == "true" || os.Getenv("FUZZ") == "1"
if runIntegrationTests && runTestnetIntegrationTests {
panic("only one of INTEGRATION=true or TESTNET=true env var can be set")
}
Expand Down
3 changes: 3 additions & 0 deletions e2e/server_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import (
// FuzzProxyClientServerIntegrationAndOpClientKeccak256MalformedInputs will fuzz the proxy client server integration
// and op client keccak256 with malformed inputs. This is never meant to be fuzzed with EigenDA.
func FuzzProxyClientServerIntegration(f *testing.F) {
if !runFuzzTests {
f.Skip("Skipping test as FUZZ env var not set")
}

tsConfig := e2e.TestSuiteConfig(e2e.TestConfig(useMemory()))
ts, kill := e2e.CreateTestSuite(tsConfig)
Expand Down

0 comments on commit d90e9a0

Please sign in to comment.