blob: e7bd550cd07c917ec96bdc3e1341cb392a4f05b2 [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 \
bart3b9f3bf2008-03-16 07:48:07 +000014 filter_stderr \
15 run_openmp_test
sewardjaf44c822007-11-25 14:01:38 +000016
bart40605eb2008-03-04 18:37:20 +000017EXTRA_DIST = \
18 $(noinst_SCRIPTS) \
19 fp_race.stderr.exp \
20 fp_race.stderr.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000021 fp_race.vgtest \
22 fp_race2.stderr.exp \
23 fp_race2.stderr.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000024 fp_race2.vgtest \
25 hg01_all_ok.stderr.exp \
26 hg01_all_ok.stderr.exp-linuxthreads \
27 hg01_all_ok.vgtest \
28 hg02_deadlock.stderr.exp \
29 hg02_deadlock.stderr.exp-linuxthreads \
30 hg02_deadlock.vgtest \
31 hg03_inherit.stderr.exp \
32 hg03_inherit.stderr.exp-linuxthreads \
bart0aeb1862008-03-10 19:26:42 +000033 hg03_inherit.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +000034 hg03_inherit.vgtest \
35 hg04_race.stderr.exp \
36 hg04_race.stderr.exp-linuxthreads \
37 hg04_race.vgtest \
38 hg05_race2.stderr.exp \
39 hg05_race2.stderr.exp-linuxthreads \
40 hg05_race2.vgtest \
41 hg06_readshared.stderr.exp \
42 hg06_readshared.stderr.exp-linuxthreads \
43 hg06_readshared.vgtest \
bart96f892f2008-03-09 16:16:06 +000044 linuxthreads_det.stderr.exp \
45 linuxthreads_det.stderr.exp-linuxthreads \
46 linuxthreads_det.stdout.exp \
47 linuxthreads_det.stdout.exp-linuxthreads \
barte8acf492008-03-12 17:27:20 +000048 linuxthreads_det.stdout.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000049 matinv.stderr.exp \
50 matinv.stderr.exp-linuxthreads \
51 matinv.stdout.exp \
52 matinv.stdout.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000053 matinv.vgtest \
bart805043e2008-03-12 17:49:57 +000054 omp_matinv.stderr.exp \
55 omp_matinv.stdout.exp \
56 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +000057 omp_matinv_racy.stderr.exp \
58 omp_matinv_racy.stdout.exp \
59 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +000060 omp_prime_racy.stderr.exp \
61 omp_prime_racy.stdout.exp \
62 omp_prime_racy.vgtest \
bart40605eb2008-03-04 18:37:20 +000063 pth_barrier.stderr.exp \
64 pth_barrier.stderr.exp-linuxthreads \
65 pth_barrier.vgtest \
66 pth_barrier2.stderr.exp \
67 pth_barrier2.stderr.exp-linuxthreads \
68 pth_barrier2.vgtest \
69 pth_barrier3.stderr.exp \
70 pth_barrier3.stderr.exp-linuxthreads \
71 pth_barrier3.vgtest \
72 pth_broadcast.stderr.exp \
73 pth_broadcast.stderr.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000074 pth_broadcast.vgtest \
75 pth_cond_race.stderr.exp \
76 pth_cond_race.stderr.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000077 pth_cond_race.vgtest \
78 pth_cond_race2.stderr.exp \
79 pth_cond_race2.stderr.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000080 pth_cond_race2.vgtest \
81 pth_create_chain.stderr.exp \
82 pth_create_chain.stderr.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000083 pth_create_chain.vgtest \
84 pth_detached.stderr.exp \
85 pth_detached.stderr.exp-linuxthreads \
86 pth_detached.stdout.exp \
87 pth_detached.stdout.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000088 pth_detached.vgtest \
89 pth_detached2.stderr.exp \
90 pth_detached2.stderr.exp-linuxthreads \
91 pth_detached2.stdout.exp \
92 pth_detached2.stdout.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +000093 pth_detached2.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +000094 pth_detached_sem.stdout.exp \
95 pth_detached_sem.stdout.exp-linuxthreads \
96 pth_detached_sem.stderr.exp \
97 pth_detached_sem.stderr.exp-linuxthreads \
98 pth_detached_sem.vgtest \
bart40605eb2008-03-04 18:37:20 +000099 recursive_mutex.stderr.exp \
barte8acf492008-03-12 17:27:20 +0000100 recursive_mutex.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000101 recursive_mutex.vgtest \
102 rwlock_race.stderr.exp \
103 rwlock_race.stderr.exp-linuxthreads \
104 rwlock_race.vgtest \
105 sem_as_mutex.stderr.exp \
106 sem_as_mutex.stderr.exp-linuxthreads \
107 sem_as_mutex.vgtest \
108 sem_as_mutex2.stderr.exp \
109 sem_as_mutex2.stderr.exp-linuxthreads \
110 sem_as_mutex2.vgtest \
barte8acf492008-03-12 17:27:20 +0000111 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000112 sigalrm.stderr.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +0000113 sigalrm.vgtest \
114 tc01_simple_race.stderr.exp \
115 tc01_simple_race.stderr.exp-linuxthreads \
116 tc01_simple_race.vgtest \
117 tc02_simple_tls.stderr.exp \
118 tc02_simple_tls.stderr.exp-linuxthreads \
119 tc02_simple_tls.vgtest \
120 tc03_re_excl.stderr.exp \
121 tc03_re_excl.stderr.exp-linuxthreads \
122 tc03_re_excl.vgtest \
123 tc04_free_lock.stderr.exp \
124 tc04_free_lock.stderr.exp-linuxthreads \
125 tc04_free_lock.vgtest \
126 tc05_simple_race.stderr.exp \
127 tc05_simple_race.stderr.exp-linuxthreads \
128 tc05_simple_race.vgtest \
129 tc06_two_races.stderr.exp \
130 tc06_two_races.stderr.exp-linuxthreads \
131 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000132 tc07_hbl1.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000133 tc07_hbl1.stderr.exp-linuxthreads \
bart8360df52008-03-07 17:34:22 +0000134 tc07_hbl1.stdout.exp \
bart43409c92008-03-07 19:29:03 +0000135 tc07_hbl1.stdout.exp-linuxthreads \
bart8360df52008-03-07 17:34:22 +0000136 tc07_hbl1.vgtest \
137 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000138 tc08_hbl2.stderr.exp-linuxthreads \
139 tc08_hbl2.stdout.exp \
140 tc08_hbl2.stdout.exp-linuxthreads \
bart8360df52008-03-07 17:34:22 +0000141 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000142 tc09_bad_unlock.stderr.exp \
143 tc09_bad_unlock.stderr.exp-linuxthreads \
144 tc09_bad_unlock.vgtest \
145 tc10_rec_lock.stderr.exp \
146 tc10_rec_lock.stderr.exp-linuxthreads \
147 tc10_rec_lock.vgtest \
148 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
149 tc11_XCHG.stderr.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +0000150 tc11_XCHG.vgtest \
151 tc12_rwl_trivial.stderr.exp \
152 tc12_rwl_trivial.stderr.exp-linuxthreads \
153 tc12_rwl_trivial.vgtest \
154 tc13_laog1.stderr.exp \
155 tc13_laog1.vgtest \
156 tc15_laog_lockdel.stderr.exp \
157 tc15_laog_lockdel.vgtest \
158 tc16_byterace.stderr.exp \
159 tc16_byterace.stderr.exp-linuxthreads \
160 tc16_byterace.vgtest \
161 tc17_sembar.stderr.exp \
162 tc17_sembar.stderr.exp-linuxthreads \
163 tc17_sembar.vgtest \
164 tc18_semabuse.stderr.exp \
165 tc18_semabuse.stderr.exp-linuxthreads \
166 tc18_semabuse.vgtest \
167 tc19_shadowmem.stderr.exp \
168 tc19_shadowmem.vgtest \
169 tc20_verifywrap.stderr.exp \
bart4ff230a2008-03-08 15:04:25 +0000170 tc20_verifywrap.stderr.exp-glibc2.3 \
bart40605eb2008-03-04 18:37:20 +0000171 tc20_verifywrap.stderr.exp-linuxthreads \
172 tc20_verifywrap.vgtest \
173 tc20_verifywrap2.stderr.exp \
bart4ff230a2008-03-08 15:04:25 +0000174 tc20_verifywrap2.stderr.exp-glibc2.3 \
bart3effeb92008-03-09 19:20:27 +0000175 tc20_verifywrap2.stderr.exp-glibc2.3-b \
bart40605eb2008-03-04 18:37:20 +0000176 tc20_verifywrap2.stderr.exp-linuxthreads \
177 tc20_verifywrap2.vgtest \
178 tc21_pthonce.stderr.exp \
179 tc21_pthonce.stderr.exp-linuxthreads \
180 tc21_pthonce.stdout.exp \
181 tc21_pthonce.stdout.exp-linuxthreads \
bart40605eb2008-03-04 18:37:20 +0000182 tc21_pthonce.vgtest \
183 tc22_exit_w_lock.stderr.exp-32bit \
184 tc22_exit_w_lock.stderr.exp-64bit \
185 tc22_exit_w_lock.stderr.exp-linuxthreads \
186 tc22_exit_w_lock.vgtest \
187 tc23_bogus_condwait.stderr.exp \
188 tc23_bogus_condwait.stderr.exp-linuxthreads \
189 tc23_bogus_condwait.vgtest \
190 tc24_nonzero_sem.stderr.exp \
191 tc24_nonzero_sem.vgtest \
192 trylock.c trylock.stderr.exp \
193 trylock.stderr.exp-linuxthreads
sewardjaf44c822007-11-25 14:01:38 +0000194
195AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI)
196AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include
197AM_CXXFLAGS = $(AM_CFLAGS)
198
bart29cc9db2008-03-09 15:59:30 +0000199check_PROGRAMS_COMMON = \
bart60389da2008-02-25 19:58:25 +0000200 fp_race \
201 hg01_all_ok \
202 hg02_deadlock \
203 hg03_inherit \
204 hg04_race \
205 hg05_race2 \
206 hg06_readshared \
bart96f892f2008-03-09 16:16:06 +0000207 linuxthreads_det \
bart60389da2008-02-25 19:58:25 +0000208 matinv \
209 pth_barrier \
210 pth_broadcast \
211 pth_cond_race \
212 pth_create_chain \
213 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000214 pth_detached_sem \
bart5357fcb2008-02-27 15:46:00 +0000215 recursive_mutex \
bart5bd9f2d2008-03-03 20:31:58 +0000216 rwlock_race \
217 sem_as_mutex \
bart60389da2008-02-25 19:58:25 +0000218 sigalrm \
219 tc01_simple_race \
220 tc02_simple_tls \
221 tc03_re_excl \
222 tc04_free_lock \
bart5976fdd2008-02-26 16:06:33 +0000223 tc05_simple_race \
224 tc06_two_races \
bart8360df52008-03-07 17:34:22 +0000225 tc07_hbl1 \
226 tc08_hbl2 \
bart60389da2008-02-25 19:58:25 +0000227 tc09_bad_unlock \
228 tc10_rec_lock \
229 tc11_XCHG \
230 tc12_rwl_trivial \
231 tc13_laog1 \
232 tc15_laog_lockdel \
233 tc16_byterace \
234 tc17_sembar \
235 tc18_semabuse \
236 tc19_shadowmem \
237 tc20_verifywrap \
238 tc21_pthonce \
239 tc22_exit_w_lock \
240 tc23_bogus_condwait \
bart848fdf82008-03-02 19:03:19 +0000241 tc24_nonzero_sem \
242 trylock
sewardjaf44c822007-11-25 14:01:38 +0000243
bart805043e2008-03-12 17:49:57 +0000244check_PROGRAMS_OPENMP = omp_matinv omp_prime
bart29cc9db2008-03-09 15:59:30 +0000245
bart1f52b822008-03-12 17:11:48 +0000246if HAVE_OPENMP
bart29cc9db2008-03-09 15:59:30 +0000247check_PROGRAMS = $(check_PROGRAMS_COMMON) $(check_PROGRAMS_OPENMP)
248else
249check_PROGRAMS = $(check_PROGRAMS_COMMON)
250endif
251
bart60389da2008-02-25 19:58:25 +0000252# tc14_laog_dinphils -- hangs.
sewardjaf44c822007-11-25 14:01:38 +0000253
sewardjaf44c822007-11-25 14:01:38 +0000254
bart60389da2008-02-25 19:58:25 +0000255fp_race_SOURCES = fp_race.c
256fp_race_LDADD = -lpthread
sewardj347eeba2008-01-21 14:19:07 +0000257
bart60389da2008-02-25 19:58:25 +0000258hg01_all_ok_SOURCES = ../../helgrind/tests/hg01_all_ok.c
259hg01_all_ok_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000260
bart60389da2008-02-25 19:58:25 +0000261hg02_deadlock_SOURCES = ../../helgrind/tests/hg02_deadlock.c
262hg02_deadlock_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000263
bart60389da2008-02-25 19:58:25 +0000264hg03_inherit_SOURCES = ../../helgrind/tests/hg03_inherit.c
265hg03_inherit_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000266
bart60389da2008-02-25 19:58:25 +0000267hg04_race_SOURCES = ../../helgrind/tests/hg04_race.c
268hg04_race_LDADD = -lpthread
sewardjaf44c822007-11-25 14:01:38 +0000269
bart60389da2008-02-25 19:58:25 +0000270hg05_race2_SOURCES = ../../helgrind/tests/hg05_race2.c
271hg05_race2_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000272
bart60389da2008-02-25 19:58:25 +0000273hg06_readshared_SOURCES = ../../helgrind/tests/hg06_readshared.c
274hg06_readshared_LDADD = -lpthread
sewardj85642922008-01-14 11:54:56 +0000275
bart96f892f2008-03-09 16:16:06 +0000276linuxthreads_det_SOURCES = linuxthreads_det.c
277linuxthreads_det_LDADD = -lpthread
278
bart60389da2008-02-25 19:58:25 +0000279matinv_SOURCES = matinv.c
280matinv_LDADD = -lpthread -lm
sewardj85642922008-01-14 11:54:56 +0000281
bart60389da2008-02-25 19:58:25 +0000282pth_barrier_SOURCES = pth_barrier.c
283pth_barrier_LDADD = -lpthread
284
285pth_broadcast_SOURCES = pth_broadcast.c
286pth_broadcast_LDADD = -lpthread
287
288pth_cond_race_SOURCES = pth_cond_race.c
289pth_cond_race_LDADD = -lpthread
290
291pth_create_chain_SOURCES = pth_create_chain.c
292pth_create_chain_LDADD = -lpthread
293
294pth_detached_SOURCES = pth_detached.c
295pth_detached_LDADD = -lpthread
296
bart3b9f3bf2008-03-16 07:48:07 +0000297pth_detached_sem_SOURCES = pth_detached_sem.c
298pth_detached_sem_LDADD = -lpthread
299
bart5357fcb2008-02-27 15:46:00 +0000300recursive_mutex_SOURCES = recursive_mutex.c
301recursive_mutex_LDADD = -lpthread
302
bart5bd9f2d2008-03-03 20:31:58 +0000303rwlock_race_SOURCES = rwlock_race.c
304rwlock_race_LDADD = -lpthread
305
bart60389da2008-02-25 19:58:25 +0000306sem_as_mutex_SOURCES = sem_as_mutex.c
307sem_as_mutex_LDADD = -lpthread
308
309sigalrm_SOURCES = sigalrm.c
310sigalrm_LDADD = -lpthread
311
312tc01_simple_race_SOURCES = ../../helgrind/tests/tc01_simple_race.c
313tc01_simple_race_LDADD = -lpthread
314
315tc02_simple_tls_SOURCES = ../../helgrind/tests/tc02_simple_tls.c
316tc02_simple_tls_LDADD = -lpthread
317
318tc03_re_excl_SOURCES = ../../helgrind/tests/tc03_re_excl.c
319tc03_re_excl_LDADD = -lpthread
320
321tc04_free_lock_SOURCES = ../../helgrind/tests/tc04_free_lock.c
322tc04_free_lock_LDADD = -lpthread
323
bart5976fdd2008-02-26 16:06:33 +0000324tc05_simple_race_SOURCES = ../../helgrind/tests/tc05_simple_race.c
325tc05_simple_race_LDADD = -lpthread
326
327tc06_two_races_SOURCES = ../../helgrind/tests/tc06_two_races.c
328tc06_two_races_LDADD = -lpthread
329
bart8360df52008-03-07 17:34:22 +0000330tc07_hbl1_SOURCES = ../../helgrind/tests/tc07_hbl1.c
331tc07_hbl1_LDADD = -lpthread
bart60389da2008-02-25 19:58:25 +0000332
bart8360df52008-03-07 17:34:22 +0000333tc08_hbl2_SOURCES = ../../helgrind/tests/tc08_hbl2.c
334tc08_hbl2_LDADD = -lpthread
bart5976fdd2008-02-26 16:06:33 +0000335
bart60389da2008-02-25 19:58:25 +0000336tc09_bad_unlock_SOURCES = ../../helgrind/tests/tc09_bad_unlock.c
337tc09_bad_unlock_LDADD = -lpthread
338
339tc10_rec_lock_SOURCES = ../../helgrind/tests/tc10_rec_lock.c
340tc10_rec_lock_LDADD = -lpthread
341
342tc11_XCHG_SOURCES = ../../helgrind/tests/tc11_XCHG.c
343tc11_XCHG_LDADD = -lpthread
344
345tc12_rwl_trivial_SOURCES = ../../helgrind/tests/tc12_rwl_trivial.c
346tc12_rwl_trivial_LDADD = -lpthread
347
348tc13_laog1_SOURCES = ../../helgrind/tests/tc13_laog1.c
349tc13_laog1_LDADD = -lpthread
350
351tc15_laog_lockdel_SOURCES = ../../helgrind/tests/tc15_laog_lockdel.c
352tc15_laog_lockdel_LDADD = -lpthread
353
354tc16_byterace_SOURCES = ../../helgrind/tests/tc16_byterace.c
355tc16_byterace_LDADD = -lpthread
356
357tc17_sembar_SOURCES = ../../helgrind/tests/tc17_sembar.c
358tc17_sembar_LDADD = -lpthread
359
360tc18_semabuse_SOURCES = ../../helgrind/tests/tc18_semabuse.c
361tc18_semabuse_LDADD = -lpthread
362
363tc19_shadowmem_SOURCES = ../../helgrind/tests/tc19_shadowmem.c
364tc19_shadowmem_LDADD = -lpthread
365
366tc20_verifywrap_SOURCES = ../../helgrind/tests/tc20_verifywrap.c
367tc20_verifywrap_LDADD = -lpthread
368
369tc21_pthonce_SOURCES = ../../helgrind/tests/tc21_pthonce.c
370tc21_pthonce_LDADD = -lpthread
371
372tc22_exit_w_lock_SOURCES = ../../helgrind/tests/tc22_exit_w_lock.c
373tc22_exit_w_lock_LDADD = -lpthread
374
375tc23_bogus_condwait_SOURCES = ../../helgrind/tests/tc23_bogus_condwait.c
376tc23_bogus_condwait_LDADD = -lpthread
377
378tc24_nonzero_sem_SOURCES = ../../helgrind/tests/tc24_nonzero_sem.c
379tc24_nonzero_sem_LDADD = -lpthread
bart848fdf82008-03-02 19:03:19 +0000380
381trylock_SOURCES = trylock.c
382trylock_LDADD = -lpthread -lrt
bart0aeb1862008-03-10 19:26:42 +0000383
bart1f52b822008-03-12 17:11:48 +0000384if HAVE_OPENMP
bart805043e2008-03-12 17:49:57 +0000385omp_matinv_SOURCES = omp_matinv.c
386omp_matinv_CFLAGS = -fopenmp
387omp_matinv_LDFLAGS = -fopenmp
388omp_matinv_LDADD = -lm
bart0aeb1862008-03-10 19:26:42 +0000389
390omp_prime_SOURCES = omp_prime.c
391omp_prime_CFLAGS = -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000392omp_prime_LDFLAGS = -fopenmp
bart0aeb1862008-03-10 19:26:42 +0000393omp_prime_LDADD = -lm
394endif