blob: a9417b158097abdfb04d8d75a1d3a6b1f3b732a7 [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 \
bart764b39e2013-03-10 13:39:57 +000044 annotate_smart_pointer2.stderr.exp-darwin \
bartb6c51bf2011-07-13 10:43:49 +000045 annotate_smart_pointer2.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000046 annotate_spinlock.stderr.exp \
47 annotate_spinlock.vgtest \
bartd45d9952009-05-31 18:53:54 +000048 annotate_rwlock.stderr.exp \
49 annotate_rwlock.vgtest \
bart66f196d2009-08-15 10:50:35 +000050 annotate_rwlock_hg.stderr.exp \
51 annotate_rwlock_hg.vgtest \
bartd45d9952009-05-31 18:53:54 +000052 annotate_ignore_read.stderr.exp \
53 annotate_ignore_read.vgtest \
bart5f3be752009-08-11 15:00:54 +000054 annotate_ignore_rw.stderr.exp \
55 annotate_ignore_rw.vgtest \
barta5225b82009-08-12 09:45:18 +000056 annotate_ignore_rw2.stderr.exp \
57 annotate_ignore_rw2.vgtest \
barte6361362009-08-13 09:30:57 +000058 annotate_ignore_write.stderr.exp \
59 annotate_ignore_write.vgtest \
60 annotate_ignore_write2.stderr.exp \
61 annotate_ignore_write2.vgtest \
bartac0686d2011-12-14 07:30:05 +000062 annotate_trace_memory.stderr.exp-32bit \
63 annotate_trace_memory.stderr.exp-64bit \
petarjc5b885c2013-06-02 02:59:07 +000064 annotate_trace_memory.stderr.exp-mips32 \
bartd45d9952009-05-31 18:53:54 +000065 annotate_trace_memory.vgtest \
bartac0686d2011-12-14 07:30:05 +000066 annotate_trace_memory_xml.stderr.exp-32bit \
67 annotate_trace_memory_xml.stderr.exp-64bit \
petarjc5b885c2013-06-02 02:59:07 +000068 annotate_trace_memory_xml.stderr.exp-mips32 \
barte7086002011-10-11 19:08:39 +000069 annotate_trace_memory_xml.vgtest \
bartea2a03c2010-03-21 17:24:47 +000070 annotate_static.stderr.exp \
71 annotate_static.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000072 atomic_var.stderr.exp \
bartcca440b2008-07-10 11:58:08 +000073 atomic_var.vgtest \
bartc4a9e0f2008-11-17 17:38:28 +000074 bar_bad.stderr.exp \
75 bar_bad.vgtest \
barte7086002011-10-11 19:08:39 +000076 bar_bad_xml.stderr.exp \
77 bar_bad_xml.vgtest \
bartc4a9e0f2008-11-17 17:38:28 +000078 bar_trivial.stderr.exp \
bart7f08c732009-05-16 06:24:40 +000079 bar_trivial.stdout.exp \
bartc4a9e0f2008-11-17 17:38:28 +000080 bar_trivial.vgtest \
81 boost_thread.stderr.exp \
82 boost_thread.vgtest \
bart181b6bc2010-04-29 06:06:29 +000083 bug-235681.stderr.exp \
84 bug-235681.vgtest \
bart2ffad9c2009-06-03 09:30:19 +000085 circular_buffer.stderr.exp \
bart6fd7d742008-12-17 19:21:17 +000086 circular_buffer.vgtest \
barte6eb7942013-08-24 17:50:38 +000087 concurrent_close.stderr.exp \
88 concurrent_close.vgtest \
bart6c7c76e2009-05-01 12:23:47 +000089 custom_alloc.stderr.exp \
bart7f08c732009-05-16 06:24:40 +000090 custom_alloc.vgtest \
barta3f7b502011-03-13 09:04:21 +000091 custom_alloc_fiw.stderr.exp \
92 custom_alloc_fiw.vgtest \
bart40605eb2008-03-04 18:37:20 +000093 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000094 fp_race.vgtest \
95 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000096 fp_race2.vgtest \
barte7086002011-10-11 19:08:39 +000097 fp_race_xml.stderr.exp \
98 fp_race_xml.vgtest \
bartf64ff032011-03-12 14:02:06 +000099 free_is_write.stderr.exp \
bart74a9bb02011-03-12 16:10:33 +0000100 free_is_write.vgtest \
101 free_is_write2.stderr.exp \
102 free_is_write2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000103 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000104 hg01_all_ok.vgtest \
105 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000106 hg02_deadlock.vgtest \
107 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000108 hg03_inherit.vgtest \
109 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000110 hg04_race.vgtest \
111 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +0000112 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +0000113 hg05_race2.vgtest \
114 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000115 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +0000116 hold_lock_1.stderr.exp \
117 hold_lock_1.vgtest \
118 hold_lock_2.stderr.exp \
119 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +0000120 linuxthreads_det.stderr.exp \
121 linuxthreads_det.stderr.exp-linuxthreads \
122 linuxthreads_det.stdout.exp \
123 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +0000124 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +0000125 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000126 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000127 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +0000128 memory_allocation.stderr.exp \
129 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +0000130 monitor_example.stderr.exp \
131 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +0000132 new_delete.stderr.exp \
133 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +0000134 omp_matinv.stderr.exp \
135 omp_matinv.stdout.exp \
136 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +0000137 omp_matinv_racy.stderr.exp \
138 omp_matinv_racy.stdout.exp \
139 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +0000140 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +0000141 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +0000142 omp_printf.stderr.exp \
143 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +0000144 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000145 pth_barrier.vgtest \
146 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000147 pth_barrier2.vgtest \
148 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000149 pth_barrier3.vgtest \
bartb235a672009-02-22 09:26:22 +0000150 pth_barrier_race.stderr.exp \
151 pth_barrier_race.vgtest \
bartd9e39ec2008-06-28 15:03:26 +0000152 pth_barrier_reinit.stderr.exp \
153 pth_barrier_reinit.vgtest \
bartb56542a2011-07-29 12:32:53 +0000154 pth_barrier_thr_cr.stderr.exp \
155 pth_barrier_thr_cr.vgtest \
bart47c75802011-07-30 09:29:20 +0000156 pth_barrier_thr_cr.supp \
bart40605eb2008-03-04 18:37:20 +0000157 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000158 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +0000159 pth_cancel_locked.stderr.exp \
bartdbaced02009-07-31 18:49:29 +0000160 pth_cancel_locked.stderr.exp-darwin \
bart032424f2008-09-27 12:26:17 +0000161 pth_cancel_locked.vgtest \
bart505a4962009-07-04 12:20:04 +0000162 pth_cleanup_handler.stderr.exp \
163 pth_cleanup_handler.vgtest \
bart995e36d2012-12-24 10:23:16 +0000164 pth_cond_destroy_busy.stderr.exp \
165 pth_cond_destroy_busy.vgtest \
bart40605eb2008-03-04 18:37:20 +0000166 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000167 pth_cond_race.vgtest \
168 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000169 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +0000170 pth_cond_race3.stderr.exp \
171 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +0000172 pth_create_chain.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000173 pth_create_chain.vgtest \
bartfaec72f2009-04-26 07:14:15 +0000174 pth_create_glibc_2_0.stderr.exp \
175 pth_create_glibc_2_0.vgtest \
bart40605eb2008-03-04 18:37:20 +0000176 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000177 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000178 pth_detached.vgtest \
179 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000180 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000181 pth_detached2.vgtest \
bart8ca16232011-03-09 18:27:25 +0000182 pth_detached3.stderr.exp1 \
183 pth_detached3.stderr.exp2 \
bart3f5cc7e2011-03-09 17:50:34 +0000184 pth_detached3.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +0000185 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000186 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000187 pth_detached_sem.vgtest \
bart5639ce12009-01-20 14:25:22 +0000188 pth_inconsistent_cond_wait.stderr.exp1 \
189 pth_inconsistent_cond_wait.stderr.exp2 \
barte65b4c62008-07-04 11:47:06 +0000190 pth_inconsistent_cond_wait.vgtest \
bart7f08c732009-05-16 06:24:40 +0000191 pth_mutex_reinit.stderr.exp \
192 pth_mutex_reinit.vgtest \
bart7caef852009-07-26 15:27:27 +0000193 pth_once.stderr.exp \
194 pth_once.vgtest \
njnff5bdd42009-05-18 23:24:26 +0000195 pth_process_shared_mutex.stderr.exp \
bartf1473ad2009-05-19 17:26:20 +0000196 pth_process_shared_mutex.vgtest \
bart19c42602008-07-07 08:04:08 +0000197 pth_spinlock.stderr.exp \
198 pth_spinlock.vgtest \
bart28d77382010-05-29 18:42:14 +0000199 pth_uninitialized_cond.stderr.exp \
200 pth_uninitialized_cond.vgtest \
bart74a9bb02011-03-12 16:10:33 +0000201 read_and_free_race.stderr.exp \
202 read_and_free_race.vgtest \
bart9e4efbf2009-07-22 19:04:23 +0000203 recursive_mutex.stderr.exp-linux \
204 recursive_mutex.stderr.exp-darwin \
bart40605eb2008-03-04 18:37:20 +0000205 recursive_mutex.vgtest \
206 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000207 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000208 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000209 rwlock_test.stderr.exp \
210 rwlock_test.vgtest \
bartc8441502009-07-27 16:03:51 +0000211 rwlock_type_checking.stderr.exp \
212 rwlock_type_checking.vgtest \
bart40605eb2008-03-04 18:37:20 +0000213 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000214 sem_as_mutex.vgtest \
215 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000216 sem_as_mutex2.vgtest \
bartb20f69b2009-05-03 17:43:55 +0000217 sem_as_mutex3.stderr.exp \
218 sem_as_mutex3.vgtest \
bart25f9f542009-07-23 16:31:39 +0000219 sem_open.stderr.exp \
220 sem_open.vgtest \
221 sem_open2.stderr.exp \
222 sem_open2.vgtest \
223 sem_open3.stderr.exp \
224 sem_open3.vgtest \
bart0f83d482009-07-26 09:16:56 +0000225 sem_open_traced.stderr.exp \
226 sem_open_traced.vgtest \
barteae16322012-08-24 17:57:44 +0000227 sem_wait.stderr.exp \
228 sem_wait.vgtest \
barte8acf492008-03-12 17:27:20 +0000229 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000230 sigalrm.vgtest \
bart212534a2010-09-02 14:09:13 +0000231 sigaltstack.stderr.exp \
232 sigaltstack.vgtest \
bart4115c712013-10-23 12:37:44 +0000233 std_list.stderr.exp \
234 std_list.vgtest \
235 std_string.stderr.exp \
236 std_string.vgtest \
bartf68af882011-12-10 19:42:05 +0000237 std_thread.stderr.exp \
238 std_thread.vgtest \
bart3f9c2292013-10-25 12:30:46 +0000239 str_tester.stderr.exp \
240 str_tester.vgtest \
bart40605eb2008-03-04 18:37:20 +0000241 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000242 tc01_simple_race.vgtest \
243 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000244 tc02_simple_tls.vgtest \
245 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000246 tc03_re_excl.vgtest \
bartb4913ad2011-12-17 14:18:25 +0000247 tc04_free_lock.stderr.exp-x86 \
248 tc04_free_lock.stderr.exp-ppc \
bart5c09e762012-06-30 18:00:08 +0000249 tc04_free_lock.stderr.exp-s390 \
bart40605eb2008-03-04 18:37:20 +0000250 tc04_free_lock.vgtest \
251 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000252 tc05_simple_race.vgtest \
253 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000254 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000255 tc07_hbl1.stderr.exp \
256 tc07_hbl1.stdout.exp \
257 tc07_hbl1.vgtest \
258 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000259 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000260 tc08_hbl2.vgtest \
bartb4913ad2011-12-17 14:18:25 +0000261 tc09_bad_unlock.stderr.exp-x86 \
262 tc09_bad_unlock.stderr.exp-ppc \
bartdf961972008-04-28 16:51:24 +0000263 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart5a18e7b2012-06-17 06:13:58 +0000264 tc09_bad_unlock.stderr.exp-s390 \
bart40605eb2008-03-04 18:37:20 +0000265 tc09_bad_unlock.vgtest \
266 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000267 tc10_rec_lock.vgtest \
268 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000269 tc11_XCHG.vgtest \
270 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000271 tc12_rwl_trivial.vgtest \
272 tc13_laog1.stderr.exp \
273 tc13_laog1.vgtest \
274 tc15_laog_lockdel.stderr.exp \
275 tc15_laog_lockdel.vgtest \
276 tc16_byterace.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000277 tc16_byterace.vgtest \
278 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000279 tc17_sembar.vgtest \
280 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000281 tc18_semabuse.vgtest \
bartf9d96e02009-05-03 17:54:47 +0000282 tc19_shadowmem.stderr.exp-32bit \
283 tc19_shadowmem.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000284 tc19_shadowmem.vgtest \
bart40605eb2008-03-04 18:37:20 +0000285 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000286 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000287 tc21_pthonce.vgtest \
288 tc22_exit_w_lock.stderr.exp-32bit \
289 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000290 tc22_exit_w_lock.vgtest \
bartb00ec8c2010-01-04 12:04:38 +0000291 tc23_bogus_condwait.stderr.exp-linux-x86 \
292 tc23_bogus_condwait.stderr.exp-linux-ppc \
sewardj57300312011-03-07 16:42:02 +0000293 tc23_bogus_condwait.stderr.exp-darwin-x86 \
294 tc23_bogus_condwait.stderr.exp-darwin-amd64 \
bart40605eb2008-03-04 18:37:20 +0000295 tc23_bogus_condwait.vgtest \
296 tc24_nonzero_sem.stderr.exp \
297 tc24_nonzero_sem.vgtest \
bartd45d9952009-05-31 18:53:54 +0000298 thread_name.stderr.exp \
299 thread_name.vgtest \
barte7086002011-10-11 19:08:39 +0000300 thread_name_xml.stderr.exp \
301 thread_name_xml.vgtest \
bart45bb8f62011-02-09 11:29:11 +0000302 threaded-fork.stderr.exp \
303 threaded-fork.vgtest \
barte65b4c62008-07-04 11:47:06 +0000304 trylock.stderr.exp \
bart8f822af2009-06-08 18:20:42 +0000305 trylock.vgtest \
306 unit_bitmap.stderr.exp \
307 unit_bitmap.vgtest \
308 unit_vc.stderr.exp \
309 unit_vc.vgtest
310
sewardjaf44c822007-11-25 14:01:38 +0000311
bartcca440b2008-07-10 11:58:08 +0000312check_PROGRAMS = \
bartcf3eb1b2010-03-07 10:47:59 +0000313 annotate_hb_err \
bartb43825e2010-03-07 19:59:35 +0000314 annotate_hb_race \
bart5f3be752009-08-11 15:00:54 +0000315 annotate_ignore_rw \
barte6361362009-08-13 09:30:57 +0000316 annotate_ignore_write \
bart66f196d2009-08-15 10:50:35 +0000317 annotate_publish_hg \
bartea2a03c2010-03-21 17:24:47 +0000318 annotate_static \
bart7e091922013-05-22 18:01:16 +0000319 annotate_trace_memory \
bart181b6bc2010-04-29 06:06:29 +0000320 bug-235681 \
njn32f8d8c2009-07-15 02:31:45 +0000321 custom_alloc \
barte6eb7942013-08-24 17:50:38 +0000322 concurrent_close \
bart60389da2008-02-25 19:58:25 +0000323 fp_race \
bartf64ff032011-03-12 14:02:06 +0000324 free_is_write \
bart1d4070d2008-05-14 12:22:15 +0000325 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000326 linuxthreads_det \
bart412efe52008-04-20 08:29:04 +0000327 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000328 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000329 new_delete \
bart60389da2008-02-25 19:58:25 +0000330 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000331 pth_cancel_locked \
bart505a4962009-07-04 12:20:04 +0000332 pth_cleanup_handler \
bart995e36d2012-12-24 10:23:16 +0000333 pth_cond_destroy_busy \
bart60389da2008-02-25 19:58:25 +0000334 pth_cond_race \
335 pth_create_chain \
336 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000337 pth_detached_sem \
bart3f5cc7e2011-03-09 17:50:34 +0000338 pth_detached3 \
bart3bb1cec2008-06-28 16:01:43 +0000339 pth_inconsistent_cond_wait \
bart7f08c732009-05-16 06:24:40 +0000340 pth_mutex_reinit \
341 pth_process_shared_mutex \
bart28d77382010-05-29 18:42:14 +0000342 pth_uninitialized_cond \
bart5357fcb2008-02-27 15:46:00 +0000343 recursive_mutex \
njn6ab37c72009-02-23 01:33:40 +0000344 rwlock_race \
345 rwlock_test \
bartc8441502009-07-27 16:03:51 +0000346 rwlock_type_checking \
bart5bd9f2d2008-03-03 20:31:58 +0000347 sem_as_mutex \
bart25f9f542009-07-23 16:31:39 +0000348 sem_open \
bart60389da2008-02-25 19:58:25 +0000349 sigalrm \
bartd45d9952009-05-31 18:53:54 +0000350 thread_name \
bart45bb8f62011-02-09 11:29:11 +0000351 threaded-fork \
bart8f822af2009-06-08 18:20:42 +0000352 trylock \
353 unit_bitmap \
354 unit_vc
sewardjaf44c822007-11-25 14:01:38 +0000355
bart61e34a12008-11-10 18:54:46 +0000356if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000357check_PROGRAMS += boost_thread
bartda7c0982008-07-28 11:36:11 +0000358endif
bart29cc9db2008-03-09 15:59:30 +0000359
bartd45d9952009-05-31 18:53:54 +0000360if HAVE_BUILTIN_ATOMIC
bart21e49d72010-03-02 08:57:50 +0000361check_PROGRAMS += \
bartea2a03c2010-03-21 17:24:47 +0000362 annotate_barrier \
bart21e49d72010-03-02 08:57:50 +0000363 annotate_rwlock \
bart21e49d72010-03-02 08:57:50 +0000364 atomic_var \
barte8740422011-03-24 20:27:54 +0000365 circular_buffer
366endif
367
368if HAVE_BUILTIN_ATOMIC_CXX
369check_PROGRAMS += \
370 annotate_smart_pointer \
bart21e49d72010-03-02 08:57:50 +0000371 tsan_unittest
bart0ae59c32009-06-03 06:25:04 +0000372endif
bartd45d9952009-05-31 18:53:54 +0000373
floriana06575a2013-10-04 21:13:16 +0000374# clang 3.3 will generate errors about libstdc++ headers from
375# gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
florian24fefb62013-10-08 13:04:00 +0000376if CXX_CAN_INCLUDE_THREAD_HEADER
bartf68af882011-12-10 19:42:05 +0000377if HAVE_SHARED_POINTER_ANNOTATION
378check_PROGRAMS += \
bart4115c712013-10-23 12:37:44 +0000379 std_list \
380 std_string \
bartf68af882011-12-10 19:42:05 +0000381 std_thread
382endif
floriana06575a2013-10-04 21:13:16 +0000383endif
bartf68af882011-12-10 19:42:05 +0000384
bart4c853992008-07-07 16:53:45 +0000385if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000386check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000387endif
sewardjaf44c822007-11-25 14:01:38 +0000388
bart5a8c67f2009-01-20 14:02:22 +0000389if HAVE_PTHREAD_BARRIER
bartb56542a2011-07-29 12:32:53 +0000390check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit \
391 pth_barrier_thr_cr
bart5a8c67f2009-01-20 14:02:22 +0000392endif
393
bartfaec72f2009-04-26 07:14:15 +0000394if HAVE_PTHREAD_CREATE_GLIBC_2_0
395check_PROGRAMS += pth_create_glibc_2_0
396endif
397
bart5a8c67f2009-01-20 14:02:22 +0000398if HAVE_PTHREAD_SPINLOCK
399check_PROGRAMS += pth_spinlock
400endif
401
bart5961fe02013-03-10 13:38:41 +0000402if !VGCONF_OS_IS_DARWIN
403check_PROGRAMS += sem_wait
404endif
405
sewardjaf44c822007-11-25 14:01:38 +0000406
njn07891f92009-02-22 23:38:10 +0000407AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
408AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
409
njn53044572009-02-19 09:52:05 +0000410LDADD = -lpthread
bartcca440b2008-07-10 11:58:08 +0000411
bart6fd7d742008-12-17 19:21:17 +0000412
barte6eb7942013-08-24 17:50:38 +0000413concurrent_close_SOURCES = concurrent_close.cpp
barte64f11d2008-10-05 17:37:06 +0000414monitor_example_SOURCES = monitor_example.cpp
bart3d4c3322008-05-10 08:48:14 +0000415new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000416
bart20009c12009-07-10 06:38:20 +0000417pth_cleanup_handler_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
bart505a4962009-07-04 12:20:04 +0000418
bartd45d9952009-05-31 18:53:54 +0000419tsan_unittest_SOURCES = tsan_unittest.cpp
bartdf5a1e22009-06-03 08:11:02 +0000420tsan_unittest_CXXFLAGS = $(AM_CXXFLAGS) \
bart962c72c2009-06-04 09:11:28 +0000421 -DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
bartd45d9952009-05-31 18:53:54 +0000422
bart8f822af2009-06-08 18:20:42 +0000423unit_bitmap_CFLAGS = $(AM_CFLAGS) -O2 \
424 -DENABLE_DRD_CONSISTENCY_CHECKS \
425 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
426unit_bitmap_LDADD = # nothing, i.e. not -lpthread
427
428unit_vc_CFLAGS = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
429unit_vc_LDADD = # nothing, i.e. not -lpthread
430
bart61e34a12008-11-10 18:54:46 +0000431if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000432boost_thread_SOURCES = boost_thread.cpp
433boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
434boost_thread_LDADD = $(BOOST_LIBS)
bart61e34a12008-11-10 18:54:46 +0000435endif
436
bart21e49d72010-03-02 08:57:50 +0000437if HAVE_BUILTIN_ATOMIC
438annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
439endif
440
bartea2a03c2010-03-21 17:24:47 +0000441annotate_static_SOURCES = annotate_static.cpp
442
bart1f52b822008-03-12 17:11:48 +0000443if HAVE_OPENMP
bartf3b72852008-06-26 07:31:15 +0000444omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000445omp_matinv_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000446omp_matinv_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000447
bartf3b72852008-06-26 07:31:15 +0000448omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000449omp_prime_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000450omp_prime_LDADD = $(LDADD) -lm
bartbbd3dcf2008-10-11 18:04:52 +0000451
bartbbd3dcf2008-10-11 18:04:52 +0000452omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
453omp_printf_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000454omp_printf_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000455endif
bart61e34a12008-11-10 18:54:46 +0000456
bart5a8c67f2009-01-20 14:02:22 +0000457if HAVE_PTHREAD_BARRIER
njn53044572009-02-19 09:52:05 +0000458matinv_LDADD = $(LDADD) -lm
bart5a8c67f2009-01-20 14:02:22 +0000459endif
bartf68af882011-12-10 19:42:05 +0000460
bart4115c712013-10-23 12:37:44 +0000461std_list_SOURCES = std_list.cpp
462std_list_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x -Wno-sign-compare
463
464std_string_SOURCES = std_string.cpp
465std_string_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x -Wno-sign-compare
466
bartf68af882011-12-10 19:42:05 +0000467std_thread_SOURCES = std_thread.cpp
468std_thread_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
barteae16322012-08-24 17:57:44 +0000469
470sem_wait_SOURCES = sem_wait.cpp