(→Building the test asset) |
(→Hardware setup and test environment) |
||
| Line 41: | Line 41: | ||
No specific hardware setup is required. The test environment must be running an X11 server, and must have the following packages installed: | No specific hardware setup is required. The test environment must be running an X11 server, and must have the following packages installed: | ||
| - | * libbltscommon1 | + | * [[../BLTS Common Library | libbltscommon1]] |
* libX11 | * libX11 | ||
* libXdamage | * libXdamage | ||
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 |