Skip to content

Commit

Permalink
tests: added conditional skip on long running VM tests
Browse files Browse the repository at this point in the history
Set the TEST_VM_COMPLEX env var to test complex vm tests which require a
lot of ram and quite some time.
  • Loading branch information
obscuren committed May 19, 2015
1 parent f5af1fd commit 9617aa8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/vm/gh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"io/ioutil"
"math/big"
"os"
"path/filepath"
"strconv"
"testing"
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 9617aa8

Please sign in to comment.