Commit 9617aa8e authored by obscuren's avatar obscuren

tests: added conditional skip on long running VM tests

Set the TEST_VM_COMPLEX env var to test complex vm tests which require a
lot of ram and quite some time.
parent f5af1fdc
......@@ -4,6 +4,7 @@ import (
"bytes"
"io/ioutil"
"math/big"
"os"
"path/filepath"
"strconv"
"testing"
......@@ -347,11 +348,17 @@ func TestMemory(t *testing.T) {
}
func TestMemoryStress(t *testing.T) {
if os.Getenv("TEST_VM_COMPLEX") == "" {
t.Skip()
}
const fn = "../files/StateTests/stMemoryStressTest.json"
RunVmTest(fn, t)
}
func TestQuadraticComplexity(t *testing.T) {
if os.Getenv("TEST_VM_COMPLEX") == "" {
t.Skip()
}
const fn = "../files/StateTests/stQuadraticComplexityTest.json"
RunVmTest(fn, t)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment