Title: [121702] trunk
Revision
121702
Author
[email protected]
Date
2012-07-02 12:46:16 -0700 (Mon, 02 Jul 2012)

Log Message

[EFL][CMake] Integrate API unit tests with CTest
https://bugs.webkit.org/show_bug.cgi?id=87251

Patch by Thiago Marcos P. Santos <[email protected]> on 2012-07-02
Reviewed by Daniel Bates.

.:

Enable CTest on the root CMakeLists.txt as it is expected
to be here. This will create a new build target ("make test")
to run all the API unit tests.

* CMakeLists.txt:

Source/WebKit:

Add every test to the test runner build target.

* PlatformEfl.cmake:

Modified Paths

Diff

Modified: trunk/CMakeLists.txt (121701 => 121702)


--- trunk/CMakeLists.txt	2012-07-02 19:45:32 UTC (rev 121701)
+++ trunk/CMakeLists.txt	2012-07-02 19:46:16 UTC (rev 121702)
@@ -9,6 +9,11 @@
 ENDIF ()
 
 # -----------------------------------------------------------------------------
+# Enable CTest for the public API unit testing
+# -----------------------------------------------------------------------------
+ENABLE_TESTING()
+
+# -----------------------------------------------------------------------------
 # Default library type
 # -----------------------------------------------------------------------------
 SET(ENABLE_WEBCORE ON)

Modified: trunk/ChangeLog (121701 => 121702)


--- trunk/ChangeLog	2012-07-02 19:45:32 UTC (rev 121701)
+++ trunk/ChangeLog	2012-07-02 19:46:16 UTC (rev 121702)
@@ -1,3 +1,16 @@
+2012-07-02  Thiago Marcos P. Santos  <[email protected]>
+
+        [EFL][CMake] Integrate API unit tests with CTest
+        https://bugs.webkit.org/show_bug.cgi?id=87251
+
+        Reviewed by Daniel Bates.
+
+        Enable CTest on the root CMakeLists.txt as it is expected
+        to be here. This will create a new build target ("make test")
+        to run all the API unit tests.
+
+        * CMakeLists.txt:
+
 2012-07-01  Christophe Dumez  <[email protected]>
 
         [EFL] Add Gamepad support

Modified: trunk/Source/WebKit/ChangeLog (121701 => 121702)


--- trunk/Source/WebKit/ChangeLog	2012-07-02 19:45:32 UTC (rev 121701)
+++ trunk/Source/WebKit/ChangeLog	2012-07-02 19:46:16 UTC (rev 121702)
@@ -1,3 +1,14 @@
+2012-07-02  Thiago Marcos P. Santos  <[email protected]>
+
+        [EFL][CMake] Integrate API unit tests with CTest
+        https://bugs.webkit.org/show_bug.cgi?id=87251
+
+        Reviewed by Daniel Bates.
+
+        Add every test to the test runner build target.
+
+        * PlatformEfl.cmake:
+
 2012-07-02  Gyuyoung Kim  <[email protected]>
 
         [EFL] Rename NotificationPresenterEfl with NotificationClientEfl

Modified: trunk/Source/WebKit/PlatformEfl.cmake (121701 => 121702)


--- trunk/Source/WebKit/PlatformEfl.cmake	2012-07-02 19:45:32 UTC (rev 121701)
+++ trunk/Source/WebKit/PlatformEfl.cmake	2012-07-02 19:46:16 UTC (rev 121702)
@@ -367,6 +367,7 @@
 
 FOREACH(testName ${EWKUnitTests_BINARIES})
     ADD_EXECUTABLE(${testName} ${WEBKIT_EFL_TEST_DIR}/${testName}.cpp ${WEBKIT_EFL_TEST_DIR}/test_runner.cpp)
+    ADD_TEST(${testName} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${testName})
     TARGET_LINK_LIBRARIES(${testName} ${EWKUnitTests_LIBRARIES} ewkTestUtils gtest pthread)
     ADD_TARGET_PROPERTIES(${testName} LINK_FLAGS "${EWKUnitTests_LINK_FLAGS}")
     SET_TARGET_PROPERTIES(${testName} PROPERTIES FOLDER "WebKit")
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to