diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-07-16 19:49:24 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-07-22 18:39:36 +0800 |
commit | d103af5dd479a7d2ce914e3b43d21506597032b4 (patch) | |
tree | 5100e85fee45733878b398f96894de9a17f5d027 | |
parent | ed1d2f858e009477a67689dc31d3fd41921b261e (diff) | |
download | go-tangerine-d103af5dd479a7d2ce914e3b43d21506597032b4.tar go-tangerine-d103af5dd479a7d2ce914e3b43d21506597032b4.tar.gz go-tangerine-d103af5dd479a7d2ce914e3b43d21506597032b4.tar.bz2 go-tangerine-d103af5dd479a7d2ce914e3b43d21506597032b4.tar.lz go-tangerine-d103af5dd479a7d2ce914e3b43d21506597032b4.tar.xz go-tangerine-d103af5dd479a7d2ce914e3b43d21506597032b4.tar.zst go-tangerine-d103af5dd479a7d2ce914e3b43d21506597032b4.zip |
Disassociate test directory from test name
-rw-r--r-- | cmd/ethtest/main.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cmd/ethtest/main.go b/cmd/ethtest/main.go index 0d6286407..93c3eec7b 100644 --- a/cmd/ethtest/main.go +++ b/cmd/ethtest/main.go @@ -36,6 +36,7 @@ var ( defaultTest = "all" defaultDir = "." allTests = []string{"BlockTests", "StateTests", "TransactionTests", "VMTests", "RLPTests"} + testDirMapping = map[string]string{"BlockTests": "BlockchainTests"} skipTests = []string{} TestFlag = cli.StringFlag{ @@ -135,8 +136,13 @@ func runSuite(test, file string) { var err error var files []string if test == defaultTest { - files, err = getFiles(filepath.Join(file, curTest)) - + // check if we have an explicit directory mapping for the test + if _, ok := testDirMapping[curTest]; ok { + files, err = getFiles(filepath.Join(file, testDirMapping[curTest])) + } else { + // otherwise assume test name + files, err = getFiles(filepath.Join(file, curTest)) + } } else { files, err = getFiles(file) } |