From d1e589289c56140144241a245e1756dbdc7280a0 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Fri, 19 Jun 2015 15:08:53 +0200 Subject: Expand --test switch --- cmd/ethtest/main.go | 10 +++++----- 1 file 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) -- cgit