Add v2 unit tests.

This commit is contained in:
Ben Johnson
2013-10-17 18:11:11 -06:00
parent 088a01f19c
commit dcef04b796
30 changed files with 2745 additions and 54 deletions

12
test.sh
View File

@@ -1,11 +1,15 @@
#!/bin/sh
set -e
# Get GOPATH, etc from build
. ./build
# Unit tests
echo "-- UNIT TESTS --"
go test -v ./server/v2/tests
go test -v ./store
# Get GOPATH, etc from build
echo "-- BUILDING BINARY --"
. ./build
# Functional tests
ETCD_BIN_PATH=$(pwd)/etcd go test -v ./tests/functional
echo "-- FUNCTIONAL TESTS --"
ETCD_BIN_PATH=$(PWD)/etcd go test -v ./tests/functional