Kailash | 9276492 | 2019-07-25 08:21:39 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Copyright 2017-present Open Networking Foundation |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | # sets up a python virtualenv for running voltha system tests |
| 18 | |
| 19 | WORKSPACE=${WORKSPACE:-.} |
| 20 | VENVDIR="${WORKSPACE}/venv-voltha-tests" |
| 21 | |
| 22 | # create venv if it's not yet there |
| 23 | if [ ! -x "${VENVDIR}/bin/activate" ]; then |
| 24 | echo "Setting up dev/test virtualenv in ${VENVDIR} for VOLTHA-System-Tests" |
| 25 | virtualenv -q "${VENVDIR}" --no-site-packages |
| 26 | echo "Virtualenv created." |
| 27 | fi |
| 28 | |
| 29 | echo "Installing python requirements in virtualenv with pip" |
| 30 | source "${VENVDIR}/bin/activate" |
Andy Bavier | 5b80f67 | 2019-08-27 10:31:53 -0700 | [diff] [blame] | 31 | pip install cryptography==2.4.2 robotframework robotframework-requests robotframework-sshlibrary \ |
Kailash | 9276492 | 2019-07-25 08:21:39 -0700 | [diff] [blame] | 32 | pexpect robotframework-httplibrary robotframework-kafkalibrary pygments pyyaml \ |
| 33 | robotframework-databaselibrary psycopg2==2.7.7 paramiko==2.4.2 |
Andy Bavier | 5b80f67 | 2019-08-27 10:31:53 -0700 | [diff] [blame] | 34 | pip install requests tinydb |
Kailash | 9276492 | 2019-07-25 08:21:39 -0700 | [diff] [blame] | 35 | |
Andy Bavier | 5b80f67 | 2019-08-27 10:31:53 -0700 | [diff] [blame] | 36 | echo "VOLTHA-System-Tests virtualenv created. Run 'source ${VENVDIR}/bin/activate'." |