mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: add upgrade test flag
This commit is contained in:
parent
da44e17b58
commit
e5b5cf02d3
14
test
14
test
@ -57,7 +57,18 @@ function unit_tests {
|
||||
}
|
||||
|
||||
function integration_tests {
|
||||
echo "Running integration tests..."
|
||||
if [ "$RELEASE_TEST" = "y" ]; then
|
||||
UPGRADE_VER=$(git tag -l | tail -1)
|
||||
if [ -n "$MANUAL_VER" ]; then
|
||||
# in case, we need to test against different version
|
||||
UPGRADE_VER=$MANUAL_VER
|
||||
fi
|
||||
echo "Running release upgrade tests with" etcd $UPGRADE_VER
|
||||
curl -L https://github.com/coreos/etcd/releases/download/$UPGRADE_VER/etcd-$UPGRADE_VER-linux-amd64.tar.gz -o /tmp/etcd-$UPGRADE_VER-linux-amd64.tar.gz
|
||||
tar xzvf /tmp/etcd-$UPGRADE_VER-linux-amd64.tar.gz -C /tmp/ --strip-components=1
|
||||
mv /tmp/etcd ./bin/etcd-last-release
|
||||
fi;
|
||||
|
||||
go test -timeout 10m -v -cpu 1,2,4 $@ ${REPO_PATH}/e2e &
|
||||
e2epid="$!"
|
||||
go test -timeout 15m -v -cpu 1,2,4 $@ ${REPO_PATH}/integration &
|
||||
@ -210,4 +221,3 @@ if [ -n "$INTEGRATION" ]; then
|
||||
integration_tests
|
||||
fi
|
||||
echo "Success"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user