blob: 6196f99ce435510f046e1851d3c77551a033c2ec [file] [log] [blame]
sewardjaf44c822007-11-25 14:01:38 +00001# For AM_FLAG_M3264_PRI
2include $(top_srcdir)/Makefile.flags.am
3
4SUBDIRS = .
5
6DIST_SUBDIRS = .
7
bart0cc09c92008-02-26 12:52:00 +00008noinst_SCRIPTS = \
9 filter_cmdline0 \
10 filter_error_summary \
11 filter_fdleak \
12 filter_linenos \
13 filter_none_discards \
14 filter_stderr
sewardjaf44c822007-11-25 14:01:38 +000015
16EXTRA_DIST = $(noinst_SCRIPTS) \
sewardjaf44c822007-11-25 14:01:38 +000017 fp_race.vgtest \
18 fp_race.stdout.exp fp_race.stderr.exp \
19 fp_race2.vgtest \
20 fp_race2.stdout.exp fp_race2.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000021 hg01_all_ok.vgtest \
22 hg01_all_ok.stderr.exp \
23 hg02_deadlock.vgtest \
24 hg02_deadlock.stderr.exp \
25 hg03_inherit.vgtest \
26 hg03_inherit.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000027 hg04_race.vgtest \
28 hg04_race.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000029 hg05_race2.vgtest \
30 hg05_race2.stderr.exp \
31 hg06_readshared.vgtest \
32 hg06_readshared.stderr.exp \
sewardj85642922008-01-14 11:54:56 +000033 matinv.vgtest \
34 matinv.stdout.exp matinv.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000035 pth_barrier.vgtest pth_barrier.stderr.exp \
36 pth_barrier2.vgtest pth_barrier2.stderr.exp \
37 pth_barrier3.vgtest pth_barrier3.stderr.exp \
sewardjaf44c822007-11-25 14:01:38 +000038 pth_broadcast.vgtest \
39 pth_broadcast.stdout.exp pth_broadcast.stderr.exp \
40 pth_cond_race.vgtest \
41 pth_cond_race.stdout.exp pth_cond_race.stderr.exp \
42 pth_cond_race2.vgtest \
43 pth_cond_race2.stdout.exp pth_cond_race2.stderr.exp \
44 pth_create_chain.vgtest \
45 pth_create_chain.stdout.exp pth_create_chain.stderr.exp \
46 pth_detached.vgtest \
47 pth_detached.stdout.exp pth_detached.stderr.exp \
48 pth_detached2.vgtest \
49 pth_detached2.stdout.exp pth_detached2.stderr.exp \
bart5357fcb2008-02-27 15:46:00 +000050 recursive_mutex.vgtest recursive_mutex.stderr.exp \
bart777f7fe2008-03-02 17:43:18 +000051 sem_as_mutex.vgtest sem_as_mutex.stderr.exp \
52 sem_as_mutex2.vgtest sem_as_mutex2.stderr.exp \
bart848fdf82008-03-02 19:03:19 +000053 sigalrm.vgtest \
54 sigalrm.stdout.exp sigalrm.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000055 tc01_simple_race.vgtest \
56 tc01_simple_race.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000057 tc02_simple_tls.vgtest \
58 tc02_simple_tls.stderr.exp \
59 tc03_re_excl.vgtest \
60 tc03_re_excl.stderr.exp \
61 tc04_free_lock.vgtest \
62 tc04_free_lock.stderr.exp \
63 tc05_simple_race.vgtest \
64 tc05_simple_race.stderr.exp \
65 tc06_two_races.vgtest \
66 tc06_two_races.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000067 tc09_bad_unlock.vgtest \
68 tc09_bad_unlock.stderr.exp \
69 tc10_rec_lock.vgtest \
70 tc10_rec_lock.stderr.exp \
71 tc11_XCHG.vgtest \
72 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart5976fdd2008-02-26 16:06:33 +000073 tc12_rwl_trivial.vgtest \
74 tc12_rwl_trivial.stderr.exp \
75 tc13_laog1.vgtest \
76 tc13_laog1.stderr.exp \
77 tc15_laog_lockdel.vgtest \
78 tc15_laog_lockdel.stderr.exp \
79 tc16_byterace.vgtest \
80 tc16_byterace.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000081 tc17_sembar.vgtest \
82 tc17_sembar.stderr.exp \
83 tc18_semabuse.vgtest \
84 tc18_semabuse.stderr.exp \
85 tc19_shadowmem.vgtest \
86 tc19_shadowmem.stderr.exp \
bart777f7fe2008-03-02 17:43:18 +000087 tc20_verifywrap.vgtest tc20_verifywrap.stderr.exp \
88 tc20_verifywrap2.vgtest tc20_verifywrap2.stderr.exp \
bart5976fdd2008-02-26 16:06:33 +000089 tc21_pthonce.vgtest \
90 tc21_pthonce.stderr.exp tc21_pthonce.stdout.exp \
91 tc22_exit_w_lock.vgtest \
bart0cc09c92008-02-26 12:52:00 +000092 tc22_exit_w_lock.stderr.exp-32bit \
bart51693672008-02-29 13:15:57 +000093 tc22_exit_w_lock.stderr.exp-64bit \
bart5976fdd2008-02-26 16:06:33 +000094 tc23_bogus_condwait.vgtest \
95 tc23_bogus_condwait.stderr.exp \
96 tc24_nonzero_sem.vgtest \
97 tc24_nonzero_sem.stderr.exp \
bart848fdf82008-03-02 19:03:19 +000098 trylock.c trylock.stderr.exp
sewardjaf44c822007-11-25 14:01:38 +000099
bart51693672008-02-29 13:15:57 +0000100# tc07_hbl1.vgtest
101# tc07_hbl1.stderr.exp tc07_hbl1.stdout.exp
102# tc07_hbl1.stderr.exp
103# tc08_hbl2.vgtest
104# tc08_hbl2.stderr.exp
105
sewardjaf44c822007-11-25 14:01:38 +0000106AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI)
107AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include
108AM_CXXFLAGS = $(AM_CFLAGS)
109
bart60389da2008-02-25 19:58:25 +0000110check_PROGRAMS = \
111 fp_race \
112 hg01_all_ok \
113 hg02_deadlock \
114 hg03_inherit \
115 hg04_race \
116 hg05_race2 \
117 hg06_readshared \
118 matinv \
119 pth_barrier \
120 pth_broadcast \
121 pth_cond_race \
122 pth_create_chain \
123 pth_detached \
124 sem_as_mutex \
bart5357fcb2008-02-27 15:46:00 +0000125 recursive_mutex \
bart60389da2008-02-25 19:58:25 +0000126 sigalrm \
127 tc01_simple_race \
128 tc02_simple_tls \
129 tc03_re_excl \
130 tc04_free_lock \
bart5976fdd2008-02-26 16:06:33 +0000131 tc05_simple_race \
132 tc06_two_races \
bart60389da2008-02-25 19:58:25 +0000133 tc09_bad_unlock \
134 tc10_rec_lock \
135 tc11_XCHG \
136 tc12_rwl_trivial \
137 tc13_laog1 \
138 tc15_laog_lockdel \
139 tc16_byterace \
140 tc17_sembar \
141 tc18_semabuse \
142 tc19_shadowmem \
143 tc20_verifywrap \
144 tc21_pthonce \
145 tc22_exit_w_lock \
146 tc23_bogus_condwait \
bart848fdf82008-03-02 19:03:19 +0000147 tc24_nonzero_sem \
148 trylock
sewardjaf44c822007-11-25 14:01:38 +0000149
bart4f00c742008-02-26 19:09:59 +0000150# tc07_hbl1 -- requires bus locking support.
151# tc08_hbl2 -- requires bus locking support.
bart60389da2008-02-25 19:58:25 +0000152# tc14_laog_dinphils -- hangs.
sewardjaf44c822007-11-25 14:01:38 +0000153
sewardjaf44c822007-11-25 14:01:38 +0000154
bart60389da2008-02-25 19:58:25 +0000155fp_race_SOURCES = fp_race.c
156fp_race_LDADD = -lpthread
sewardj347eeba2008-01-21 14:19:07 +0000157
bart60389da2008-02-25 19:58:25 +0000158hg01_all_ok_SOURCES = ../../helgrind/tests/hg01_all_ok.c
159hg01_all_ok_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000160
bart60389da2008-02-25 19:58:25 +0000161hg02_deadlock_SOURCES = ../../helgrind/tests/hg02_deadlock.c
162hg02_deadlock_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000163
bart60389da2008-02-25 19:58:25 +0000164hg03_inherit_SOURCES = ../../helgrind/tests/hg03_inherit.c
165hg03_inherit_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000166
bart60389da2008-02-25 19:58:25 +0000167hg04_race_SOURCES = ../../helgrind/tests/hg04_race.c
168hg04_race_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000169
bart60389da2008-02-25 19:58:25 +0000170hg05_race2_SOURCES = ../../helgrind/tests/hg05_race2.c
171hg05_race2_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000172
bart60389da2008-02-25 19:58:25 +0000173hg06_readshared_SOURCES = ../../helgrind/tests/hg06_readshared.c
174hg06_readshared_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000175
bart60389da2008-02-25 19:58:25 +0000176matinv_SOURCES = matinv.c
177matinv_LDADD = -lpthread -lm
sewardj85642922008-01-14 11:54:56 +0000178
bart60389da2008-02-25 19:58:25 +0000179pth_barrier_SOURCES = pth_barrier.c
180pth_barrier_LDADD = -lpthread
181
182pth_broadcast_SOURCES = pth_broadcast.c
183pth_broadcast_LDADD = -lpthread
184
185pth_cond_race_SOURCES = pth_cond_race.c
186pth_cond_race_LDADD = -lpthread
187
188pth_create_chain_SOURCES = pth_create_chain.c
189pth_create_chain_LDADD = -lpthread
190
191pth_detached_SOURCES = pth_detached.c
192pth_detached_LDADD = -lpthread
193
bart5357fcb2008-02-27 15:46:00 +0000194recursive_mutex_SOURCES = recursive_mutex.c
195recursive_mutex_LDADD = -lpthread
196
bart60389da2008-02-25 19:58:25 +0000197sem_as_mutex_SOURCES = sem_as_mutex.c
198sem_as_mutex_LDADD = -lpthread
199
200sigalrm_SOURCES = sigalrm.c
201sigalrm_LDADD = -lpthread
202
203tc01_simple_race_SOURCES = ../../helgrind/tests/tc01_simple_race.c
204tc01_simple_race_LDADD = -lpthread
205
206tc02_simple_tls_SOURCES = ../../helgrind/tests/tc02_simple_tls.c
207tc02_simple_tls_LDADD = -lpthread
208
209tc03_re_excl_SOURCES = ../../helgrind/tests/tc03_re_excl.c
210tc03_re_excl_LDADD = -lpthread
211
212tc04_free_lock_SOURCES = ../../helgrind/tests/tc04_free_lock.c
213tc04_free_lock_LDADD = -lpthread
214
bart5976fdd2008-02-26 16:06:33 +0000215tc05_simple_race_SOURCES = ../../helgrind/tests/tc05_simple_race.c
216tc05_simple_race_LDADD = -lpthread
217
218tc06_two_races_SOURCES = ../../helgrind/tests/tc06_two_races.c
219tc06_two_races_LDADD = -lpthread
220
bart5357fcb2008-02-27 15:46:00 +0000221# tc07_hbl1_SOURCES = ../../helgrind/tests/tc07_hbl1.c
222# tc07_hbl1_LDADD = -lpthread
bart60389da2008-02-25 19:58:25 +0000223
bart5357fcb2008-02-27 15:46:00 +0000224# tc08_hbl2_SOURCES = ../../helgrind/tests/tc08_hbl2.c
225# tc08_hbl2_LDADD = -lpthread
bart5976fdd2008-02-26 16:06:33 +0000226
bart60389da2008-02-25 19:58:25 +0000227tc09_bad_unlock_SOURCES = ../../helgrind/tests/tc09_bad_unlock.c
228tc09_bad_unlock_LDADD = -lpthread
229
230tc10_rec_lock_SOURCES = ../../helgrind/tests/tc10_rec_lock.c
231tc10_rec_lock_LDADD = -lpthread
232
233tc11_XCHG_SOURCES = ../../helgrind/tests/tc11_XCHG.c
234tc11_XCHG_LDADD = -lpthread
235
236tc12_rwl_trivial_SOURCES = ../../helgrind/tests/tc12_rwl_trivial.c
237tc12_rwl_trivial_LDADD = -lpthread
238
239tc13_laog1_SOURCES = ../../helgrind/tests/tc13_laog1.c
240tc13_laog1_LDADD = -lpthread
241
242tc15_laog_lockdel_SOURCES = ../../helgrind/tests/tc15_laog_lockdel.c
243tc15_laog_lockdel_LDADD = -lpthread
244
245tc16_byterace_SOURCES = ../../helgrind/tests/tc16_byterace.c
246tc16_byterace_LDADD = -lpthread
247
248tc17_sembar_SOURCES = ../../helgrind/tests/tc17_sembar.c
249tc17_sembar_LDADD = -lpthread
250
251tc18_semabuse_SOURCES = ../../helgrind/tests/tc18_semabuse.c
252tc18_semabuse_LDADD = -lpthread
253
254tc19_shadowmem_SOURCES = ../../helgrind/tests/tc19_shadowmem.c
255tc19_shadowmem_LDADD = -lpthread
256
257tc20_verifywrap_SOURCES = ../../helgrind/tests/tc20_verifywrap.c
258tc20_verifywrap_LDADD = -lpthread
259
260tc21_pthonce_SOURCES = ../../helgrind/tests/tc21_pthonce.c
261tc21_pthonce_LDADD = -lpthread
262
263tc22_exit_w_lock_SOURCES = ../../helgrind/tests/tc22_exit_w_lock.c
264tc22_exit_w_lock_LDADD = -lpthread
265
266tc23_bogus_condwait_SOURCES = ../../helgrind/tests/tc23_bogus_condwait.c
267tc23_bogus_condwait_LDADD = -lpthread
268
269tc24_nonzero_sem_SOURCES = ../../helgrind/tests/tc24_nonzero_sem.c
270tc24_nonzero_sem_LDADD = -lpthread
bart848fdf82008-03-02 19:03:19 +0000271
272trylock_SOURCES = trylock.c
273trylock_LDADD = -lpthread -lrt