(Created page with "== Introduction == The X Window System (commonly X or X11) is a computer software system and network protocol that provides a graphical user interface (GUI). Base X Window System…") |
|||
| Line 37: | Line 37: | ||
== Running the tests == | == Running the tests == | ||
| - | + | === Hardware setup and test environment === | |
| - | + | ||
| - | === | + | |
| - | + | No specific hardware setup is required. The test environment must be running an X11 server, and must have the following packages installed: | |
| - | + | * libbltscommon1 | |
| - | + | * libX11 | |
| - | + | * libXdamage | |
| + | * libXcomposite | ||
| + | * libXrandr | ||
| + | * libXrender | ||
| + | * libXtst | ||
| + | * libXv | ||
| + | * libXi | ||
| + | |||
| + | === Building the test asset === | ||
| + | |||
| + | The build enviroment must have the following packages installed: | ||
| + | |||
| + | * libbltscommon1-devel | ||
| + | * libX11-devel | ||
| + | * libXdamage-devel | ||
| + | * libXcomposite-devel | ||
| + | * libXrandr-devel | ||
| + | * libXrender-devel | ||
| + | * libXtst-devel | ||
| + | * libXv-devel | ||
| + | * libXi-devel | ||
| + | |||
| + | The test asset sources include the pack.sh script, which is used for building RPM and Debian packages and source tar packages. To build an RPM package with the script, execute this command in the toplevel source directory of blts-sensors-frontend: | ||
| + | |||
| + | ./pack.sh -r | ||
| + | |||
| + | To get help about the packaging script, execute | ||
| + | |||
| + | ./pack.sh -h | ||
| + | |||
| + | The asset can also be built manually by executing: | ||
| + | |||
| + | ./autogen.sh | ||
| + | ./configure | ||
| + | make | ||
| + | |||
| + | === Test asset specific instructions === | ||
| + | |||
| + | The test package can be installed in the device with the command | ||
| + | |||
| + | rpm -ivh blts-x11_{version}.rpm | ||
| + | |||
| + | === Test case arguments === | ||
| + | {| cellspacing="0" border="1" | ||
| + | ! Switch !! Function | ||
|- | |- | ||
| - | + | | -l || Used log file, default blts_x11.txt | |
|- | |- | ||
| - | + | | -e || Execute single or multiple selected tests, for example -e 1,4,5. | |
|- | |- | ||
| - | + | | -en || Execute test by name, for example -en "My test X" | |
|- | |- | ||
| - | + | | -s || Show list of all tests | |
|- | |- | ||
| - | + | | -C || Used parameter configuration file | |
|- | |- | ||
| - | + | | -? || This message | |
|- | |- | ||
| - | || -t || Maximum execution time of each test in seconds (default: 10s) | + | | -xml, -axml || Create result XML. -axml appends results to an existing XML file. |
| + | |- | ||
| + | | -auto || Silent logging for test automation. Only the results are printed to stdout. | ||
| + | |- | ||
| + | | -v || Verbose logging (default) | ||
| + | |- | ||
| + | | -vv || Even more verbose logging | ||
| + | |- | ||
| + | | -t || Maximum execution time of each test in seconds (default: 10s) | ||
|} | |} | ||
| + | |||
| + | === Running test cases === | ||
| + | |||
| + | Test cases must be executed with root privileges. | ||
| + | |||
| + | Test case descriptions and execution commands: | ||
| + | |||
| + | * '''X11-X11 presence check''' | ||
| + | ** Check that required X11 components are present in the test device | ||
| + | ** <code>blts-x11-tests -en "X11-X11 presence check"</code> | ||
| + | |||
| + | * '''X11-Create simple window''' | ||
| + | ** Create a simple X11 window and execute string and rectangle drawing tests | ||
| + | ** <code>blts-x11-tests -en "X11-Create simple window"</code> | ||
| + | |||
| + | * '''X11-Enumerate X extensions''' | ||
| + | ** Enumerate X extensions supported by the X11 server | ||
| + | ** <code>blts-x11-tests -en "X11-Enumerate X extensions"</code> | ||
| + | |||
| + | * '''X11-XVideo init''' | ||
| + | ** Check that XVideo initialization works on configured screens, and test XVideo image output | ||
| + | ** <code>blts-x11-tests -en "X11-XVideo init"</code> | ||
| + | |||
| + | * '''X11-XTest move cursor''' | ||
| + | ** Test cursor movement using the XTest extension | ||
| + | ** <code>blts-x11-tests -en "X11-XTest move cursor"</code> | ||
| + | |||
| + | * '''X11-XComposite get window contents''' | ||
| + | ** Check that window contents can be captured using the XComposite extension | ||
| + | ** <code>blts-x11-tests -en "X11-XComposite get window contents"</code> | ||
| + | |||
| + | * '''X11-XRecord capture mouse movement''' | ||
| + | ** Check that mouse movement can be captured using the XRecord extension | ||
| + | ** <code>blts-x11-tests -en "X11-XRecord capture mouse movement"</code> | ||
| + | |||
| + | * '''X11-XRender draw rectangle''' | ||
| + | ** Test rectangle drawing using the XRender extension | ||
| + | ** <code>blts-x11-tests -en "X11-XRender draw rectangle"</code> | ||
| + | |||
| + | * '''X11-XRandR rotate screen''' | ||
| + | ** Test screen rotation using the XRandR extension | ||
| + | ** <code>blts-x11-tests -en "X11-XRandR rotate screen"</code> | ||
| + | |||
| + | * '''X11-XDamage monitor region''' | ||
| + | ** Check that screen region monitoring works using the XDamage extension | ||
| + | ** <code>blts-x11-tests -en "X11-XDamage monitor region"</code> | ||
| + | |||
| + | * '''X11-XInput enumerate devices''' | ||
| + | ** Enumerate XInput devices | ||
| + | ** <code>blts-x11-tests -en "X11-XInput enumerate devices"</code> | ||
== Module Design and Architecture == | == Module Design and Architecture == | ||
| Line 89: | Line 189: | ||
|- | |- | ||
|| 0.1 || 22-sep-2010 || [mailto:ext-iekku.huttunen@nokia.com Iekku Huttunen] || Draft || Page created | || 0.1 || 22-sep-2010 || [mailto:ext-iekku.huttunen@nokia.com Iekku Huttunen] || Draft || Page created | ||
| + | |||
| + | |- | ||
| + | || 0.2 || 08-Dec-2010 || [mailto:pasi.matilainen@digia.com Pasi Matilainen] || Draft || Test running instructions updated | ||
|} | |} | ||
Contents |
The X Window System (commonly X or X11) is a computer software system and network protocol that provides a graphical user interface (GUI). Base X Window System is extended by X Extension libraries (mainly from freedesktop.org and XFree86 projects).
The blts-x11 test driver includes functional tests for X11 using xlib, and for various X Extensions using their user space libraries
The test driver currently covers basic functionalities of X11 and it's extensions, including:
Current coverage for X11 tests:
Mainly display devices (and GPU).
TBD
Extend functional coverage of existing test and create performance tests for XVideo, XComposite and DRI2.
No specific hardware setup is required. The test environment must be running an X11 server, and must have the following packages installed:
The build enviroment must have the following packages installed:
The test asset sources include the pack.sh script, which is used for building RPM and Debian packages and source tar packages. To build an RPM package with the script, execute this command in the toplevel source directory of blts-sensors-frontend:
./pack.sh -r
To get help about the packaging script, execute
./pack.sh -h
The asset can also be built manually by executing:
./autogen.sh ./configure make
The test package can be installed in the device with the command
rpm -ivh blts-x11_{version}.rpm
| Switch | Function |
|---|---|
| -l | Used log file, default blts_x11.txt |
| -e | Execute single or multiple selected tests, for example -e 1,4,5. |
| -en | Execute test by name, for example -en "My test X" |
| -s | Show list of all tests |
| -C | Used parameter configuration file |
| -? | This message |
| -xml, -axml | Create result XML. -axml appends results to an existing XML file. |
| -auto | Silent logging for test automation. Only the results are printed to stdout. |
| -v | Verbose logging (default) |
| -vv | Even more verbose logging |
| -t | Maximum execution time of each test in seconds (default: 10s) |
Test cases must be executed with root privileges.
Test case descriptions and execution commands:
blts-x11-tests -en "X11-X11 presence check"
blts-x11-tests -en "X11-Create simple window"
blts-x11-tests -en "X11-Enumerate X extensions"
blts-x11-tests -en "X11-XVideo init"
blts-x11-tests -en "X11-XTest move cursor"
blts-x11-tests -en "X11-XComposite get window contents"
blts-x11-tests -en "X11-XRecord capture mouse movement"
blts-x11-tests -en "X11-XRender draw rectangle"
blts-x11-tests -en "X11-XRandR rotate screen"
blts-x11-tests -en "X11-XDamage monitor region"
blts-x11-tests -en "X11-XInput enumerate devices"
The test module can be compiled to both a self-sufficient command line program and a Min test framework module. Debian packaging is provided.
| X11 | X11 home page |
| freedesktop.org | freedesktop.org home page |
| XFree86 | XFree86 home page |
| Version | Date | Handled By | Status | Comments |
|---|---|---|---|---|
| 0.1 | 22-sep-2010 | Iekku Huttunen | Draft | Page created |
| 0.2 | 08-Dec-2010 | Pasi Matilainen | Draft | Test running instructions updated |