etcd/test.sh

42 lines
804 B
Bash
Raw Normal View History

#!/bin/sh -e
2014-02-03 05:00:05 +04:00
. ./build
2013-11-28 03:59:05 +04:00
go test -i ./etcd
go test -v ./etcd -race
go test -i ./http
2014-04-12 03:49:41 +04:00
go test -v ./http -race
go test -i ./store
2014-04-12 03:49:41 +04:00
go test -v ./store -race
2014-01-09 03:41:01 +04:00
go test -i ./server
2014-04-12 03:49:41 +04:00
go test -v ./server -race
go test -i ./config
2014-04-12 03:49:41 +04:00
go test -v ./config -race
go test -i ./server/v1/tests
2014-04-12 03:49:41 +04:00
go test -v ./server/v1/tests -race
go test -i ./server/v2/tests
2014-04-12 03:49:41 +04:00
go test -v ./server/v2/tests -race
# Mod is deprecated temporarily.
# go test -i ./mod/lock/v2/tests
# go test -v ./mod/lock/v2/tests
go test -i ./pkg/btrfs
go test -v ./pkg/btrfs
go test -i ./tests/functional
2014-04-12 03:49:41 +04:00
ETCD_BIN_PATH=$(pwd)/bin/etcd go test -v ./tests/functional -race
fmtRes=`gofmt -l $GOFMTPATH`
if [ "$fmtRes" != "" ]; then
echo "Failed to pass golang format checking."
echo "Please gofmt modified go files, or run './build --fmt'."
exit 1
fi