6fa6daae6b4f5d80655f2990825a99a034a26890
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / webkit / 0005-disable-tests.patch
1 This prevents the Webkit test suites from being built.
2
3 Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
4 ----
5 Index: webkit-1.9.6/GNUmakefile.am
6 ===================================================================
7 --- webkit-1.9.6.orig/GNUmakefile.am    2012-08-06 03:17:24.000000000 -0500
8 +++ webkit-1.9.6/GNUmakefile.am 2013-05-28 10:08:53.645129501 -0500
9 @@ -282,11 +282,14 @@
10  include Tools/DumpRenderTree/gtk/GNUmakefile.ImageDiff.am
11  
12  include Source/WebKit2/GNUmakefile.am
13 -include Source/WebKit2/UIProcess/API/gtk/tests/GNUmakefile.am
14  include Tools/MiniBrowser/gtk/GNUmakefile.am
15 +
16 +if ENABLE_TESTS
17 +include Source/WebKit2/UIProcess/API/gtk/tests/GNUmakefile.am
18  include Tools/WebKitTestRunner/GNUmakefile.am
19  include Source/ThirdParty/gtest/GNUmakefile.am
20  include Tools/TestWebKitAPI/GNUmakefile.am
21 +endif # ENABLE_TESTS
22  # [GTK] Refactor the translations now that we have webkit2
23  # https://bugs.webkit.org/show_bug.cgi?id=55153
24  
25 Index: webkit-1.9.6/Source/WebKit/gtk/GNUmakefile.am
26 ===================================================================
27 --- webkit-1.9.6.orig/Source/WebKit/gtk/GNUmakefile.am  2012-07-19 05:02:29.000000000 -0500
28 +++ webkit-1.9.6/Source/WebKit/gtk/GNUmakefile.am       2013-05-28 10:09:49.277130516 -0500
29 @@ -413,6 +413,7 @@
30  dist_resources_DATA = \
31         $(shell ls $(srcdir)/Source/WebKit/gtk/resources/*.html)
32  
33 +if ENABLE_TESTS
34  # Build unit tests
35  webkit_tests_cflags = \
36         -fno-strict-aliasing \
37 @@ -613,6 +614,8 @@
38  Programs_unittests_testcopyandpaste_LDADD = $(webkit_tests_ldadd)
39  Programs_unittests_testcopyandpaste_LDFLAGS = $(webkit_tests_ldflags)
40  
41 +endif # ENABLE_TESTS
42 +
43  # Project-wide clean rules
44  # Files that will be cleaned
45  CLEANFILES += \
46 Index: webkit-1.9.6/configure.ac
47 ===================================================================
48 --- webkit-1.9.6.orig/configure.ac      2012-08-06 08:45:10.000000000 -0500
49 +++ webkit-1.9.6/configure.ac   2013-05-28 10:07:55.817128445 -0500
50 @@ -516,6 +516,14 @@
51  AC_SUBST(CAIRO_CFLAGS)
52  AC_SUBST(CAIRO_LIBS)
53  
54 +# check wheter to build tests
55 +AC_MSG_CHECKING([wheter to build tests])
56 +AC_ARG_ENABLE(tests,
57 +              AC_HELP_STRING([--enable-tests],
58 +                             [turn on tests [default=no]]),
59 +              [],[enable_debug="no"])
60 +AC_MSG_RESULT([$enable_tests])
61 +
62  # check whether to build with debugging enabled
63  AC_MSG_CHECKING([whether to do a debug build])
64  AC_ARG_ENABLE(debug,
65 @@ -1423,6 +1431,7 @@
66  AM_CONDITIONAL([USE_FARSTREAM], [test "$have_farstream" = "yes"])
67  
68  # WebKit feature conditionals
69 +AM_CONDITIONAL([ENABLE_TESTS],[test "$enable_tests" = "yes"])
70  AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
71  AM_CONDITIONAL([ENABLE_UNSTABLE_FEATURES],[test "$enable_unstable_features" = "yes"])
72  AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
73 @@ -1534,6 +1543,7 @@
74  WebKit was configured with the following options:
75  
76  Build configuration:
77 + Enable tests (slow)                                      : $enable_tests
78   Enable debugging (slow)                                  : $enable_debug
79   Compile with debug symbols (slow)                        : $enable_debug_symbols
80   Enable debug features (slow)                             : $enable_debug_features