|
|
@ -4,6 +4,7 @@ import ( |
|
|
|
"bytes" |
|
|
|
"bytes" |
|
|
|
"io/ioutil" |
|
|
|
"io/ioutil" |
|
|
|
"math/big" |
|
|
|
"math/big" |
|
|
|
|
|
|
|
"os" |
|
|
|
"path/filepath" |
|
|
|
"path/filepath" |
|
|
|
"strconv" |
|
|
|
"strconv" |
|
|
|
"testing" |
|
|
|
"testing" |
|
|
@ -347,11 +348,17 @@ func TestMemory(t *testing.T) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func TestMemoryStress(t *testing.T) { |
|
|
|
func TestMemoryStress(t *testing.T) { |
|
|
|
|
|
|
|
if os.Getenv("TEST_VM_COMPLEX") == "" { |
|
|
|
|
|
|
|
t.Skip() |
|
|
|
|
|
|
|
} |
|
|
|
const fn = "../files/StateTests/stMemoryStressTest.json" |
|
|
|
const fn = "../files/StateTests/stMemoryStressTest.json" |
|
|
|
RunVmTest(fn, t) |
|
|
|
RunVmTest(fn, t) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func TestQuadraticComplexity(t *testing.T) { |
|
|
|
func TestQuadraticComplexity(t *testing.T) { |
|
|
|
|
|
|
|
if os.Getenv("TEST_VM_COMPLEX") == "" { |
|
|
|
|
|
|
|
t.Skip() |
|
|
|
|
|
|
|
} |
|
|
|
const fn = "../files/StateTests/stQuadraticComplexityTest.json" |
|
|
|
const fn = "../files/StateTests/stQuadraticComplexityTest.json" |
|
|
|
RunVmTest(fn, t) |
|
|
|
RunVmTest(fn, t) |
|
|
|
} |
|
|
|
} |
|
|
|