mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
24 lines
370 B
Bash
Executable File
24 lines
370 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
if [ -z "$PKG" ]; then
|
|
PKG="./store ./server ./server/v2/tests ./mod/lock/v2/tests"
|
|
fi
|
|
|
|
# Get GOPATH, etc from build
|
|
. ./build
|
|
|
|
# use right GOPATH
|
|
export GOPATH="${PWD}"
|
|
|
|
# Unit tests
|
|
for i in $PKG
|
|
do
|
|
go test -i $i
|
|
go test -v $i
|
|
done
|
|
|
|
# Functional tests
|
|
go test -i ./tests/functional
|
|
ETCD_BIN_PATH=$(pwd)/etcd go test -v ./tests/functional
|