Version 14 (modified by, 11 years ago) (diff)

Add information about how to run WebKitTestRunner for WebKit2/Efl.

DumpRenderTree is related to WebKit's layout tests and can be run with the run-webkit-tests script.


You will need to install the following Debian packages to run WebKitEFL layout test.

  • apache2
  • libapache2-mod-php5
  • libruby

Building DumpRenderTree

In order to build it in a way that all expected tests pass and it does not crash, however, certain features need to be enabled when building the port. SHARED_CORE currently needs to be turned on, and some features need to be enabled manually.

./Tools/Scripts/build-webkit --efl --cmakearg="-DSHARED_CORE=ON"

Alternatively, set ENABLE_DRT=1 in your environment to enable the SHARED_CORE define during the build process.

Running LayoutTest

In order to run WebKitEFL's LayoutTest successfully, "exit-after-n-failuers" option should have 500 as its own value when user run layout test because at least 500 test cases are failed for now.

./Tools/Scripts/run-webkit-tests --efl --release --no-show-results \
                                 --results-directory layout-test-results \
                                 --exit-after-n-failures 500 --verbose

If you wish to run a single test you can do:

./Tools/Scripts/run-webkit-tests --efl fast/forms/plaintext-mode-1.html

If you want to test WebKit2EFL instead of WebKitEFL, add "-2" option.

./Tools/Scripts/run-webkit-tests --efl --release -2

Debugging crashes

It is possible to run gdb directly on the DumpRenderTree binary to debug crashing tests:

$ gdb --args <BUILD DIRECTORY>/bin/DumpRenderTree LayoutTests/fast/forms/plaintext-mode-1.html