summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/clutter/clutter/enable_tests-0.6.patch
blob: 544a7e588ce5fcb4f77488942deabccc24700be7 (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
37
38
39
40
---
 tests/Makefile.am   |    7 ++++++-
 tests/test-actors.c |    2 +-
 tests/test-text.c   |    2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

Index: clutter-0-6/tests/Makefile.am
===================================================================
--- clutter.orig/tests/Makefile.am	2007-11-06 12:29:17.000000000 +0000
+++ clutter-0-6/tests/Makefile.am	2007-11-06 12:30:11.000000000 +0000
@@ -1,4 +1,4 @@
-noinst_PROGRAMS = test-textures test-events test-offscreen test-scale \
+bin_PROGRAMS = test-textures test-events test-offscreen test-scale \
                   test-actors test-behave test-text test-entry test-project \
 		  test-boxes test-perspective test-rotate test-depth \
 		  test-threads test-timeline test-score test-script
@@ -26,4 +26,9 @@ test_timeline_SOURCES  = test-timeline.c
 test_score_SOURCES     = test-score.c
 test_script_SOURCES    = test-script.c
 
+test_textdir           = $(pkgdatadir)
+test_text_DATA         = test-text.c
+test_actorsdir         = $(pkgdatadir)
+test_actors_DATA       = redhand.png
+
 EXTRA_DIST = redhand.png test-script.json
Index: clutter-0-6/tests/test-actors.c
===================================================================
--- clutter.orig/tests/test-actors.c	2007-11-06 12:29:17.000000000 +0000
+++ clutter-0-6/tests/test-actors.c	2007-11-06 12:29:21.000000000 +0000
@@ -143,7 +143,7 @@ main (int argc, char *argv[])
   stage = clutter_stage_get_default ();
   clutter_actor_set_size (stage, 800, 600);
 
-  pixbuf = gdk_pixbuf_new_from_file ("redhand.png", NULL);
+  pixbuf = gdk_pixbuf_new_from_file ("/usr/share/clutter/redhand.png", NULL);
 
   if (!pixbuf)
     g_error("pixbuf load failed");