Title: [187015] trunk/Tools
Revision
187015
Author
[email protected]
Date
2015-07-19 15:27:00 -0700 (Sun, 19 Jul 2015)

Log Message

[GTK] Enable seccomp filter API tests
https://bugs.webkit.org/show_bug.cgi?id=140071

Reviewed by Žan Doberšek.

These tests will now be run by the run-gtk-tests script.

* TestWebKitAPI/PlatformGTK.cmake:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (187014 => 187015)


--- trunk/Tools/ChangeLog	2015-07-19 19:31:36 UTC (rev 187014)
+++ trunk/Tools/ChangeLog	2015-07-19 22:27:00 UTC (rev 187015)
@@ -1,5 +1,16 @@
 2015-07-19  Michael Catanzaro  <[email protected]>
 
+        [GTK] Enable seccomp filter API tests
+        https://bugs.webkit.org/show_bug.cgi?id=140071
+
+        Reviewed by Žan Doberšek.
+
+        These tests will now be run by the run-gtk-tests script.
+
+        * TestWebKitAPI/PlatformGTK.cmake:
+
+2015-07-19  Michael Catanzaro  <[email protected]>
+
         [GTK] Add seccomp filters support
         https://bugs.webkit.org/show_bug.cgi?id=110014
 

Modified: trunk/Tools/TestWebKitAPI/PlatformGTK.cmake (187014 => 187015)


--- trunk/Tools/TestWebKitAPI/PlatformGTK.cmake	2015-07-19 19:31:36 UTC (rev 187014)
+++ trunk/Tools/TestWebKitAPI/PlatformGTK.cmake	2015-07-19 22:27:00 UTC (rev 187015)
@@ -118,6 +118,20 @@
 set_tests_properties(TestWebKit2 PROPERTIES TIMEOUT 60)
 set_target_properties(TestWebKit2 PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}/WebKit2)
 
+if (ENABLE_SECCOMP_FILTERS)
+    # This test needs to be in its own executable. It's a general test of the
+    # seccomp filter mechanism, and the filters it sets are incompatible with
+    # the correct operation of WebKit and the other tests.
+    add_executable(TestSeccompFilters
+        ${TESTWEBKITAPI_DIR}/Tests/WebKit2/SeccompFilters.cpp
+    )
+
+    target_link_libraries(TestSeccompFilters ${test_webkit2_api_LIBRARIES})
+    add_test(TestSeccompFilters ${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}/WebKit2/TestWebKit2)
+    set_tests_properties(TestSeccompFilters PROPERTIES TIMEOUT 5)
+    set_target_properties(TestSeccompFilters PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}/WebKit2)
+endif ()
+
 set(TestWebCoreGtk_SOURCES
     ${TESTWEBKITAPI_DIR}/Tests/WebCore/gtk/UserAgentQuirks.cpp
 )
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to