| 150 | | == Debugging tests == |
| 151 | | |
| 152 | | * In order to run tests inside the @jhbuild@ shell, these two environment variables must be set: |
| 153 | | {{{ |
| 154 | | #!sh |
| 155 | | $ export TEST_RUNNER_TEST_PLUGIN_PATH=$WEBKIT_HOME/WebKitBuild/Release/Libraries/.libs/ |
| 156 | | $ export TEST_RUNNER_INJECTED_BUNDLE_FILENAME=$WEBKIT_HOME/WebKitBuild/Release/Libraries/libTestRunnerInjectedBundle.la |
| 157 | | }}} |
| 158 | | |
| 159 | | |
| 160 | | == Debugging issues == |
| 161 | | |
| 162 | | * Some times when running the WebKitTestRunner (WK2) you can see linking errors like the following one: |
| 163 | | {{{ |
| 164 | | #!sh |
| 165 | | |
| 166 | | (lt-WebKitWebProcess:3392): WARNING **: Error loading the injected bundle (/home/javi/devel/WebKit/webkit.git/WebKitBuild/Debug/Libraries/libTestRunnerInjectedBundle.la): /home/javi/devel/WebKit/webkit.git/WebKitBuild/Debug/Libraries/.libs/libTestRunnerInjectedBundle.so: undefined symbol: _ZTVN7leveldb10ComparatorE |
| 167 | | }}} |
| 168 | | * One possible cause of such errors are missing symbols in the '''Source/autotools/symbols.filter'''. These symbols are automatically exposed in the by the '''libWebCoreInternals''' library via tags. Such library expose some symbols for testing purposes, just like the WTR application does. |
| 169 | | * The symbols.filter should be updated by a fresh checkout, but if that's not the case, it's possible to workaround the issue by manually adding the missing symbols to the file. |
| | 150 | Once the MiniBrowser opens showing the results, look for the stderr hyper-text link. The GStreamer logs will be in that file. |