Skip to content

Commit b36c49e

Browse files
committed
tests: Fix EVMC initialization in tests
1 parent 3dfb3bf commit b36c49e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/init_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
"testing"
3333

3434
"github.com/ethereum/go-ethereum/params"
35+
"github.com/ethereum/go-ethereum/core/vm"
3536
)
3637

3738
// Command line flags to configure the interpreters.
@@ -42,6 +43,15 @@ var (
4243

4344
func TestMain(m *testing.M) {
4445
flag.Parse()
46+
47+
if (*testEVM != "") {
48+
vm.InitEVMCEVM(*testEVM)
49+
}
50+
51+
if (*testEWASM != "") {
52+
vm.InitEVMCEwasm(*testEWASM)
53+
}
54+
4555
os.Exit(m.Run())
4656
}
4757

0 commit comments

Comments
 (0)