| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "os" |
| 5 | "testing" |
| 6 | |
| 7 | "github.com/tetratelabs/wazero/internal/testing/nodiff" |
| 8 | ) |
| 9 | |
| 10 | // TestReRunFailedRequireNoDiffCase re-runs the failed case specified by WASM_BINARY_NAME in testdata directory. |
| 11 | func TestReRunFailedRequireNoDiffCase(t *testing.T) { |
| 12 | binaryPath := os.Getenv("WASM_BINARY_PATH") |
| 13 | |
| 14 | wasmBin, err := os.ReadFile(binaryPath) |
| 15 | if err != nil { |
| 16 | t.Skip(err) |
| 17 | } |
| 18 | |
| 19 | nodiff.RequireNoDiffT(t, wasmBin, true, true) |
| 20 | } |