diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-11 04:29:42 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-19 04:20:44 +0800 |
commit | b6d40a931286b4c998f58ad074db0a692aeace6e (patch) | |
tree | 491e56fadf83aedceaac460ae51eb778ee8d6465 /tests/init.go | |
parent | c5d6fcbaba545d1078f5411dc67208d5d388222e (diff) | |
download | go-tangerine-b6d40a931286b4c998f58ad074db0a692aeace6e.tar go-tangerine-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.gz go-tangerine-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.bz2 go-tangerine-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.lz go-tangerine-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.xz go-tangerine-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.zst go-tangerine-b6d40a931286b4c998f58ad074db0a692aeace6e.zip |
Cleanup/reorg
Diffstat (limited to 'tests/init.go')
-rw-r--r-- | tests/init.go | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/tests/init.go b/tests/init.go index 4a176698f..e6644ae60 100644 --- a/tests/init.go +++ b/tests/init.go @@ -1,25 +1,21 @@ package tests import ( - "bytes" "encoding/json" - "fmt" "io" "io/ioutil" - // "log" "net/http" "os" - - // logpkg "github.com/ethereum/go-ethereum/logger" + "path/filepath" ) -// var Logger *logpkg.StdLogSystem -// var Log = logpkg.NewLogger("TEST") - -// func init() { -// Logger = logpkg.NewStdLogSystem(os.Stdout, log.LstdFlags, logpkg.InfoLevel) -// logpkg.AddLogSystem(Logger) -// } +var ( + baseDir = filepath.Join(".", "files") + blockTestDir = filepath.Join(baseDir, "BlockTests") + stateTestDir = filepath.Join(baseDir, "StateTests") + transactionTestDir = filepath.Join(baseDir, "TransactionTests") + vmTestDir = filepath.Join(baseDir, "VMTests") +) func readJSON(reader io.Reader, value interface{}) error { data, err := ioutil.ReadAll(reader) @@ -57,4 +53,3 @@ func CreateFileTests(fn string, value interface{}) error { } return nil } -} |