forked from cerc-io/plugeth
Expand --test switch
This commit is contained in:
parent
0743243dce
commit
d1e589289c
@ -71,14 +71,14 @@ var (
|
|||||||
func runTestWithReader(test string, r io.Reader) error {
|
func runTestWithReader(test string, r io.Reader) error {
|
||||||
glog.Infoln("runTest", test)
|
glog.Infoln("runTest", test)
|
||||||
var err error
|
var err error
|
||||||
switch test {
|
switch strings.ToLower(test) {
|
||||||
case "bt", "BlockTest", "BlockTests", "BlockChainTest":
|
case "bk", "block", "blocktest", "blockchaintest", "blocktests", "blockchaintests":
|
||||||
err = tests.RunBlockTestWithReader(r, skipTests)
|
err = tests.RunBlockTestWithReader(r, skipTests)
|
||||||
case "st", "state", "StateTest", "StateTests":
|
case "st", "state", "statetest", "statetests":
|
||||||
err = tests.RunStateTestWithReader(r, skipTests)
|
err = tests.RunStateTestWithReader(r, skipTests)
|
||||||
case "tx", "TransactionTest", "TransactionTests":
|
case "tx", "transactiontest", "transactiontests":
|
||||||
err = tests.RunTransactionTestsWithReader(r, skipTests)
|
err = tests.RunTransactionTestsWithReader(r, skipTests)
|
||||||
case "vm", "VMTest", "VMTests":
|
case "vm", "vmtest", "vmtests":
|
||||||
err = tests.RunVmTestWithReader(r, skipTests)
|
err = tests.RunVmTestWithReader(r, skipTests)
|
||||||
default:
|
default:
|
||||||
err = fmt.Errorf("Invalid test type specified: %v", test)
|
err = fmt.Errorf("Invalid test type specified: %v", test)
|
||||||
|
Loading…
Reference in New Issue
Block a user