File: run_tests.sh

package info (click to toggle)
nova 2:13.1.0-2~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 31,120 kB
  • sloc: python: 301,406; sh: 1,298; xml: 1,184; makefile: 129; sql: 43
file content (46 lines) | stat: -rwxr-xr-x 853 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

set -eu

cat <<EOF
run_tests.sh is deprecated and this script will be removed
before the Mitaka release. All tests should be run through
tox.

To run style checks:

 tox -e pep8

To run python 2.7 unit tests

 tox -e py27

To run functional tests

 tox -e functional

To run a subset of any of these tests:

 tox -e py27 someregex

 i.e.: tox -e py27 test_servers

Use following to replace './run_test.sh -8' to do pep8 check with changed files

 tox -e pep8 -- -HEAD

Additional tox targets are available in tox.ini. For more information
see:
http://docs.openstack.org/project-team-guide/project-setup/python.html

NOTE: if you really really don't want to use tox to run tests, you
can instead use:

 testr run

Documentation on using testr directly can be found at
http://testrepository.readthedocs.org/en/latest/MANUAL.html

EOF

exit 1