[CMake] Rewrite FindLibSoup2.cmake.
[WebKit-https.git] / Tools / TestWebKitAPI / PlatformEfl.cmake
1 ADD_CUSTOM_TARGET(forwarding-headersEflForTestWebKitAPI
2     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
3 )
4 SET(ForwardingHeadersForTestWebKitAPI_NAME forwarding-headersEflForTestWebKitAPI)
5
6 ADD_CUSTOM_TARGET(forwarding-headersSoupForTestWebKitAPI
7     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${TESTWEBKITAPI_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
8 )
9 SET(ForwardingNetworkHeadersForTestWebKitAPI_NAME forwarding-headersSoupForTestWebKitAPI)
10
11 INCLUDE_DIRECTORIES(${LIBSOUP_INCLUDE_DIRS}
12     ${WEBKIT2_DIR}/UIProcess/API/C/soup
13     ${WEBKIT2_DIR}/UIProcess/API/C/efl
14     ${ECORE_INCLUDE_DIRS}
15     ${EINA_INCLUDE_DIRS}
16     ${EVAS_INCLUDE_DIRS}
17 )
18
19 SET(test_main_SOURCES
20     ${TESTWEBKITAPI_DIR}/efl/main.cpp
21 )
22
23 SET(bundle_harness_SOURCES
24     ${TESTWEBKITAPI_DIR}/efl/InjectedBundleController.cpp
25     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
26 )
27
28 SET(webkit2_api_harness_SOURCES
29     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
30     ${TESTWEBKITAPI_DIR}/efl/PlatformWebView.cpp
31 )
32
33 # The list below works like a test expectation. Tests in the
34 # test_webkit2_api_BINARIES list are added to the test runner and
35 # tried on the bots on every build. Tests in test_webkit2_api_fail_BINARIES
36 # are compiled and suffixed with fail and skipped from the test runner.
37 #
38 # Make sure that the tests are passing on both Debug and
39 # Release builds before adding it to test_webkit2_api_BINARIES.
40
41 SET(test_webkit2_api_BINARIES
42     CookieManager
43     DOMWindowExtensionNoCache
44     DocumentStartUserScriptAlertCrash
45     EvaluateJavaScript
46     FailedLoad
47     Find
48     ForceRepaint
49     FrameMIMETypeHTML
50     FrameMIMETypePNG
51     GetInjectedBundleInitializationUserDataCallback
52     InjectedBundleBasic
53     InjectedBundleInitializationUserDataCallbackWins
54     LoadAlternateHTMLStringWithNonDirectoryURL
55     LoadCanceledNoServerRedirectCallback
56     NewFirstVisuallyNonEmptyLayout
57     NewFirstVisuallyNonEmptyLayoutFails
58     PageLoadBasic
59     PageLoadDidChangeLocationWithinPageForFrame
60     ParentFrame
61     PreventEmptyUserAgent
62     PrivateBrowsingPushStateNoHistoryCallback
63     WKConnection
64     WKString
65     WKStringJSString
66     WillSendSubmitEvent
67 )
68
69 SET(test_webkit2_api_fail_BINARIES
70     CanHandleRequest
71     DOMWindowExtensionBasic
72     DownloadDecideDestinationCrash
73     NewFirstVisuallyNonEmptyLayoutForImages
74     NewFirstVisuallyNonEmptyLayoutFrames
75     RestoreSessionStateContainingFormData
76     ShouldGoToBackForwardListItem
77     WKPageGetScaleFactorNotZero
78 )
79
80 # Tests disabled because of missing features on the test harness:
81 #
82 #   AboutBlankLoad
83 #   HitTestResultNodeHandle
84 #   MouseMoveAfterCrash
85 #   ResponsivenessTimerDoesntFireEarly
86 #   SpacebarScrolling
87 #   WKPreferences
88 #
89 # Flaky test, fails on Release but passes on Debug:
90 #
91 #   UserMessage