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