summaryrefslogtreecommitdiffstats
path: root/src/software/test/README
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-10-23 07:56:01 +0200
committerMichal Minar <miminar@redhat.com>2013-10-24 10:28:30 +0200
commit2229fa7f328b9e8b49266eb69150ab4be18ba354 (patch)
treed1050732d5e283eddd1bf51942a7cc73be1467ac /src/software/test/README
parentfe9ffdf9ab8be28357c256a3f1052832304b241b (diff)
downloadopenlmi-providers-2229fa7f328b9e8b49266eb69150ab4be18ba354.tar.gz
openlmi-providers-2229fa7f328b9e8b49266eb69150ab4be18ba354.tar.xz
openlmi-providers-2229fa7f328b9e8b49266eb69150ab4be18ba354.zip
minor test improvements
Diffstat (limited to 'src/software/test/README')
-rw-r--r--src/software/test/README31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/software/test/README b/src/software/test/README
index e2b3cc6..cb1acce 100644
--- a/src/software/test/README
+++ b/src/software/test/README
@@ -1,3 +1,5 @@
+Testing
+=======
Tests must be run as root on machine with cimom broker.
There are number of environment variables, that affect test running:
LMI_CIMOM_USERNAME
@@ -14,13 +16,24 @@ There are number of environment variables, that affect test running:
directory will be created and deleted, when tests are
complete
-Simple usage:
- Each test module can be run as a stand-alone script or with run.py
- script:
- $ ./run.py -c --cache-dir=/var/tmp
- To pass any arguments to underlying unittest.main() function, append them
- after "--" swith like this:
- $ ./run.py -c --cache-dir=/var/tmp -- -v TestSoftwarePackage
- All environment variables defined above can be overriden by command-line
- arguments.
+Preparation
+-----------
+Tests are installed together with source in single python egg. They are
+accessible from ``lmi.test.software`` package.
+
+Running tests
+-------------
+They can be run with a script ``lmi-test-software``.
+
+Each test module can be run as a stand-alone script or with run.py script: ::
+
+ ./run.py -c --cache-dir=/var/tmp
+
+To pass any arguments to underlying ``unittest.main()`` function, append them
+after "--" swith like this: ::
+
+ ./run.py -c --cache-dir=/var/tmp -- -v TestSoftwarePackage
+
+All environment variables defined above can be overriden by command-line
+arguments.