aboutsummaryrefslogtreecommitdiffstats
path: root/tests/init.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-06-11 04:29:42 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-06-19 04:20:44 +0800
commitb6d40a931286b4c998f58ad074db0a692aeace6e (patch)
tree491e56fadf83aedceaac460ae51eb778ee8d6465 /tests/init.go
parentc5d6fcbaba545d1078f5411dc67208d5d388222e (diff)
downloaddexon-b6d40a931286b4c998f58ad074db0a692aeace6e.tar
dexon-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.gz
dexon-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.bz2
dexon-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.lz
dexon-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.xz
dexon-b6d40a931286b4c998f58ad074db0a692aeace6e.tar.zst
dexon-b6d40a931286b4c998f58ad074db0a692aeace6e.zip
Cleanup/reorg
Diffstat (limited to 'tests/init.go')
-rw-r--r--tests/init.go21
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
}
-}