(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…") |
|||
| (5 intermediate revisions not shown) | |||
| Line 23: | Line 23: | ||
Current coverage for X11 tests: | Current coverage for X11 tests: | ||
| - | * | + | |
| + | * [[http://gitorious.org/qa-tools/mcts-coverage/blobs/master/X11-coverage_generated.ods X11-coverage_generated.ods]] | ||
| + | |||
=== Hardware Coverage === | === Hardware Coverage === | ||
| Line 37: | Line 39: | ||
== 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: | |
| - | + | * [[../BLTS Common Library | libbltscommon1]] | |
| - | + | * libX11 | |
| - | + | * libXdamage | |
| + | * libXcomposite | ||
| + | * libXrandr | ||
| + | * libXrender | ||
| + | * libXtst | ||
| + | * libXv | ||
| + | * libXi | ||
| + | === Building the test asset === | ||
| + | |||
| + | The build environment must have the following packages installed: | ||
| + | |||
| + | * [[../BLTS Common Library | libbltscommon1-devel]] | ||
| + | * libX11-devel | ||
| + | * libXdamage-devel | ||
| + | * libXcomposite-devel | ||
| + | * libXrandr-devel | ||
| + | * libXrender-devel | ||
| + | * libXtst-devel | ||
| + | * libXv-devel | ||
| + | * libXi-devel | ||
| + | |||
| + | {{:Quality/TestSuite/Building_BLTS_Packages}} | ||
| + | |||
| + | === 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 === | ||
| + | |||
| + | {{:Quality/TestSuite/Common_General_Switch}} | ||
| + | {|style="width:100%" cellspacing="0" border="1" | ||
| + | !style="width:20%"|Optional Switch | ||
| + | !style="width:80%"|Function | ||
|- | |- | ||
| - | + | | -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 == | ||
| - | The test module can be compiled to | + | The test module can be compiled to a self-sufficient command line program. Debian and RPM packaging is provided. |
| - | === Architecture diagram === | + | === Architecture diagram === |
== References == | == References == | ||
| Line 89: | Line 161: | ||
|- | |- | ||
|| 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 environment must have the following packages installed:
The source package includes 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 top level source directory of asset:
./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
| General Switch | Function |
|---|---|
| -l | Used log file |
| -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 configuration file |
| -? | Help 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 |
| Optional Switch | Function |
|---|---|
| -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 a self-sufficient command line program. Debian and RPM 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 |