Tizen 2.1 base
[platform/upstream/gcd.git] / dispatch-1.0 / testing / Makefile.am
1 #
2 #
3 #
4
5 noinst_LTLIBRARIES=libtest.la
6
7 libtest_la_SOURCES=                     \
8         dispatch_test.c
9
10 TESTS=                                  \
11         dispatch_api                    \
12         dispatch_c99                    \
13         dispatch_cascade                \
14         dispatch_debug                  \
15         dispatch_priority               \
16         dispatch_priority2              \
17         dispatch_starfish               \
18         queue_finalizer
19
20 dispatch_c99_CFLAGS=-std=c99
21 dispatch_priority2_SOURCES=dispatch_priority.c
22 dispatch_priority2_CFLAGS=-DUSE_SET_TARGET_QUEUE=1
23
24 if HAVE_CBLOCKS
25 CBLOCKS_TESTS=                          \
26         dispatch_after                  \
27         dispatch_apply                  \
28         dispatch_drift                  \
29         dispatch_group                  \
30         dispatch_pingpong               \
31         dispatch_read                   \
32         dispatch_readsync               \
33         dispatch_sema                   \
34         dispatch_timer_bit31            \
35         dispatch_timer_bit63
36 endif
37 TESTS+=$(CBLOCKS_TESTS)
38
39 if HAVE_CXXBLOCKS
40 CXXBLOCKS_TESTS=                        \
41         dispatch_plusplus
42 dispatch_plusplus_SOURCES=dispatch_plusplus.cpp
43 endif
44 TESTS+=$(CXXBLOCKS_TESTS)
45
46 if HAVE_CORESERVICES
47 CORESERVICES_TESTS=                     \
48         dispatch_cffd
49 dispatch_cffd_LDFLAGS=-framework CoreFoundation
50 endif
51 TESTS+=$(CORESERVICES_TESTS)
52
53 if HAVE_POSIX_SPAWN_START_SUSPENDED
54 POSIX_SPAWN_START_SUSPENDED_TESTS=      \
55         dispatch_proc
56 endif
57 TESTS+=$(POSIX_SPAWN_START_SUSPENDED_TESTS)
58
59 if USE_LEGACY_API
60 LEGACY_TESTS=                           \
61         dispatch_timer_set_time
62 endif
63 TESTS+=$(LEGACY_TESTS)
64
65 #
66 # XXX: By broken, we mean non-portable.  We should instead test for the OS
67 # features they depend on, or port them as required.
68 #
69 BROKEN_TOOLS=                           \
70         harness                         \
71         nsoperation
72
73 noinst_PROGRAMS=$(TESTS)
74
75 TOOLS=                                  \
76         summarize
77
78 noinst_PROGRAMS+=$(TOOLS)
79
80 INCLUDES=-I$(top_builddir) -I$(top_srcdir)
81 LDADD=libtest.la ../src/libdispatch.la
82 CFLAGS=-Wall $(MARCH_FLAGS) $(CBLOCKS_FLAGS)
83 CXXFLAGS=-Wall $(MARCH_FLAGS) $(CXXBLOCKS_FLAGS)
84