diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-20 06:20:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-20 06:21:24 +0800 |
commit | 9617aa8e19b660ead51c201b76c510ea079f40eb (patch) | |
tree | 665d49ed5081d1b06c21cc6b4e82c0898f8d94d3 /tests | |
parent | f5af1fdca8dc7d44b4c2025195c19819886729b6 (diff) | |
download | go-tangerine-9617aa8e19b660ead51c201b76c510ea079f40eb.tar.gz go-tangerine-9617aa8e19b660ead51c201b76c510ea079f40eb.tar.zst go-tangerine-9617aa8e19b660ead51c201b76c510ea079f40eb.zip |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vm/gh_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 827d8ec8b..68eb4cb45 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -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) } |