diff options
| author | James O'Doherty <james@theodohertyfamily.com> | 2026-05-22 10:51:00 -0400 |
|---|---|---|
| committer | James O'Doherty <james@theodohertyfamily.com> | 2026-05-22 10:51:00 -0400 |
| commit | cefff85a054d64f124aa1f3e91b9425695aa210b (patch) | |
| tree | 4ad2df3ba37a52ee246da327c310aabaecb2b896 /tests/e2e/fuzz_args_test.go | |
| parent | 9131b0004e7c640cc028179e1d049a4c62210d94 (diff) | |
Update Makefile and README to standardize build/test process and lauch fuzzer
Diffstat (limited to 'tests/e2e/fuzz_args_test.go')
| -rw-r--r-- | tests/e2e/fuzz_args_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/e2e/fuzz_args_test.go b/tests/e2e/fuzz_args_test.go index 0d4a45b..0d71e0e 100644 --- a/tests/e2e/fuzz_args_test.go +++ b/tests/e2e/fuzz_args_test.go @@ -8,8 +8,6 @@ import ( ) func FuzzArgumentIntegrity(f *testing.F) { - binaryPath := GetBinaryPath() - f.Add("; rm -rf /") f.Add("$(whoami)") f.Add(" spaced ") @@ -17,6 +15,11 @@ func FuzzArgumentIntegrity(f *testing.F) { f.Add("\x00null\x00") f.Fuzz(func(t *testing.T, payload string) { + binaryPath, err := GetBinaryPath() + if err != nil { + t.Skip("Skipping E2E fuzz test: wg-wrap binary not found (WG_WRAP_BIN not set)") + } + out, err := exec.Command(binaryPath, "test-args", payload).CombinedOutput() if strings.Contains(payload, "\x00") { |
