[EFL] Declare TEST_THEME_DIR in a single place.
[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_EVAS_INCLUDE_DIRS}
18     ${ECORE_INCLUDE_DIRS}
19     ${EINA_INCLUDE_DIRS}
20     ${EO_INCLUDE_DIRS}
21     ${EVAS_INCLUDE_DIRS}
22     ${GLIB_INCLUDE_DIRS}
23     ${LIBSOUP_INCLUDE_DIRS}
24 )
25
26 set(test_main_SOURCES
27     ${TESTWEBKITAPI_DIR}/efl/main.cpp
28 )
29
30 set(bundle_harness_SOURCES
31     ${TESTWEBKITAPI_DIR}/efl/InjectedBundleController.cpp
32     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
33 )
34
35 set(webkit2_api_harness_SOURCES
36     ${TESTWEBKITAPI_DIR}/efl/PlatformUtilities.cpp
37     ${TESTWEBKITAPI_DIR}/efl/PlatformWebView.cpp
38 )
39
40 # The list below works like a test expectation. Tests in the
41 # test_{webkit2_api|webcore}_BINARIES list are added to the test runner and
42 # tried on the bots on every build. Tests in test_{webkit2_api|webcore}_BINARIES
43 # are compiled and suffixed with fail and skipped from the test runner.
44 #
45 # Make sure that the tests are passing on both Debug and
46 # Release builds before adding it to test_{webkit2_api|webcore}_BINARIES.
47
48 set(test_webcore_BINARIES
49     LayoutUnit
50     KURL
51 )
52
53 set(test_webkit2_api_BINARIES
54     AboutBlankLoad
55     CookieManager
56     DOMWindowExtensionNoCache
57     DocumentStartUserScriptAlertCrash
58     EvaluateJavaScript
59     FailedLoad
60     Find
61     ForceRepaint
62     FrameMIMETypeHTML
63     FrameMIMETypePNG
64     GetInjectedBundleInitializationUserDataCallback
65     HitTestResultNodeHandle
66     InjectedBundleBasic
67     InjectedBundleFrameHitTest
68     InjectedBundleInitializationUserDataCallbackWins
69     LoadAlternateHTMLStringWithNonDirectoryURL
70     LoadCanceledNoServerRedirectCallback
71     MouseMoveAfterCrash
72     ReloadPageAfterCrash
73     ResizeWindowAfterCrash
74     NewFirstVisuallyNonEmptyLayout
75     NewFirstVisuallyNonEmptyLayoutFails
76     NewFirstVisuallyNonEmptyLayoutForImages
77     PageLoadBasic
78     PageLoadDidChangeLocationWithinPageForFrame
79     ParentFrame
80     PreventEmptyUserAgent
81     PrivateBrowsingPushStateNoHistoryCallback
82     UserMessage
83     WKConnection
84     WKPreferences
85     WKString
86     WKStringJSString
87     WKURL
88     WillSendSubmitEvent
89     efl/WKViewClientWebProcessCallbacks
90 )
91
92 # Seccomp filters is an internal API and its symbols
93 # are not (and should not) be exposed by default. We
94 # can only test it when building shared core.
95 if (ENABLE_SECCOMP_FILTERS AND SHARED_CORE)
96     list(APPEND test_webkit2_api_BINARIES
97         SeccompFilters
98     )
99 endif ()
100
101 set(test_webkit2_api_fail_BINARIES
102     CanHandleRequest
103     DOMWindowExtensionBasic
104     DownloadDecideDestinationCrash
105     NewFirstVisuallyNonEmptyLayoutFrames
106     RestoreSessionStateContainingFormData
107     ShouldGoToBackForwardListItem
108     WKPageGetScaleFactorNotZero
109 )
110
111 # Tests disabled because of missing features on the test harness:
112 #
113 #   ResponsivenessTimerDoesntFireEarly
114 #   SpacebarScrolling