Skip to content

Commit

Permalink
Expand --test switch
Browse files Browse the repository at this point in the history
  • Loading branch information
tgerring committed Jun 19, 2015
1 parent 0743243 commit d1e5892
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/ethtest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d1e5892

Please sign in to comment.