diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-16 01:31:41 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-16 01:31:41 +0800 |
commit | 98998534cb0f415fb85826d60607652240022c57 (patch) | |
tree | 5beccfd36ded24e746e562557de88b886a79a4fa /tests/vm | |
parent | 164ba56a60411161f67aad4eda5301b89a27b1a4 (diff) | |
parent | 619e8a4f0334560fdfa1f525fa1a8389ce13811e (diff) | |
download | dexon-98998534cb0f415fb85826d60607652240022c57.tar dexon-98998534cb0f415fb85826d60607652240022c57.tar.gz dexon-98998534cb0f415fb85826d60607652240022c57.tar.bz2 dexon-98998534cb0f415fb85826d60607652240022c57.tar.lz dexon-98998534cb0f415fb85826d60607652240022c57.tar.xz dexon-98998534cb0f415fb85826d60607652240022c57.tar.zst dexon-98998534cb0f415fb85826d60607652240022c57.zip |
Merge pull request #995 from Gustav-Simonsson/update_state_tests_and_vm_create_return
Update state tests and vm create return
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) + //} +} |