~elementary-os/elementaryos/os-patch-notify-osd-precise

« back to all changes in this revision

Viewing changes to tests/Makefile.am

  • Committer: Sergey "Shnatsel" Davidoff
  • Date: 2012-06-18 21:08:31 UTC
  • Revision ID: shnatsel@gmail.com-20120618210831-g6k5y7vecjdylgic
Initial import, version 0.9.34-0ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
noinst_PROGRAMS = test-modules                  \
 
2
                  test-timeline                 \
 
3
                  test-timeline-dup-frames      \
 
4
                  test-timeline-interpolate     \
 
5
                  test-timeline-rewind          \
 
6
                  test-timeline-smoothness      \
 
7
                  test-alpha-animation          \
 
8
                  test-raico                    \
 
9
                  test-tile                     \
 
10
                  test-grow-bubble              \
 
11
                  test-scroll-text
 
12
 
 
13
check_PROGRAMS = test-modules
 
14
TESTS = test-modules
 
15
 
 
16
GCOV_CFLAGS = -fprofile-arcs -ftest-coverage
 
17
 
 
18
test_modules_SOURCES =                                          \
 
19
        $(top_srcdir)/src/bubble.c                              \
 
20
        $(top_srcdir)/src/defaults.c                            \
 
21
        $(top_srcdir)/src/dialog.c                              \
 
22
        $(top_srcdir)/src/notification.c                        \
 
23
        $(top_srcdir)/src/observer.c                            \
 
24
        $(top_srcdir)/src/stack.c                               \
 
25
        $(top_srcdir)/src/dbus.c                                \
 
26
        $(top_srcdir)/src/dnd.c                                 \
 
27
        $(top_srcdir)/src/apport.c                              \
 
28
        $(top_srcdir)/src/util.c                                \
 
29
        $(top_srcdir)/src/stack-blur.c                          \
 
30
        $(top_srcdir)/src/exponential-blur.c                    \
 
31
        $(top_srcdir)/src/gaussian-blur.c                       \
 
32
        $(top_srcdir)/src/raico-blur.c                          \
 
33
        $(top_srcdir)/src/tile.c                                \
 
34
        $(top_srcdir)/src/bubble-window.c                       \
 
35
        $(top_srcdir)/src/bubble-window-accessible.c            \
 
36
        $(top_srcdir)/src/bubble-window-accessible-factory.c    \
 
37
        $(top_srcdir)/src/log.c                                 \
 
38
        $(top_srcdir)/src/timings.c                             \
 
39
        $(EGG_MODULES)                                          \
 
40
        test-modules-main.c                                     \
 
41
        test-apport.c                                           \
 
42
        test-dbus.c                                             \
 
43
        test-withlib.c                                          \
 
44
        test-bubble.c                                           \
 
45
        test-defaults.c                                         \
 
46
        test-notification.c                                     \
 
47
        test-observer.c                                         \
 
48
        test-i18n.c                                             \
 
49
        test-synchronous.c                                      \
 
50
        test-dnd.c                                              \
 
51
        test-stack.c                                            \
 
52
        test-timings.c                                          \
 
53
        test-text-filtering.c
 
54
 
 
55
test_modules_CFLAGS =           \
 
56
        $(GCOV_CFLAGS)          \
 
57
        -Wall                   \
 
58
        $(GLIB_CFLAGS)          \
 
59
        $(GTK_CFLAGS)           \
 
60
        -DWNCK_I_KNOW_THIS_IS_UNSTABLE \
 
61
        $(WNCK_CFLAGS)          \
 
62
        $(DBUS_CFLAGS)          \
 
63
        $(LIBNOTIFY_CFLAGS)     \
 
64
        -DSRCDIR=\""$(top_srcdir)"\" \
 
65
        -I$(top_srcdir)/src     \
 
66
        -I$(top_srcdir)/
 
67
 
 
68
test_modules_LDADD =            \
 
69
        $(LIBM)                 \
 
70
        $(X_LIBS)               \
 
71
        $(GLIB_LIBS)            \
 
72
        $(WNCK_LIBS)            \
 
73
        $(DBUS_LIBS)            \
 
74
        $(LIBNOTIFY_LIBS)       \
 
75
        $(NOTIFY_OSD_LIBS)      \
 
76
        $(GTK_LIBS)             \
 
77
        -lnotify
 
78
 
 
79
EGG_MODULES = \
 
80
        $(top_srcdir)/egg/egg-fixed.c           \
 
81
        $(top_srcdir)/egg/egg-units.c           \
 
82
        $(top_srcdir)/egg/egg-timeline.c                \
 
83
        $(top_srcdir)/egg/egg-timeout-pool.c    \
 
84
        $(top_srcdir)/egg/egg-alpha.c   \
 
85
        $(top_srcdir)/egg/egg-hack.c
 
86
 
 
87
VALGRIND_FLAGS = \
 
88
        --tool=memcheck --suppressions=$(srcdir)/tests.suppression \
 
89
        --leak-check=yes --show-reachable=yes
 
90
 
 
91
OLD_ENVIRONMENT = $(ENV)
 
92
 
 
93
AM_CFLAGS = \
 
94
        $(GCOV_CFLAGS) \
 
95
        -Wall           \
 
96
        $(GLIB_CFLAGS)          \
 
97
        -I$(top_srcdir)/src -I$(top_srcdir)/egg -I$(top_srcdir)
 
98
 
 
99
LDADD = $(GLIB_LIBS) -lm
 
100
 
 
101
test_timeline_SOURCES = $(top_srcdir)/egg/test-timeline.c \
 
102
        $(EGG_MODULES)
 
103
test_timeline_dup_frames_SOURCES = $(top_srcdir)/egg/test-timeline-dup-frames.c \
 
104
        $(EGG_MODULES)
 
105
test_timeline_interpolate_SOURCES = $(top_srcdir)/egg/test-timeline-interpolate.c \
 
106
        $(EGG_MODULES)
 
107
test_timeline_rewind_SOURCES = $(top_srcdir)/egg/test-timeline-rewind.c \
 
108
        $(EGG_MODULES)
 
109
test_timeline_smoothness_SOURCES = $(top_srcdir)/egg/test-timeline-smoothness.c \
 
110
        $(EGG_MODULES)
 
111
 
 
112
test_alpha_animation_SOURCES = test-alpha-animation.c \
 
113
        $(EGG_MODULES)
 
114
 
 
115
RAICO_MODULES = \
 
116
        $(top_srcdir)/src/stack-blur.c \
 
117
        $(top_srcdir)/src/exponential-blur.c \
 
118
        $(top_srcdir)/src/gaussian-blur.c \
 
119
        $(top_srcdir)/src/raico-blur.c
 
120
 
 
121
test_raico_SOURCES = \
 
122
        $(RAICO_MODULES) \
 
123
        test-raico.c
 
124
 
 
125
test_raico_CFLAGS = \
 
126
        -Wall -O0 -ggdb \
 
127
        $(GTK_CFLAGS) \
 
128
        -I$(top_srcdir)/src \
 
129
        -I$(top_srcdir)/
 
130
 
 
131
test_raico_LDADD = \
 
132
        $(LIBM) \
 
133
        $(NOTIFY_OSD_LIBS) \
 
134
        $(GTK_LIBS)
 
135
 
 
136
TILE_MODULES = \
 
137
        $(RAICO_MODULES) \
 
138
        $(top_srcdir)/src/util.c \
 
139
        $(top_srcdir)/src/tile.c
 
140
 
 
141
test_tile_SOURCES = \
 
142
        $(TILE_MODULES) \
 
143
        test-tile.c
 
144
 
 
145
test_tile_CFLAGS = \
 
146
        -Wall -O0 -ggdb \
 
147
        $(GTK_CFLAGS) \
 
148
        -I$(top_srcdir)/src \
 
149
        -I$(top_srcdir)
 
150
 
 
151
test_tile_LDADD = \
 
152
        $(LIBM) \
 
153
        $(X_LIBS) \
 
154
        $(NOTIFY_OSD_LIBS) \
 
155
        $(GTK_LIBS)
 
156
 
 
157
GROW_BUBBLE_MODULES = \
 
158
        $(RAICO_MODULES) \
 
159
        $(top_srcdir)/src/tile.c
 
160
 
 
161
test_grow_bubble_SOURCES = \
 
162
        $(TILE_MODULES) \
 
163
        test-grow-bubble.c
 
164
 
 
165
test_grow_bubble_CFLAGS = \
 
166
        -Wall -O0 -ggdb \
 
167
        $(GTK_CFLAGS) \
 
168
        -I$(top_srcdir)/src \
 
169
        -I$(top_srcdir)
 
170
 
 
171
test_grow_bubble_LDADD = \
 
172
        $(LIBM) \
 
173
        $(X_LIBS) \
 
174
        $(NOTIFY_OSD_LIBS) \
 
175
        $(GTK_LIBS)
 
176
 
 
177
SCROLL_TEXT_MODULES = \
 
178
        $(RAICO_MODULES) \
 
179
        ../src/tile.c
 
180
 
 
181
test_scroll_text_SOURCES = \
 
182
        $(TILE_MODULES) \
 
183
        test-scroll-text.c
 
184
 
 
185
test_scroll_text_CFLAGS = \
 
186
        -Wall -O0 -ggdb \
 
187
        $(GTK_CFLAGS) \
 
188
        -I$(top_srcdir)/src \
 
189
        -I$(top_srcdir)/
 
190
 
 
191
test_scroll_text_LDADD = \
 
192
        $(LIBM) \
 
193
        $(X_LIBS) \
 
194
        $(NOTIFY_OSD_LIBS) \
 
195
        $(GTK_LIBS)
 
196
 
 
197
check-valgrind:
 
198
        $(MAKE) $(AM_MAKEFLAGS) check G_SLICE=always-malloc G_DEBUG=gc-friendly TESTS_ENVIRONMENT='$(OLD_ENVIRONMENT) $(top_builddir)/libtool --mode=execute valgrind $(VALGRIND_FLAGS)' 2>&1 | tee valgrind-log
 
199
test: test-modules
 
200
        gtester -o=test-modules.xml -k ./test-modules
 
201
 
 
202
i18n: test-modules
 
203
        gtester --verbose -p=/i18n -k ./test-modules
 
204
 
 
205
test-report-html: test
 
206
        gtester-report test-modules.xml >test-modules.html
 
207
 
 
208
test-report-display: test-report-html
 
209
        gnome-open test-modules.html
 
210
 
 
211
distclean-local:
 
212
        rm -rf *.gcno
 
213
        rm -rf *.gcda