aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-03 17:27:56 +0800
committerobscuren <geffobscura@gmail.com>2015-04-03 17:27:56 +0800
commitc59c826ab45e2e999dc9a173e5bce9727754f544 (patch)
tree8da12f3abb4d40450dc3b42c7328d43088e5d752 /tests
parentfd5c5b2969c74cbd7a159016f6cbddad58c0f461 (diff)
downloadgo-tangerine-c59c826ab45e2e999dc9a173e5bce9727754f544.tar.gz
go-tangerine-c59c826ab45e2e999dc9a173e5bce9727754f544.tar.zst
go-tangerine-c59c826ab45e2e999dc9a173e5bce9727754f544.zip
fixed stack level
Diffstat (limited to 'tests')
-rw-r--r--tests/vm/gh_test.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go
index cd5684dd4..69e2a9819 100644
--- a/tests/vm/gh_test.go
+++ b/tests/vm/gh_test.go
@@ -81,6 +81,13 @@ func RunVmTest(p string, t *testing.T) {
helper.CreateFileTests(t, p, &tests)
for name, test := range tests {
+ /*
+ vm.Debug = true
+ helper.Logger.SetLogLevel(5)
+ if name != "Call1MB1024Calldepth" {
+ continue
+ }
+ */
db, _ := ethdb.NewMemDatabase()
statedb := state.New(common.Hash{}, db)
for addr, account := range test.Pre {
@@ -311,3 +318,24 @@ func TestStateTransaction(t *testing.T) {
const fn = "../files/StateTests/stTransactionTest.json"
RunVmTest(fn, t)
}
+
+func TestCallCreateCallCode(t *testing.T) {
+ const fn = "../files/StateTests/stCallCreateCallCodeTest.json"
+ RunVmTest(fn, t)
+}
+
+func TestMemory(t *testing.T) {
+ const fn = "../files/StateTests/stMemoryTest.json"
+ RunVmTest(fn, t)
+}
+
+func TestQuadraticComplexity(t *testing.T) {
+ t.Skip() // takes too long
+ const fn = "../files/StateTests/stQuadraticComplexityTest.json"
+ RunVmTest(fn, t)
+}
+
+func TestSolidity(t *testing.T) {
+ const fn = "../files/StateTests/stSolidityTest.json"
+ RunVmTest(fn, t)
+}