aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vm_test_util.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-06-11 05:04:06 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-06-19 04:20:44 +0800
commitac0637c41332de1f49fb0955f4fbe0fb908a77d5 (patch)
tree9e87e69656cc317f300ba59692eeb525a230f0bf /tests/vm_test_util.go
parentb6d40a931286b4c998f58ad074db0a692aeace6e (diff)
downloadgo-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.tar
go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.tar.gz
go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.tar.bz2
go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.tar.lz
go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.tar.xz
go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.tar.zst
go-tangerine-ac0637c41332de1f49fb0955f4fbe0fb908a77d5.zip
More consistent test interfaces + test skipping
Diffstat (limited to 'tests/vm_test_util.go')
-rw-r--r--tests/vm_test_util.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/vm_test_util.go b/tests/vm_test_util.go
index 066217620..55036ed82 100644
--- a/tests/vm_test_util.go
+++ b/tests/vm_test_util.go
@@ -13,6 +13,10 @@ import (
)
func RunVmTest(p string) error {
+ skipTest := make(map[string]bool, len(vmSkipTests))
+ for _, name := range vmSkipTests {
+ skipTest[name] = true
+ }
tests := make(map[string]VmTest)
err := CreateFileTests(p, &tests)
@@ -21,14 +25,10 @@ func RunVmTest(p string) error {
}
for name, test := range tests {
- /*
- vm.Debug = true
- glog.SetV(4)
- glog.SetToStderr(true)
- if name != "Call50000_sha256" {
- continue
- }
- */
+ if skipTest[name] {
+ fmt.Println("Skipping state test", name)
+ return nil
+ }
db, _ := ethdb.NewMemDatabase()
statedb := state.New(common.Hash{}, db)
for addr, account := range test.Pre {