| | 62 | The test system allows to provide test scripts to running systems |
| | 63 | declared in the PXE manager database. |
| | 64 | |
| | 65 | The target system can request a test by using this url: |
| | 66 | http://<ipaddr>:<port>/nexttest/ |
| | 67 | |
| | 68 | The tests are usually shell scripts that are built using Django |
| | 69 | templating system. By convention, the tests are usinf a suffix of |
| | 70 | .test. They are stored in the directory set in settings.py under the |
| | 71 | TESTS_DIR variable. A wait.test must exist and will be send by the |
| | 72 | server to the target system when no test are available. This wait.test |
| | 73 | must wait for some time and then exit to let the system send a new |
| | 74 | test if needed or send back a new wait.test. |
| | 75 | |
| | 76 | After the execution of a test script, the result is sent back to the |
| | 77 | server using the following url: http://<ipaddr>:<port>/upload/. I |
| | 78 | usualy run the following curl command to upload the result: |
| | 79 | |
| | 80 | curl --retry 0 -s -f -F "file=@$output" http://<ipaddr>:<port>/upload/ |
| | 81 | |
| | 82 | These uploaded files are stored under the directory set by the |
| | 83 | TEST_UPLOAD_DIR variable in settings.py. |
| | 84 | |
| | 85 | The system uses a simple convention in these files to lookup |
| | 86 | information. It parses the lines to store informations, warnings and |
| | 87 | errors lines if they begin by 'I: ', 'W: ' and 'E: '. The system also |
| | 88 | tries to find the version of the system by looking for a line starting |
| | 89 | by 'V: '. |
| | 90 | |
| | 91 | You can then navigate on web pages displaying these parsed |
| | 92 | informations under: http://<ipaddr>:<port>/. |
| | 93 | |
| | 94 | *** Control |
| | 95 | |
| | 96 | To instruct the system about which tests are available, use the |
| | 97 | following command: |
| | 98 | |
| | 99 | pxemngr synctestnames |
| | 100 | |
| | 101 | To assign a test to a target system, use the following command: |
| | 102 | |
| | 103 | pxemngr nexttest <system name> <test name> |
| | 104 | |
| | 105 | To display all the tests ran or scheduled for a system, use: |
| | 106 | |
| | 107 | pxemngr dpytest <system name> |
| | 108 | |