diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-16 06:27:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-16 06:27:13 +0800 |
commit | 1564f1a020b9edc78bc672f8f2df64b3d0dc55c3 (patch) | |
tree | d898e2b20a6c2e0b5613ae7f669499c5db23b719 /tests/vm | |
parent | 8e24378cc1acb074b56de75bf0baf6feb7927677 (diff) | |
parent | 7ea76fcf993f3fecb55233bdcc2409618d9080b9 (diff) | |
download | dexon-1564f1a020b9edc78bc672f8f2df64b3d0dc55c3.tar dexon-1564f1a020b9edc78bc672f8f2df64b3d0dc55c3.tar.gz dexon-1564f1a020b9edc78bc672f8f2df64b3d0dc55c3.tar.bz2 dexon-1564f1a020b9edc78bc672f8f2df64b3d0dc55c3.tar.lz dexon-1564f1a020b9edc78bc672f8f2df64b3d0dc55c3.tar.xz dexon-1564f1a020b9edc78bc672f8f2df64b3d0dc55c3.tar.zst dexon-1564f1a020b9edc78bc672f8f2df64b3d0dc55c3.zip |
Merge branch 'release/0.9.21'
Diffstat (limited to 'tests/vm')
-rw-r--r-- | tests/vm/gh_test.go | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 2545affe5..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" @@ -269,8 +271,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) } @@ -320,7 +327,6 @@ func TestStateLog(t *testing.T) { } func TestStateTransaction(t *testing.T) { - t.Skip() const fn = "../files/StateTests/stTransactionTest.json" RunVmTest(fn, t) } @@ -351,3 +357,27 @@ 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) +} + +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) + //} +} |