page.title=Running the tests @jd:body
The following files and directories must be copied to the target.
| Module | Directory | Target |
|---|---|---|
Execution Server |
build/execserver/execserver |
<dst>/execserver |
EGL Module |
build/modules/egl/deqp-egl |
<dst>/deqp-egl |
GLES2 Module |
build/modules/gles2/deqp-gles2data/gles2 |
<dst>/deqp-gles2
|
GLES3 Module |
build/modules/gles3/deqp-gles3data/gles3 |
<dst>/deqp-gles3
|
GLES3.1 Module |
build/modules/gles31/deqp-gles31data/gles31 |
<dst>/deqp-gles31
|
Execution service and test binaries can be deployed anywhere in the target file system. Test binaries expect to find data directories in the current working directory.
Start the Test Execution Service on the target device. For more details on starting the service, see Test execution service.
The following table lists command line arguments that affect execution of all test programs.
| Argument | Description |
|---|---|
--deqp-case=<casename> |
Run cases that match a given pattern. Wildcard (*) is supported. |
--deqp-log-filename=<filename> |
Write test results to the file whose name you provide. The test execution service will set the filename when starting a test. |
--deqp-stdin-caselist |
Read case list from stdin or from a given argument. The test execution service will set the argument according to the execution request received. See the next section for a description of the case list format. |
--deqp-test-iteration-count=<count> |
Override iteration count for tests that support a variable number of iterations. |
--deqp-base-seed=<seed> |
Base seed for the test cases that use randomization. |
| Argument | Description |
|---|---|
--deqp-gl-context-type=<type> |
OpenGL context type. Available context types depend on the platform. On
platforms supporting EGL, the value |
--deqp-gl-config-id=<id> |
Run tests for the provided GL configuration ID. Interpretation is platform-dependent. On the EGL platform, this is the EGL configuration ID. |
--deqp-gl-config-name=<name> |
Run tests for a named GL configuration. Interpretation is platform-dependent.
For EGL, the format is |
--deqp-gl-context-flags=<flags> |
Creates a context. Specify |
--deqp-surface-width=<width> |
Try to create a surface with a given size. Support for this is optional. |
--deqp-surface-type=<type> |
Use a given surface type as the main test rendering target. Possible types are |
--deqp-screen-rotation=<rotation> |
Screen orientation in increments of 90 degrees for platforms that support it. |
The test case list can be given in two formats. The first option is to list the full name of each test on a separate line in a standard ASCII file. As the test sets grow, the repetitive prefixes can be cumbersome. To avoid repeating the prefixes, use a trie (also known as a prefix tree) syntax shown below.
{nodeName{firstChild{…},…lastChild{…}}}
For example, please review the following:
{dEQP-EGL{config-list,create_context{rgb565_depth_stencil}}}
That list would translate into two test cases:
dEQP-EGL.config_list dEQP-EGL.create_context.rgb565_depth_stencil
The Android application package contains everything required, including the
test execution service, test binaries, and data files. The test activity is a NativeActivity and it uses EGL, which requires Android 3.2 or later.
The application package can be installed with the following command. The name shown is the name of the APK in the Android CTS package. The name depends on the build:
adb –d install –r com.drawelements.deqp.apk
To launch the test execution service and to setup port forwarding, use the following:
adb –d forward tcp:50016 tcp:50016 adb –d shell am start –n com.drawelements.deqp/.execserver.ServiceStarter
Debug prints can be enabled by executing the following before starting the tests:
adb –d shell setprop log.tag.dEQP DEBUG
If you want to manually start the test execution activity, construct an Android
intent that targets android.app.NativeActivity. The activities can be found in the com.drawelements.deqp package. The command line must be supplied as an extra string with key "cmdLine" in the Intent.
A test log will be written to /sdcard/dEQP-log.qpa. If the test run does not start normally, additional debug information is
available in the device log.
The activity can be launched from the command line using the "am" utility. For example, to run dEQP-GLES2.info tests on a platform supporting NativeActivity, the following command can be used:
adb -d shell am start -n com.drawelements.deqp/android.app.NativeActivity -e cmdLine "deqp --deqp-case=dEQP-GLES2.info.* --deqp-log-filename=/sdcard/dEQP-Log.qpa
To run the tests under the GDB debugger on Android, first compile and install the debug build by running the following two scripts:
python android/scripts/build.py --native-build-type=Debug python android/scripts/install.py
After the debug build is installed on the device, to launch the tests under GDB running on the host, run the following command:
python android/scripts/debug.py --deqp-commandline="--deqp-log-filename=/sdcard/TestLog.qpa --deqp-case=dEQP-GLES2.functional.*"
The deqp command line will depend on test cases to be executed and other
required parameters. The script will add a default breakpoint into the
beginning of the deqp execution (tcu::App::App).
The debug.py script accepts multiple command line arguments, e.g. for the following:
Running debug.py --help will list all command line parameters, with explanations.
The script copies some default libraries from the target device to get symbol listings.
If there is a need to step through driver code, more libraries can be added via debug.py command line parameters. This would be applicable, for
example, if the GDB needs to know the locations of the binaries with full debug
information. The debug.py script writes out a configuration file for the GDB starting from line 132 of
the script file. Additional paths to binaries, etc., can be added there, but
supplying correct command line parameters should be enough.
Notes:
libpython2.7.dll. Add
<path to ndk>/prebuilt/windows/bin to the PATH variable before launching debug.py.