diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-19 21:08:53 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-19 21:08:53 +0800 |
commit | d1e589289c56140144241a245e1756dbdc7280a0 (patch) | |
tree | 91c5f7254eec7276f0b77d9aebd549062183f8d0 /cmd | |
parent | 0743243dce05c38c1f4949e44467d20a22a1f743 (diff) | |
download | dexon-d1e589289c56140144241a245e1756dbdc7280a0.tar dexon-d1e589289c56140144241a245e1756dbdc7280a0.tar.gz dexon-d1e589289c56140144241a245e1756dbdc7280a0.tar.bz2 dexon-d1e589289c56140144241a245e1756dbdc7280a0.tar.lz dexon-d1e589289c56140144241a245e1756dbdc7280a0.tar.xz dexon-d1e589289c56140144241a245e1756dbdc7280a0.tar.zst dexon-d1e589289c56140144241a245e1756dbdc7280a0.zip |
Expand --test switch
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ethtest/main.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/ethtest/main.go b/cmd/ethtest/main.go index c6073ce98..278d2133f 100644 --- a/cmd/ethtest/main.go +++ b/cmd/ethtest/main.go @@ -71,14 +71,14 @@ var ( func runTestWithReader(test string, r io.Reader) error { glog.Infoln("runTest", test) var err error - switch test { - case "bt", "BlockTest", "BlockTests", "BlockChainTest": + switch strings.ToLower(test) { + case "bk", "block", "blocktest", "blockchaintest", "blocktests", "blockchaintests": err = tests.RunBlockTestWithReader(r, skipTests) - case "st", "state", "StateTest", "StateTests": + case "st", "state", "statetest", "statetests": err = tests.RunStateTestWithReader(r, skipTests) - case "tx", "TransactionTest", "TransactionTests": + case "tx", "transactiontest", "transactiontests": err = tests.RunTransactionTestsWithReader(r, skipTests) - case "vm", "VMTest", "VMTests": + case "vm", "vmtest", "vmtests": err = tests.RunVmTestWithReader(r, skipTests) default: err = fmt.Errorf("Invalid test type specified: %v", test) |