Unreviewed, rolling out r199660.
[WebKit-https.git] / Tools / TestWebKitAPI / PlatformEfl.cmake
1 set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TestWebKitAPI")
2 set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY_WTF "${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}/WTF")
3
4 add_custom_target(forwarding-headersEflForTestWebKitAPI
5     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${TESTWEBKITAPI_DIR} --output ${DERIVED_SOURCES_WEBKIT2_DIR}/include --platform efl --platform CoordinatedGraphics --platform soup
6     DEPENDS forwarding-headersEflForWebKit2
7 )
8 set(ForwardingHeadersForTestWebKitAPI_NAME forwarding-headersEflForTestWebKitAPI)
9
10 include_directories(
11     ${DERIVED_SOURCES_WEBKIT2_DIR}/include
12     ${WTF_DIR}/wtf/efl
13     ${WEBKIT2_DIR}/UIProcess/API/C/CoordinatedGraphics
14     ${WEBKIT2_DIR}/UIProcess/API/C/soup
15     ${WEBKIT2_DIR}/UIProcess/API/C/efl
16     ${WEBKIT2_DIR}/UIProcess/API/efl
17 )
18
19 include_directories(SYSTEM
20     ${ECORE_EVAS_INCLUDE_DIRS}
21     ${GLIB_INCLUDE_DIRS}
22     ${LIBSOUP_INCLUDE_DIRS}
23 )
24
25 set(test_main_SOURCES
26     ${TESTWEBKITAPI_DIR}/efl/main.cpp
27 )
28
29 set(bundle_harness_SOURCES
30     ${TESTWEBKITAPI_DIR}/efl/InjectedBundleController.cpp
31     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
32 )
33
34 set(webkit2_api_harness_SOURCES
35     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
36     ${TESTWEBKITAPI_DIR}/efl/PlatformWebView.cpp
37 )
38
39 list(APPEND test_wtf_LIBRARIES
40     WebKit2
41 )
42
43 list(APPEND test_webcore_LIBRARIES
44     WebKit2
45 )
46
47 list(APPEND TestJavaScriptCore_LIBRARIES
48     WebKit2
49 )
50
51 # The list below works like a test expectation. Tests in the
52 # test_{webkit2_api|webcore}_BINARIES list are added to the test runner and
53 # tried on the bots on every build. Tests in test_{webkit2_api|webcore}_BINARIES
54 # are compiled and suffixed with fail and skipped from the test runner.
55 #
56 # Make sure that the tests are passing on both Debug and
57 # Release builds before adding it to test_{webkit2_api|webcore}_BINARIES.
58
59 set(test_webcore_BINARIES
60     CSSParser
61     HTMLParserIdioms
62     LayoutUnit
63     URL
64 )
65
66 # In here we list the bundles that are used by our specific WK2 API Tests
67 list(APPEND bundle_harness_SOURCES
68     ${TESTWEBKITAPI_DIR}/Tests/WebKit2/efl/WKViewClientWebProcessCallbacks_Bundle.cpp
69 )
70
71 set(test_webkit2_api_BINARIES
72     AboutBlankLoad
73     CloseThenTerminate
74     CookieManager
75     DOMWindowExtensionNoCache
76     DidAssociateFormControls
77     DocumentStartUserScriptAlertCrash
78     EvaluateJavaScript
79     FailedLoad
80     Find
81     ForceRepaint
82     FrameMIMETypeHTML
83     FrameMIMETypePNG
84     GetInjectedBundleInitializationUserDataCallback
85     HitTestResultNodeHandle
86     InjectedBundleBasic
87     InjectedBundleFrameHitTest
88     InjectedBundleInitializationUserDataCallbackWins
89     LoadAlternateHTMLStringWithNonDirectoryURL
90     LoadCanceledNoServerRedirectCallback
91     NewFirstVisuallyNonEmptyLayout
92     NewFirstVisuallyNonEmptyLayoutFails
93     NewFirstVisuallyNonEmptyLayoutForImages
94     PageLoadBasic
95     PageLoadDidChangeLocationWithinPageForFrame
96     ParentFrame
97     PreventEmptyUserAgent
98     PrivateBrowsingPushStateNoHistoryCallback
99     ResponsivenessTimerDoesntFireEarly
100     ShouldGoToBackForwardListItem
101     TerminateTwice
102     TextFieldDidBeginAndEndEditing
103     WKPreferences
104     WKString
105     WKStringJSString
106     WKURL
107     WillSendSubmitEvent
108
109     CoordinatedGraphics/WKViewRestoreZoomAndScrollBackForward
110     CoordinatedGraphics/WKViewUserViewportToContents
111
112     efl/WKViewClientWebProcessCallbacks
113     efl/WKViewScrollTo
114 )
115
116 set(test_webkit2_api_fail_BINARIES
117     CanHandleRequest
118     DOMWindowExtensionBasic
119     DownloadDecideDestinationCrash
120     Geolocation
121     LoadPageOnCrash
122     MouseMoveAfterCrash
123     NewFirstVisuallyNonEmptyLayoutFrames
124     ReloadPageAfterCrash
125     ResizeReversePaginatedWebView
126     ResizeWindowAfterCrash
127     RestoreSessionStateContainingFormData
128     ScrollPinningBehaviors
129     UserMessage
130     WKPageGetScaleFactorNotZero
131     WillLoad
132 )
133
134 if (ENABLE_SECCOMP_FILTERS)
135     list(APPEND test_webkit2_api_fail_BINARIES
136         SeccompFilters
137     )
138 endif ()
139
140 # Tests disabled because of missing features on the test harness:
141 #
142 #   SpacebarScrolling
143 #   CoordinatedGraphics/WKViewIsActiveSetIsActive