From dadf01de60dee3d60b71ba354c40c657cdd4c34d Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Fri, 15 May 2015 16:05:11 +0200 Subject: unskip StateTests/stTransactionTest and use test tx nonce --- tests/vm/gh_test.go | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/vm') diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 2545affe5..612537ddf 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -320,7 +320,6 @@ func TestStateLog(t *testing.T) { } func TestStateTransaction(t *testing.T) { - t.Skip() const fn = "../files/StateTests/stTransactionTest.json" RunVmTest(fn, t) } -- cgit v1.2.3 From 32276e8b01a16840df38aa4b703ab9b2be5b8c74 Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Fri, 15 May 2015 18:49:31 +0200 Subject: Update StateTests and nil create return on failed code deposit --- tests/vm/gh_test.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'tests/vm') diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 612537ddf..2f0d058e3 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -269,8 +269,13 @@ func TestVmLog(t *testing.T) { RunVmTest(fn, t) } -func TestInputLimits1(t *testing.T) { - const fn = "../files/VMTests/vmInputLimits1.json" +func TestInputLimits(t *testing.T) { + const fn = "../files/VMTests/vmInputLimits.json" + RunVmTest(fn, t) +} + +func TestInputLimitsLight(t *testing.T) { + const fn = "../files/VMTests/vmInputLimitsLight.json" RunVmTest(fn, t) } @@ -350,3 +355,8 @@ func TestSolidity(t *testing.T) { const fn = "../files/StateTests/stSolidityTest.json" RunVmTest(fn, t) } + +func TestWallet(t *testing.T) { + const fn = "../files/StateTests/stWalletTest.json" + RunVmTest(fn, t) +} -- cgit v1.2.3 From 619e8a4f0334560fdfa1f525fa1a8389ce13811e Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Fri, 15 May 2015 19:17:40 +0200 Subject: Add StateTests/RandomTests but skip for now --- tests/vm/gh_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tests/vm') diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 2f0d058e3..838050fa1 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -2,7 +2,9 @@ package vm import ( "bytes" + "io/ioutil" "math/big" + "path/filepath" "strconv" "testing" @@ -360,3 +362,22 @@ func TestWallet(t *testing.T) { const fn = "../files/StateTests/stWalletTest.json" RunVmTest(fn, t) } + +func TestRandom(t *testing.T) { + // TODO: fix JSON EOF bug and unskip + t.Skip() + fileNames := make([]string, 1024) + fileInfos, err := ioutil.ReadDir("../files/StateTests/RandomTests") + if err != nil { + t.Errorf("Could not read StateTests/RandomTests dir: %v", err) + return + } + for _, fileInfo := range fileInfos { + fileNames = append(fileNames, fileInfo.Name()) + } + + //for _, f := range fileNames { + path := filepath.Join("../files/StateTests/RandomTests/", fileNames[0]) + RunVmTest(path, t) + //} +} -- cgit v1.2.3