forked from Blazemeter/taurus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvirtualenv-test.bash
executable file
·30 lines (21 loc) · 1.02 KB
/
virtualenv-test.bash
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
27
28
29
#!/bin/bash -xe
# setup env
virtualenv --clear build
source build/bin/activate
# install depends
pip install --upgrade colorlog pyyaml psutil lxml cssselect nose urwid coverage six pylint selenium progressbar33 locustio pyvirtualdisplay
pylint -d R0903,R0904,C0301,C0302,C0111,E1103,R0201,R0902,W0511,F0401,E0611,R0801,R0913,W0613 -f parseable bzt > build/pylint.out || echo
# run unit tests
./run-test.sh
# re-setup env
deactivate
virtualenv --clear --system-site-packages build
source build/bin/activate
# run installation test
cd build # cd is to make it not find bzt package from sources
pip install --upgrade ../dist/bzt-*.tar.gz
cd ..
echo '{"install-id": "UnitTest"}' > build/etc/bzt.d/99-zinstallID.json
# run functional tests
bzt -o execution.scenario.script=tests/jmx/dummy.jmx -o settings.artifacts-dir="build/test/%Y-%m-%d_%H-%M-%S.%f" -o modules.jmeter.path=build/jmeter/bin/jmeter
bzt tests/json/get-post.json -o settings.artifacts-dir="build/test/%Y-%m-%d_%H-%M-%S.%f" -o modules.jmeter.path=build/jmeter/bin/jmeter