Skip to content

Commit

Permalink
specifying to fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Sep 20, 2024
1 parent 65ec831 commit 9975ee9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LDFLAGSSTRING +=-X main.Version=$(GIT_TAG)
LDFLAGS := -ldflags "$(LDFLAGSSTRING)"

E2ETEST = INTEGRATION=true go test -timeout 1m -v ./e2e -parallel 4 -deploy-config ../.devnet/devnetL1.json
E2EFUZZTEST = INTEGRATION=true go test ./e2e -fuzz -deploy-config ../.devnet/devnetL1.json -v -fuzztime=30m
E2EFUZZTEST = FUZZ=true go test ./e2e -fuzz -deploy-config ../.devnet/devnetL1.json -v -fuzztime=30m
HOLESKYTEST = TESTNET=true go test -timeout 50m -v ./e2e -parallel 4 -deploy-config ../.devnet/devnetL1.json

.PHONY: 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 @@ -8,11 +8,13 @@ import (
var (
runTestnetIntegrationTests bool
runIntegrationTests bool
runFuzzTests bool
)

func ParseEnv() {
runIntegrationTests = os.Getenv("INTEGRATION") == "true" || os.Getenv("INTEGRATION") == "1"
runTestnetIntegrationTests = os.Getenv("TESTNET") == "true" || os.Getenv("TESTNET") == "1"
runFuzzTests = os.Getenv("FUZZ") == "true" || os.Getenv("FUZZ") == "1"
}

func TestMain(m *testing.M) {
Expand Down
10 changes: 5 additions & 5 deletions e2e/server_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
)

func FuzzProxyClientServerIntegration(f *testing.F) {
//if !runIntegrationTests && !runTestnetIntegrationTests {
// f.Skip("Skipping test as INTEGRATION or TESTNET env var not set")
//}
if !runFuzzTests {
f.Skip("Skipping test as FUZZ env var not set")
}

testCfg := e2e.TestConfig(useMemory())
testCfg.UseKeccak256ModeS3 = true
Expand All @@ -39,8 +39,8 @@ func FuzzProxyClientServerIntegration(f *testing.F) {
}

func FuzzOpClientKeccak256MalformedInputs(f *testing.F) {
if !runIntegrationTests || runTestnetIntegrationTests {
f.Skip("Skipping test as INTEGRATION var not set")
if !runFuzzTests {
f.Skip("Skipping test as FUZZ env var not set")
}

testCfg := e2e.TestConfig(useMemory())
Expand Down

0 comments on commit 9975ee9

Please sign in to comment.