aboutsummaryrefslogtreecommitdiffstats
path: root/run_unit_tests.sh
blob: 80767d4d3c58c17517d46ed988badfd306bf1251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -o errexit
set -o pipefail

echo "Running unit tests..."
cd .

# start vitual env
virtualenv ./functest_venv
source ./functest_venv/bin/activate

# install python packages
easy_install -U setuptools
easy_install -U pip
pip install -r docker/requirements.pip
pip install -e .

# unit tests
nosetests --with-xunit \
         --with-coverage \
         --cover-package=functest.core.TestCasesBase \
         --cover-package=functest.testcases.Controllers.ODL.OpenDaylightTesting \
         --cover-xml \
         unit_tests

deactivate