[GTK] Build and run TestWebKitAPI unit tests
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 16:48:18 +0000 (16:48 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 16:48:18 +0000 (16:48 +0000)
commit3e3137d081400bb1f4952f2219e538f295643020
treeea8f4a96aab5ceadc26b994ff05c2d073de0e582
parenteb0f8b3e1b1d2532345aff1c7f2dceb280853e79
[GTK] Build and run TestWebKitAPI unit tests
https://bugs.webkit.org/show_bug.cgi?id=84325

Reviewed by Philippe Normand.

.:

* GNUmakefile.am: Include makefiles to build gtest and
TestWebKitAPI. Add BUILDING_WEBKIT2__ macro to compilation when
building WebKit2.

Source/ThirdParty:

* gtest/GNUmakefile.am: Added.

Tools:

We only build WTF unit tests for now. WebKit2 tests will be
enabled in a follow up patch.

* Scripts/run-gtk-tests:
(TestRunner): Add TestWebKitAPI/WTF to the list of directories
containing unit tests.
(TestRunner._run_test_glib): Run glib tests using gtester.
(TestRunner._run_test_google): Run google tests.
(TestRunner._run_test): Use _run_test_glib or _run_test_google
depending on whether given test is glib or google test
* TestWebKitAPI/GNUmakefile.am: Added.
* TestWebKitAPI/config.h: Use #ifdef instead of # to fix a compile
warning with -Wundef. Include WebKit2 headers only when building
WebKit2.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@115075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
GNUmakefile.am
Source/ThirdParty/ChangeLog
Source/ThirdParty/gtest/GNUmakefile.am [new file with mode: 0644]
Tools/ChangeLog
Tools/Scripts/run-gtk-tests
Tools/TestWebKitAPI/GNUmakefile.am [new file with mode: 0644]
Tools/TestWebKitAPI/config.h