blob: 820ef2b4aa09aae68a120c5b2fb86ff6b2f1e8d2 [file] [log] [blame]
njn53044572009-02-19 09:52:05 +00001
2include $(top_srcdir)/Makefile.tool-tests.am
sewardjaf44c822007-11-25 14:01:38 +00003
njn8b68b642009-06-24 00:37:09 +00004dist_noinst_SCRIPTS = \
bart66f196d2009-08-15 10:50:35 +00005 compare_error_count_with \
bart33f64822011-10-22 16:29:11 +00006 filter_annotate_barrier_xml \
bartb6230df2011-07-29 07:22:29 +00007 filter_error_count \
bart9e87dca2009-03-10 09:19:26 +00008 filter_error_summary \
9 filter_stderr \
10 filter_stderr_and_thread_no \
barte35e9d82011-07-13 16:46:18 +000011 filter_stderr_and_thread_no_and_offset \
barte7086002011-10-11 19:08:39 +000012 filter_thread_no \
13 filter_xml_and_thread_no \
bart9e87dca2009-03-10 09:19:26 +000014 run_openmp_test \
njn26139fa2009-08-11 00:18:31 +000015 supported_libpthread \
16 supported_sem_init
sewardjaf44c822007-11-25 14:01:38 +000017
njn8b68b642009-06-24 00:37:09 +000018noinst_HEADERS = \
sewardj28402762010-07-15 15:09:38 +000019 tsan_thread_wrappers_pthread.h \
20 unified_annotations.h
njn8b68b642009-06-24 00:37:09 +000021
bart40605eb2008-03-04 18:37:20 +000022EXTRA_DIST = \
bartea2a03c2010-03-21 17:24:47 +000023 annotate_barrier.stderr.exp \
24 annotate_barrier.vgtest \
barte7086002011-10-11 19:08:39 +000025 annotate_barrier_xml.stderr.exp \
26 annotate_barrier_xml.vgtest \
bartcf3eb1b2010-03-07 10:47:59 +000027 annotate_hb_err.stderr.exp \
28 annotate_hb_err.vgtest \
bartb43825e2010-03-07 19:59:35 +000029 annotate_hb_race.stderr.exp \
30 annotate_hb_race.vgtest \
bartf64a8aa2009-08-14 13:25:38 +000031 annotate_hbefore.stderr.exp \
32 annotate_hbefore.vgtest \
bartd45d9952009-05-31 18:53:54 +000033 annotate_order_1.stderr.exp \
34 annotate_order_1.vgtest \
bart3a6fff22009-08-14 06:45:16 +000035 annotate_order_2.stderr.exp \
36 annotate_order_2.vgtest \
37 annotate_order_3.stderr.exp \
38 annotate_order_3.vgtest \
bart66f196d2009-08-15 10:50:35 +000039 annotate_publish_hg.stderr.exp \
40 annotate_publish_hg.vgtest \
bartcf3eb1b2010-03-07 10:47:59 +000041 annotate_smart_pointer.stderr.exp \
42 annotate_smart_pointer.vgtest \
bartb6c51bf2011-07-13 10:43:49 +000043 annotate_smart_pointer2.stderr.exp \
44 annotate_smart_pointer2.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000045 annotate_spinlock.stderr.exp \
46 annotate_spinlock.vgtest \
bartd45d9952009-05-31 18:53:54 +000047 annotate_rwlock.stderr.exp \
48 annotate_rwlock.vgtest \
bart66f196d2009-08-15 10:50:35 +000049 annotate_rwlock_hg.stderr.exp \
50 annotate_rwlock_hg.vgtest \
bartd45d9952009-05-31 18:53:54 +000051 annotate_ignore_read.stderr.exp \
52 annotate_ignore_read.vgtest \
bart5f3be752009-08-11 15:00:54 +000053 annotate_ignore_rw.stderr.exp \
54 annotate_ignore_rw.vgtest \
barta5225b82009-08-12 09:45:18 +000055 annotate_ignore_rw2.stderr.exp \
56 annotate_ignore_rw2.vgtest \
barte6361362009-08-13 09:30:57 +000057 annotate_ignore_write.stderr.exp \
58 annotate_ignore_write.vgtest \
59 annotate_ignore_write2.stderr.exp \
60 annotate_ignore_write2.vgtest \
bartac0686d2011-12-14 07:30:05 +000061 annotate_trace_memory.stderr.exp-32bit \
62 annotate_trace_memory.stderr.exp-64bit \
bartd45d9952009-05-31 18:53:54 +000063 annotate_trace_memory.vgtest \
bartac0686d2011-12-14 07:30:05 +000064 annotate_trace_memory_xml.stderr.exp-32bit \
65 annotate_trace_memory_xml.stderr.exp-64bit \
barte7086002011-10-11 19:08:39 +000066 annotate_trace_memory_xml.vgtest \
bartea2a03c2010-03-21 17:24:47 +000067 annotate_static.stderr.exp \
68 annotate_static.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000069 atomic_var.stderr.exp \
bartcca440b2008-07-10 11:58:08 +000070 atomic_var.vgtest \
bartc4a9e0f2008-11-17 17:38:28 +000071 bar_bad.stderr.exp \
72 bar_bad.vgtest \
barte7086002011-10-11 19:08:39 +000073 bar_bad_xml.stderr.exp \
74 bar_bad_xml.vgtest \
bartc4a9e0f2008-11-17 17:38:28 +000075 bar_trivial.stderr.exp \
bart7f08c732009-05-16 06:24:40 +000076 bar_trivial.stdout.exp \
bartc4a9e0f2008-11-17 17:38:28 +000077 bar_trivial.vgtest \
78 boost_thread.stderr.exp \
79 boost_thread.vgtest \
bart181b6bc2010-04-29 06:06:29 +000080 bug-235681.stderr.exp \
81 bug-235681.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000082 circular_buffer.stderr.exp \
bart6fd7d742008-12-17 19:21:17 +000083 circular_buffer.vgtest \
bart6c7c76e2009-05-01 12:23:47 +000084 custom_alloc.stderr.exp \
bart7f08c732009-05-16 06:24:40 +000085 custom_alloc.vgtest \
barta3f7b502011-03-13 09:04:21 +000086 custom_alloc_fiw.stderr.exp \
87 custom_alloc_fiw.vgtest \
bart40605eb2008-03-04 18:37:20 +000088 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000089 fp_race.vgtest \
90 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000091 fp_race2.vgtest \
barte7086002011-10-11 19:08:39 +000092 fp_race_xml.stderr.exp \
93 fp_race_xml.vgtest \
bartf64ff032011-03-12 14:02:06 +000094 free_is_write.stderr.exp \
bart74a9bb02011-03-12 16:10:33 +000095 free_is_write.vgtest \
96 free_is_write2.stderr.exp \
97 free_is_write2.vgtest \
bart40605eb2008-03-04 18:37:20 +000098 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000099 hg01_all_ok.vgtest \
100 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000101 hg02_deadlock.vgtest \
102 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000103 hg03_inherit.vgtest \
104 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000105 hg04_race.vgtest \
106 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +0000107 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +0000108 hg05_race2.vgtest \
109 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000110 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +0000111 hold_lock_1.stderr.exp \
112 hold_lock_1.vgtest \
113 hold_lock_2.stderr.exp \
114 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +0000115 linuxthreads_det.stderr.exp \
116 linuxthreads_det.stderr.exp-linuxthreads \
117 linuxthreads_det.stdout.exp \
118 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +0000119 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +0000120 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000121 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000122 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +0000123 memory_allocation.stderr.exp \
124 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +0000125 monitor_example.stderr.exp \
126 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +0000127 new_delete.stderr.exp \
128 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +0000129 omp_matinv.stderr.exp \
130 omp_matinv.stdout.exp \
131 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +0000132 omp_matinv_racy.stderr.exp \
133 omp_matinv_racy.stdout.exp \
134 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +0000135 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +0000136 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +0000137 omp_printf.stderr.exp \
138 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +0000139 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000140 pth_barrier.vgtest \
141 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000142 pth_barrier2.vgtest \
143 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000144 pth_barrier3.vgtest \
bartb235a672009-02-22 09:26:22 +0000145 pth_barrier_race.stderr.exp \
146 pth_barrier_race.vgtest \
bartd9e39ec2008-06-28 15:03:26 +0000147 pth_barrier_reinit.stderr.exp \
148 pth_barrier_reinit.vgtest \
bartb56542a2011-07-29 12:32:53 +0000149 pth_barrier_thr_cr.stderr.exp \
150 pth_barrier_thr_cr.vgtest \
bart47c75802011-07-30 09:29:20 +0000151 pth_barrier_thr_cr.supp \
bart40605eb2008-03-04 18:37:20 +0000152 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000153 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +0000154 pth_cancel_locked.stderr.exp \
bartdbaced02009-07-31 18:49:29 +0000155 pth_cancel_locked.stderr.exp-darwin \
bart032424f2008-09-27 12:26:17 +0000156 pth_cancel_locked.vgtest \
bart505a4962009-07-04 12:20:04 +0000157 pth_cleanup_handler.stderr.exp \
158 pth_cleanup_handler.vgtest \
bart40605eb2008-03-04 18:37:20 +0000159 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000160 pth_cond_race.vgtest \
161 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000162 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +0000163 pth_cond_race3.stderr.exp \
164 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +0000165 pth_create_chain.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000166 pth_create_chain.vgtest \
bartfaec72f2009-04-26 07:14:15 +0000167 pth_create_glibc_2_0.stderr.exp \
168 pth_create_glibc_2_0.vgtest \
bart40605eb2008-03-04 18:37:20 +0000169 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000170 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000171 pth_detached.vgtest \
172 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000173 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000174 pth_detached2.vgtest \
bart8ca16232011-03-09 18:27:25 +0000175 pth_detached3.stderr.exp1 \
176 pth_detached3.stderr.exp2 \
bart3f5cc7e2011-03-09 17:50:34 +0000177 pth_detached3.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +0000178 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000179 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000180 pth_detached_sem.vgtest \
bart5639ce12009-01-20 14:25:22 +0000181 pth_inconsistent_cond_wait.stderr.exp1 \
182 pth_inconsistent_cond_wait.stderr.exp2 \
barte65b4c62008-07-04 11:47:06 +0000183 pth_inconsistent_cond_wait.vgtest \
bart7f08c732009-05-16 06:24:40 +0000184 pth_mutex_reinit.stderr.exp \
185 pth_mutex_reinit.vgtest \
bart7caef852009-07-26 15:27:27 +0000186 pth_once.stderr.exp \
187 pth_once.vgtest \
njnff5bdd42009-05-18 23:24:26 +0000188 pth_process_shared_mutex.stderr.exp \
bartf1473ad2009-05-19 17:26:20 +0000189 pth_process_shared_mutex.vgtest \
bart19c42602008-07-07 08:04:08 +0000190 pth_spinlock.stderr.exp \
191 pth_spinlock.vgtest \
bart28d77382010-05-29 18:42:14 +0000192 pth_uninitialized_cond.stderr.exp \
193 pth_uninitialized_cond.vgtest \
bart74a9bb02011-03-12 16:10:33 +0000194 read_and_free_race.stderr.exp \
195 read_and_free_race.vgtest \
bart9e4efbf2009-07-22 19:04:23 +0000196 recursive_mutex.stderr.exp-linux \
197 recursive_mutex.stderr.exp-darwin \
bart40605eb2008-03-04 18:37:20 +0000198 recursive_mutex.vgtest \
199 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000200 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000201 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000202 rwlock_test.stderr.exp \
203 rwlock_test.vgtest \
bartc8441502009-07-27 16:03:51 +0000204 rwlock_type_checking.stderr.exp \
205 rwlock_type_checking.vgtest \
bart40605eb2008-03-04 18:37:20 +0000206 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000207 sem_as_mutex.vgtest \
208 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000209 sem_as_mutex2.vgtest \
bartb20f69b2009-05-03 17:43:55 +0000210 sem_as_mutex3.stderr.exp \
211 sem_as_mutex3.vgtest \
bart25f9f542009-07-23 16:31:39 +0000212 sem_open.stderr.exp \
213 sem_open.vgtest \
214 sem_open2.stderr.exp \
215 sem_open2.vgtest \
216 sem_open3.stderr.exp \
217 sem_open3.vgtest \
bart0f83d482009-07-26 09:16:56 +0000218 sem_open_traced.stderr.exp \
219 sem_open_traced.vgtest \
barteae16322012-08-24 17:57:44 +0000220 sem_wait.stderr.exp \
221 sem_wait.vgtest \
barte8acf492008-03-12 17:27:20 +0000222 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000223 sigalrm.vgtest \
bart212534a2010-09-02 14:09:13 +0000224 sigaltstack.stderr.exp \
225 sigaltstack.vgtest \
bartf68af882011-12-10 19:42:05 +0000226 std_thread.stderr.exp \
227 std_thread.vgtest \
bart40605eb2008-03-04 18:37:20 +0000228 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000229 tc01_simple_race.vgtest \
230 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000231 tc02_simple_tls.vgtest \
232 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000233 tc03_re_excl.vgtest \
bartb4913ad2011-12-17 14:18:25 +0000234 tc04_free_lock.stderr.exp-x86 \
235 tc04_free_lock.stderr.exp-ppc \
bart5c09e762012-06-30 18:00:08 +0000236 tc04_free_lock.stderr.exp-s390 \
bart40605eb2008-03-04 18:37:20 +0000237 tc04_free_lock.vgtest \
238 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000239 tc05_simple_race.vgtest \
240 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000241 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000242 tc07_hbl1.stderr.exp \
243 tc07_hbl1.stdout.exp \
244 tc07_hbl1.vgtest \
245 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000246 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000247 tc08_hbl2.vgtest \
bartb4913ad2011-12-17 14:18:25 +0000248 tc09_bad_unlock.stderr.exp-x86 \
249 tc09_bad_unlock.stderr.exp-ppc \
bartdf961972008-04-28 16:51:24 +0000250 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart5a18e7b2012-06-17 06:13:58 +0000251 tc09_bad_unlock.stderr.exp-s390 \
bart40605eb2008-03-04 18:37:20 +0000252 tc09_bad_unlock.vgtest \
253 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000254 tc10_rec_lock.vgtest \
255 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000256 tc11_XCHG.vgtest \
257 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000258 tc12_rwl_trivial.vgtest \
259 tc13_laog1.stderr.exp \
260 tc13_laog1.vgtest \
261 tc15_laog_lockdel.stderr.exp \
262 tc15_laog_lockdel.vgtest \
263 tc16_byterace.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000264 tc16_byterace.vgtest \
265 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000266 tc17_sembar.vgtest \
267 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000268 tc18_semabuse.vgtest \
bartf9d96e02009-05-03 17:54:47 +0000269 tc19_shadowmem.stderr.exp-32bit \
270 tc19_shadowmem.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000271 tc19_shadowmem.vgtest \
bart40605eb2008-03-04 18:37:20 +0000272 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000273 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000274 tc21_pthonce.vgtest \
275 tc22_exit_w_lock.stderr.exp-32bit \
276 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000277 tc22_exit_w_lock.vgtest \
bartb00ec8c2010-01-04 12:04:38 +0000278 tc23_bogus_condwait.stderr.exp-linux-x86 \
279 tc23_bogus_condwait.stderr.exp-linux-ppc \
sewardj57300312011-03-07 16:42:02 +0000280 tc23_bogus_condwait.stderr.exp-darwin-x86 \
281 tc23_bogus_condwait.stderr.exp-darwin-amd64 \
bart40605eb2008-03-04 18:37:20 +0000282 tc23_bogus_condwait.vgtest \
283 tc24_nonzero_sem.stderr.exp \
284 tc24_nonzero_sem.vgtest \
bartd45d9952009-05-31 18:53:54 +0000285 thread_name.stderr.exp \
286 thread_name.vgtest \
barte7086002011-10-11 19:08:39 +0000287 thread_name_xml.stderr.exp \
288 thread_name_xml.vgtest \
bart45bb8f62011-02-09 11:29:11 +0000289 threaded-fork.stderr.exp \
290 threaded-fork.vgtest \
barte65b4c62008-07-04 11:47:06 +0000291 trylock.stderr.exp \
bart8f822af2009-06-08 18:20:42 +0000292 trylock.vgtest \
293 unit_bitmap.stderr.exp \
294 unit_bitmap.vgtest \
295 unit_vc.stderr.exp \
296 unit_vc.vgtest
297
sewardjaf44c822007-11-25 14:01:38 +0000298
bartcca440b2008-07-10 11:58:08 +0000299check_PROGRAMS = \
bartcf3eb1b2010-03-07 10:47:59 +0000300 annotate_hb_err \
bartb43825e2010-03-07 19:59:35 +0000301 annotate_hb_race \
bart5f3be752009-08-11 15:00:54 +0000302 annotate_ignore_rw \
barte6361362009-08-13 09:30:57 +0000303 annotate_ignore_write \
bart66f196d2009-08-15 10:50:35 +0000304 annotate_publish_hg \
bartea2a03c2010-03-21 17:24:47 +0000305 annotate_static \
bart181b6bc2010-04-29 06:06:29 +0000306 bug-235681 \
njn32f8d8c2009-07-15 02:31:45 +0000307 custom_alloc \
bart60389da2008-02-25 19:58:25 +0000308 fp_race \
bartf64ff032011-03-12 14:02:06 +0000309 free_is_write \
bart1d4070d2008-05-14 12:22:15 +0000310 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000311 linuxthreads_det \
bart412efe52008-04-20 08:29:04 +0000312 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000313 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000314 new_delete \
bart60389da2008-02-25 19:58:25 +0000315 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000316 pth_cancel_locked \
bart505a4962009-07-04 12:20:04 +0000317 pth_cleanup_handler \
bart60389da2008-02-25 19:58:25 +0000318 pth_cond_race \
319 pth_create_chain \
320 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000321 pth_detached_sem \
bart3f5cc7e2011-03-09 17:50:34 +0000322 pth_detached3 \
bart3bb1cec2008-06-28 16:01:43 +0000323 pth_inconsistent_cond_wait \
bart7f08c732009-05-16 06:24:40 +0000324 pth_mutex_reinit \
325 pth_process_shared_mutex \
bart28d77382010-05-29 18:42:14 +0000326 pth_uninitialized_cond \
bart5357fcb2008-02-27 15:46:00 +0000327 recursive_mutex \
njn6ab37c72009-02-23 01:33:40 +0000328 rwlock_race \
329 rwlock_test \
bartc8441502009-07-27 16:03:51 +0000330 rwlock_type_checking \
bart5bd9f2d2008-03-03 20:31:58 +0000331 sem_as_mutex \
bart25f9f542009-07-23 16:31:39 +0000332 sem_open \
barteae16322012-08-24 17:57:44 +0000333 sem_wait \
bart60389da2008-02-25 19:58:25 +0000334 sigalrm \
bartd45d9952009-05-31 18:53:54 +0000335 thread_name \
bart45bb8f62011-02-09 11:29:11 +0000336 threaded-fork \
bart8f822af2009-06-08 18:20:42 +0000337 trylock \
338 unit_bitmap \
339 unit_vc
sewardjaf44c822007-11-25 14:01:38 +0000340
bart61e34a12008-11-10 18:54:46 +0000341if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000342check_PROGRAMS += boost_thread
bartda7c0982008-07-28 11:36:11 +0000343endif
bart29cc9db2008-03-09 15:59:30 +0000344
bartd45d9952009-05-31 18:53:54 +0000345if HAVE_BUILTIN_ATOMIC
bart21e49d72010-03-02 08:57:50 +0000346check_PROGRAMS += \
bartea2a03c2010-03-21 17:24:47 +0000347 annotate_barrier \
bart21e49d72010-03-02 08:57:50 +0000348 annotate_rwlock \
bart21e49d72010-03-02 08:57:50 +0000349 atomic_var \
barte8740422011-03-24 20:27:54 +0000350 circular_buffer
351endif
352
bart1e856ea2011-12-17 12:53:23 +0000353if HAVE_BUILTIN_ATOMIC64
354check_PROGRAMS += \
355 annotate_trace_memory
356endif
357
barte8740422011-03-24 20:27:54 +0000358if HAVE_BUILTIN_ATOMIC_CXX
359check_PROGRAMS += \
360 annotate_smart_pointer \
bart21e49d72010-03-02 08:57:50 +0000361 tsan_unittest
bart0ae59c32009-06-03 06:25:04 +0000362endif
bartd45d9952009-05-31 18:53:54 +0000363
bartf68af882011-12-10 19:42:05 +0000364if HAVE_SHARED_POINTER_ANNOTATION
365check_PROGRAMS += \
366 std_thread
367endif
368
bart4c853992008-07-07 16:53:45 +0000369if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000370check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000371endif
sewardjaf44c822007-11-25 14:01:38 +0000372
bart5a8c67f2009-01-20 14:02:22 +0000373if HAVE_PTHREAD_BARRIER
bartb56542a2011-07-29 12:32:53 +0000374check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit \
375 pth_barrier_thr_cr
bart5a8c67f2009-01-20 14:02:22 +0000376endif
377
bartfaec72f2009-04-26 07:14:15 +0000378if HAVE_PTHREAD_CREATE_GLIBC_2_0
379check_PROGRAMS += pth_create_glibc_2_0
380endif
381
bart5a8c67f2009-01-20 14:02:22 +0000382if HAVE_PTHREAD_SPINLOCK
383check_PROGRAMS += pth_spinlock
384endif
385
sewardjaf44c822007-11-25 14:01:38 +0000386
njn07891f92009-02-22 23:38:10 +0000387AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
388AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
389
njn53044572009-02-19 09:52:05 +0000390LDADD = -lpthread
bartcca440b2008-07-10 11:58:08 +0000391
bart6fd7d742008-12-17 19:21:17 +0000392
barte64f11d2008-10-05 17:37:06 +0000393monitor_example_SOURCES = monitor_example.cpp
bart3d4c3322008-05-10 08:48:14 +0000394new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000395
bart20009c12009-07-10 06:38:20 +0000396pth_cleanup_handler_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
bart505a4962009-07-04 12:20:04 +0000397
bartd45d9952009-05-31 18:53:54 +0000398tsan_unittest_SOURCES = tsan_unittest.cpp
bartdf5a1e22009-06-03 08:11:02 +0000399tsan_unittest_CXXFLAGS = $(AM_CXXFLAGS) \
bart962c72c2009-06-04 09:11:28 +0000400 -DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
bartd45d9952009-05-31 18:53:54 +0000401
bart8f822af2009-06-08 18:20:42 +0000402unit_bitmap_CFLAGS = $(AM_CFLAGS) -O2 \
403 -DENABLE_DRD_CONSISTENCY_CHECKS \
404 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
405unit_bitmap_LDADD = # nothing, i.e. not -lpthread
406
407unit_vc_CFLAGS = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
408unit_vc_LDADD = # nothing, i.e. not -lpthread
409
bart61e34a12008-11-10 18:54:46 +0000410if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000411boost_thread_SOURCES = boost_thread.cpp
412boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
413boost_thread_LDADD = $(BOOST_LIBS)
bart61e34a12008-11-10 18:54:46 +0000414endif
415
bart21e49d72010-03-02 08:57:50 +0000416if HAVE_BUILTIN_ATOMIC
417annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
418endif
419
bartea2a03c2010-03-21 17:24:47 +0000420annotate_static_SOURCES = annotate_static.cpp
421
bart1f52b822008-03-12 17:11:48 +0000422if HAVE_OPENMP
bartf3b72852008-06-26 07:31:15 +0000423omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000424omp_matinv_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000425omp_matinv_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000426
bartf3b72852008-06-26 07:31:15 +0000427omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000428omp_prime_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000429omp_prime_LDADD = $(LDADD) -lm
bartbbd3dcf2008-10-11 18:04:52 +0000430
bartbbd3dcf2008-10-11 18:04:52 +0000431omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
432omp_printf_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000433omp_printf_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000434endif
bart61e34a12008-11-10 18:54:46 +0000435
bart5a8c67f2009-01-20 14:02:22 +0000436if HAVE_PTHREAD_BARRIER
njn53044572009-02-19 09:52:05 +0000437matinv_LDADD = $(LDADD) -lm
bart5a8c67f2009-01-20 14:02:22 +0000438endif
bartf68af882011-12-10 19:42:05 +0000439
440std_thread_SOURCES = std_thread.cpp
441std_thread_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
barteae16322012-08-24 17:57:44 +0000442
443sem_wait_SOURCES = sem_wait.cpp