This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
forked from IFCA-Advanced-Computing/occi-os
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun_tests.sh
executable file
·49 lines (36 loc) · 1.53 KB
/
run_tests.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh
rm -rf build/html
mkdir -p build/html
echo '\n PyLint report \n****************************************\n'
pylint -d W0511,I0011,E1101,E0611,F0401 -i y --report no **/*.py
echo '\n Unittest coverage \n****************************************\n'
nc -z localhost 8787
if [ "$?" -ne 0 ]; then
echo "Unable to connect to OCCI endpoint localhost 8787 - will not run
system test."
nosetests --with-coverage --cover-erase --cover-package=occi_os_api --exclude=system
else
echo "Please make sure that the following line is available in nova.conf:"
echo "allow_resize_to_same_host=True libvirt_inject_password=True enabled_apis=ec2,occiapi,osapi_compute,osapi_volume,metadata"
nosetests --with-coverage --cover-erase --cover-package=occi_os_api
fi
echo '\n Code style \n****************************************\n'
pep8 --repeat --statistics --count occi_os_api tests
echo '\n Issues report \n****************************************\n'
pyflakes occi_os_api
vulture occi_os_api
echo '\n Pychecker report \n****************************************\n'
pychecker -# 99 occi_os_api/*.py occi_os_api/backends/*.py \
occi_os_api/nova_glue/*.py occi_os_api/extensions/*.py
# TODO: create project!
#epydoc epydoc.prj
# Fix:
#tmetsch@ubuntu:~/devstack$ cat /etc/tgt/targets.conf
#include /etc/tgt/conf.d/cinder.conf
#
# in devstack/files/horizon_settings:
#HORIZON_CONFIG = {
# #'dashboards': ('nova', 'syspanel', 'settings',),
# 'dashboards': ('project', 'admin', 'settings',),
# 'default_dashboard': 'project',
#}