]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Modified the Readme for Unit Test Execution Instructions
authorShweta P <shpadubi@cisco.com>
Mon, 5 Dec 2011 12:58:58 +0000 (07:58 -0500)
committerShweta P <shpadubi@cisco.com>
Mon, 5 Dec 2011 16:13:32 +0000 (11:13 -0500)
Change-Id: Ib7ff79c166e34c4f99a8df55feb0191f37555597

Removed the trailing whitespaces in the README

Change-Id: Ic2299bf35d9e0d8512ae4f57976884d12ba92159

quantum/plugins/cisco/README

index a539ab4e88eafeb047896db8ed602f34fa1e35f4..8a417e1340d9257c480707faa7b4141e94d5c60b 100755 (executable)
@@ -377,52 +377,54 @@ How to test the installation
 ----------------------------\r
 The unit tests are located at quantum/plugins/cisco/tests/unit. They can be\r
 executed from the main folder using the run_tests.sh or to get a more detailed\r
-result the quantum/plugins/cisco/run_tests.py script.\r
+result the run_tests.py script.\r
 \r
-1. Testing the core API (without UCS/Nexus/RHEL hardware, and can be run on\r
-   Ubuntu):\r
-   First disable all device-specific plugins by commenting out the entries in:\r
-   quantum/plugins/cisco/conf/plugins.ini\r
-   Then run the test script:\r
+1. All unit tests (needs environment setup as indicated in the pre-requisites):\r
+\r
+   ./run_tests.sh -N quantum.plugins.cisco.tests.unit\r
+\r
+   or by modifying the environment variable to point to the plugin directory\r
 \r
-   Set the environment variable PLUGIN_DIR to the location of the plugin \r
-   directory. This is manadatory if the run_tests.sh script is used.\r
+       In bash : export PLUGIN_DIR=quantum/plugins/cisco\r
+          tcsh/csh : setenv PLUGIN_DIR quantum/plugins/cisco\r
 \r
-   In bash : export PLUGIN_DIR=quantum/plugins/cisco\r
-      tcsh/csh : setenv PLUGIN_DIR quantum/plugins/cisco\r
-   ./run_tests.sh quantum.plugins.cisco.tests.unit.test_l2networkApi\r
+       ./run_tests.sh -N\r
+\r
+   Another option is to execute the python script run_tests.py\r
+\r
+   python run_tests.py quantum.plugins.cisco.tests.unit\r
+\r
+2. Testing the core API (without UCS/Nexus/RHEL hardware, and can be run on\r
+   Ubuntu):\r
+   Device-specific plugins can be disabled by commenting out the entries in:\r
+   etc/quantum/plugins/cisco/cisco_plugins.ini\r
+   The Core API can be tested by initially disabling all device plugins, then\r
+   enabling just the UCS plugins, and finally enabling both the UCS and the\r
+   Nexus plugins.\r
+   Execute the test script as follows:\r
+\r
+   ./run_tests.sh -N quantum.plugins.cisco.tests.unit.test_l2networkApi\r
 \r
    or\r
 \r
-   python quantum/plugins/cisco/run_tests.py \r
-       quantum.plugins.cisco.tests.unit.test_l2networkApi\r
+   python run_tests.py quantum.plugins.cisco.tests.unit.test_l2networkApi\r
 \r
-2. Specific Plugin unit test (needs environment setup as indicated in the \r
+3. Specific Plugin unit test (needs environment setup as indicated in the\r
    pre-requisites):\r
 \r
-   In bash : export PLUGIN_DIR=quantum/plugins/cisco\r
-      tcsh/csh : setenv PLUGIN_DIR quantum/plugins/cisco\r
-   ./run_tests.sh quantum.plugins.cisco.tests.unit.<name_of_the file>\r
+   ./run_tests.sh -N quantum.plugins.cisco.tests.unit.<name_of_the file>\r
 \r
-   or \r
+   or\r
 \r
-   python <path to the plugin directory>/run_tests.py \r
-          quantum.plugins.cisco.tests.unit.<name_of_the file>\r
+   python run_tests.py quantum.plugins.cisco.tests.unit.<name_of_the file>\r
    E.g.:\r
 \r
-   python quantum/plugins/cisco/run_tests.py \r
-          quantum.plugins.cisco.tests.unit.test_ucs_plugin\r
-\r
-3. All unit tests (needs environment setup as indicated in the pre-requisites):\r
-   \r
-   In bash : export PLUGIN_DIR=quantum/plugins/cisco\r
-      tcsh/csh : setenv PLUGIN_DIR quantum/plugins/cisco\r
-\r
-   ./run_tests.sh quantum.plugins.cisco.tests.unit\r
+   python run_tests.py quantum.plugins.cisco.tests.unit.test_ucs_plugin\r
 \r
-   or \r
+   To run specific tests, use the following:\r
+   python run_tests.py\r
+    quantum.plugins.cisco.tests.unit.<name_of_the file>:<ClassName>.<funcName>\r
 \r
-   python quantum/plugins/cisco/run_tests.py quantum.plugins.cisco.tests.unit\r
 \r
 4. Testing the Extension API\r
    The script is placed alongwith the other cisco unit tests. The location may\r
@@ -430,15 +432,12 @@ result the quantum/plugins/cisco/run_tests.py script.
    Location quantum/plugins/cisco/tests/unit/test_cisco_extension.py\r
 \r
    The script can be executed by :\r
-    ./run_tests.sh quantum.plugins.cisco.tests.unit.test_cisco_extension\r
+    ./run_tests.sh -N quantum.plugins.cisco.tests.unit.test_cisco_extension\r
 \r
     or\r
 \r
     python run_tests.py quantum.plugins.cisco.tests.unit.test_cisco_extension\r
 \r
-   To run specific tests\r
-   python run_tests.py \r
-    quantum.plugins.cisco.tests.unit.test_cisco_extension:<ClassName>.<funcName>\r
 \r
 Bingo bango bongo!  That's it!  Thanks for taking the leap into Quantum.\r
 \r