2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
13 : ${YARDSTICK_REPO:='https://gerrit.opnfv.org/gerrit/yardstick'}
14 : ${YARDSTICK_REPO_DIR:='/home/opnfv/repos/yardstick'}
15 : ${YARDSTICK_BRANCH:='master'} # branch, tag, sha1 or refspec
17 : ${RELENG_REPO:='https://gerrit.opnfv.org/gerrit/releng'}
18 : ${RELENG_REPO_DIR:='/home/opnfv/repos/releng'}
19 : ${RELENG_BRANCH:='master'} # branch, tag, sha1 or refspec
23 if git cat-file -e $1^{commit} 2>/dev/null; then
24 # branch, tag or sha1 object
25 git checkout $1 && git pull
28 git fetch --tags --progress $2 $1
29 git checkout FETCH_HEAD
34 echo "INFO: Updating releng -> $RELENG_BRANCH"
35 if [ ! -d $RELENG_REPO_DIR ]; then
36 git clone $RELENG_REPO $RELENG_REPO_DIR
40 git_checkout $RELENG_BRANCH $RELENG_REPO
43 echo "INFO: Updating yardstick -> $YARDSTICK_BRANCH"
44 if [ ! -d $YARDSTICK_REPO_DIR ]; then
45 git clone $YARDSTICK_REPO $YARDSTICK_REPO_DIR
47 cd $YARDSTICK_REPO_DIR
48 git_checkout $YARDSTICK_BRANCH $YARDSTICK_REPO
50 # setup the environment
51 source $YARDSTICK_REPO_DIR/tests/ci/prepare_env.sh
54 $YARDSTICK_REPO_DIR/tests/ci/yardstick-verify $@