summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/clutter/clutter-1.0-1.14.4/enable_tests.patch
blob: f97d5980903e7df7447d4d518c43cd1484572961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Make tests installable

The test applications are useful for image testing.

Imported from clutter 1.8 package, git://git.openembedded.org/openembedded,
commit ae28ee3f7a060b9e0d13154a84f2444a98490b5b, updated patch header.

Upstream-Status: Inappropriate [configuration]
Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>

Index: git/tests/interactive/Makefile.am
===================================================================
--- git.orig/tests/interactive/Makefile.am	2009-11-30 17:39:46.000000000 +0000
+++ git/tests/interactive/Makefile.am	2009-11-30 17:42:30.000000000 +0000
@@ -88,7 +88,7 @@
 
 common_ldadd = $(top_builddir)/clutter/libclutter-@CLUTTER_WINSYS@-@CLUTTER_API_VERSION@.la
 
-noinst_PROGRAMS = test-interactive
+bin_PROGRAMS = test-interactive
 
 test_interactive_SOURCES = test-main.c $(UNIT_TESTS)
 test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
Index: git/tests/interactive/test-actors.c
===================================================================
--- git.orig/tests/interactive/test-actors.c	2009-11-30 17:39:46.000000000 +0000
+++ git/tests/interactive/test-actors.c	2009-11-30 17:43:03.000000000 +0000
@@ -178,7 +178,7 @@
   oh->scaler_1 = clutter_behaviour_scale_new (alpha, 0.5, 0.5, 1.0, 1.0);
   oh->scaler_2 = clutter_behaviour_scale_new (alpha, 1.0, 1.0, 0.5, 0.5);
 
-  file = g_build_filename (TESTS_DATADIR, "redhand.png", NULL);
+  file = g_build_filename (TESTS_DATADIR, "/usr/share/clutter/redhand.png", NULL);
   real_hand = clutter_texture_new_from_file (file, &error);
   if (real_hand == NULL)
     g_error ("image load failed: %s", error->message);