blob: 5ba66ec300dfaace8e7deb2d54041ce47df685b2 [file] [log] [blame]
njn53044572009-02-19 09:52:05 +00001
2include $(top_srcdir)/Makefile.tool-tests.am
sewardjaf44c822007-11-25 14:01:38 +00003
4SUBDIRS = .
5
6DIST_SUBDIRS = .
7
bart9e87dca2009-03-10 09:19:26 +00008noinst_SCRIPTS = \
9 filter_error_summary \
10 filter_stderr \
11 filter_stderr_and_thread_no \
12 run_openmp_test \
bart80e35802008-03-19 17:02:26 +000013 supported_libpthread
sewardjaf44c822007-11-25 14:01:38 +000014
bart40605eb2008-03-04 18:37:20 +000015EXTRA_DIST = \
16 $(noinst_SCRIPTS) \
barta2aa68e2009-01-20 14:29:52 +000017 atomic_var.stderr.exp-with-atomic-builtins-1 \
18 atomic_var.stderr.exp-with-atomic-builtins-2 \
bart1d07a382008-07-29 15:27:48 +000019 atomic_var.stderr.exp-without-atomic-builtins \
bartcca440b2008-07-10 11:58:08 +000020 atomic_var.vgtest \
bartc4a9e0f2008-11-17 17:38:28 +000021 bar_bad.stderr.exp \
22 bar_bad.vgtest \
bartdc35ec02008-12-25 09:09:59 +000023 bar_trivial.stdout.exp \
bartc4a9e0f2008-11-17 17:38:28 +000024 bar_trivial.stderr.exp \
25 bar_trivial.vgtest \
26 boost_thread.stderr.exp \
27 boost_thread.vgtest \
sewardj82444812008-12-23 20:46:12 +000028 circular_buffer.stderr.exp-with-atomic-builtins \
29 circular_buffer.stderr.exp-without-atomic-builtins \
bart6fd7d742008-12-17 19:21:17 +000030 circular_buffer.vgtest \
bart34eff982008-05-01 13:50:20 +000031 drd_bitmap_test.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000032 drd_bitmap_test.stdout.exp \
33 drd_bitmap_test.vgtest \
bart40605eb2008-03-04 18:37:20 +000034 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000035 fp_race.vgtest \
36 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000037 fp_race2.vgtest \
38 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000039 hg01_all_ok.vgtest \
40 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000041 hg02_deadlock.vgtest \
42 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000043 hg03_inherit.vgtest \
44 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000045 hg04_race.vgtest \
46 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000047 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +000048 hg05_race2.vgtest \
49 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000050 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +000051 hold_lock_1.stderr.exp \
52 hold_lock_1.vgtest \
53 hold_lock_2.stderr.exp \
54 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +000055 linuxthreads_det.stderr.exp \
56 linuxthreads_det.stderr.exp-linuxthreads \
57 linuxthreads_det.stdout.exp \
58 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +000059 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +000060 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000061 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000062 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +000063 memory_allocation.stderr.exp \
64 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +000065 monitor_example.stderr.exp \
66 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +000067 new_delete.stderr.exp \
68 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +000069 omp_matinv.stderr.exp \
70 omp_matinv.stdout.exp \
71 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +000072 omp_matinv_racy.stderr.exp \
73 omp_matinv_racy.stdout.exp \
74 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +000075 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +000076 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +000077 omp_printf.stderr.exp \
78 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +000079 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000080 pth_barrier.vgtest \
81 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000082 pth_barrier2.vgtest \
83 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000084 pth_barrier3.vgtest \
bartb235a672009-02-22 09:26:22 +000085 pth_barrier_race.stderr.exp \
86 pth_barrier_race.vgtest \
bartd9e39ec2008-06-28 15:03:26 +000087 pth_barrier_reinit.stderr.exp \
88 pth_barrier_reinit.vgtest \
bart40605eb2008-03-04 18:37:20 +000089 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000090 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +000091 pth_cancel_locked.stderr.exp \
92 pth_cancel_locked.vgtest \
bart40605eb2008-03-04 18:37:20 +000093 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000094 pth_cond_race.vgtest \
95 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000096 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +000097 pth_cond_race3.stderr.exp \
98 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +000099 pth_create_chain.stderr.exp \
bart7f8cd302009-01-13 08:22:05 +0000100 pth_create_chain.stderr.exp-ppc \
bart40605eb2008-03-04 18:37:20 +0000101 pth_create_chain.vgtest \
102 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000103 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000104 pth_detached.vgtest \
105 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000106 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000107 pth_detached2.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +0000108 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000109 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000110 pth_detached_sem.vgtest \
bart5639ce12009-01-20 14:25:22 +0000111 pth_inconsistent_cond_wait.stderr.exp1 \
112 pth_inconsistent_cond_wait.stderr.exp2 \
barte65b4c62008-07-04 11:47:06 +0000113 pth_inconsistent_cond_wait.vgtest \
bart19c42602008-07-07 08:04:08 +0000114 pth_spinlock.stderr.exp \
115 pth_spinlock.vgtest \
bart4c853992008-07-07 16:53:45 +0000116 qt4_mutex.stderr.exp \
117 qt4_mutex.vgtest \
bart4f578bf2008-07-07 18:35:13 +0000118 qt4_rwlock.stderr.exp \
119 qt4_rwlock.vgtest \
bartef9603e2008-07-07 17:22:41 +0000120 qt4_semaphore.stderr.exp \
121 qt4_semaphore.vgtest \
bart40605eb2008-03-04 18:37:20 +0000122 recursive_mutex.stderr.exp \
barte8acf492008-03-12 17:27:20 +0000123 recursive_mutex.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000124 recursive_mutex.vgtest \
125 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000126 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000127 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000128 rwlock_test.stderr.exp \
129 rwlock_test.vgtest \
bart40605eb2008-03-04 18:37:20 +0000130 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000131 sem_as_mutex.vgtest \
132 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000133 sem_as_mutex2.vgtest \
barte8acf492008-03-12 17:27:20 +0000134 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000135 sigalrm.vgtest \
136 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000137 tc01_simple_race.vgtest \
138 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000139 tc02_simple_tls.vgtest \
140 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000141 tc03_re_excl.vgtest \
142 tc04_free_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000143 tc04_free_lock.vgtest \
144 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000145 tc05_simple_race.vgtest \
146 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000147 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000148 tc07_hbl1.stderr.exp \
149 tc07_hbl1.stdout.exp \
150 tc07_hbl1.vgtest \
151 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000152 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000153 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000154 tc09_bad_unlock.stderr.exp \
bartdf961972008-04-28 16:51:24 +0000155 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000156 tc09_bad_unlock.vgtest \
157 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000158 tc10_rec_lock.vgtest \
159 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000160 tc11_XCHG.vgtest \
161 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000162 tc12_rwl_trivial.vgtest \
163 tc13_laog1.stderr.exp \
164 tc13_laog1.vgtest \
165 tc15_laog_lockdel.stderr.exp \
166 tc15_laog_lockdel.vgtest \
167 tc16_byterace.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000168 tc16_byterace.vgtest \
169 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000170 tc17_sembar.vgtest \
171 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000172 tc18_semabuse.vgtest \
173 tc19_shadowmem.stderr.exp \
174 tc19_shadowmem.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000175 tc20_verifywrap.stderr.exp-glibc2.3 \
bart02aed962008-07-06 07:48:35 +0000176 tc20_verifywrap.stderr.exp-glibc2.5 \
177 tc20_verifywrap.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000178 tc20_verifywrap.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000179 tc20_verifywrap.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000180 tc20_verifywrap2.stderr.exp-glibc2.3 \
bart3effeb92008-03-09 19:20:27 +0000181 tc20_verifywrap2.stderr.exp-glibc2.3-b \
bart02aed962008-07-06 07:48:35 +0000182 tc20_verifywrap2.stderr.exp-glibc2.5 \
183 tc20_verifywrap2.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000184 tc20_verifywrap2.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000185 tc20_verifywrap2.vgtest \
186 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000187 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000188 tc21_pthonce.vgtest \
189 tc22_exit_w_lock.stderr.exp-32bit \
190 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000191 tc22_exit_w_lock.vgtest \
192 tc23_bogus_condwait.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000193 tc23_bogus_condwait.vgtest \
194 tc24_nonzero_sem.stderr.exp \
195 tc24_nonzero_sem.vgtest \
barte65b4c62008-07-04 11:47:06 +0000196 trylock.stderr.exp \
197 trylock.vgtest
sewardjaf44c822007-11-25 14:01:38 +0000198
bartcca440b2008-07-10 11:58:08 +0000199check_PROGRAMS = \
200 atomic_var \
bart6fd7d742008-12-17 19:21:17 +0000201 circular_buffer \
bartad292b52008-05-01 14:11:45 +0000202 drd_bitmap_test \
bart60389da2008-02-25 19:58:25 +0000203 fp_race \
bart1d4070d2008-05-14 12:22:15 +0000204 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000205 linuxthreads_det \
bart412efe52008-04-20 08:29:04 +0000206 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000207 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000208 new_delete \
bart60389da2008-02-25 19:58:25 +0000209 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000210 pth_cancel_locked \
bart60389da2008-02-25 19:58:25 +0000211 pth_cond_race \
212 pth_create_chain \
213 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000214 pth_detached_sem \
bart3bb1cec2008-06-28 16:01:43 +0000215 pth_inconsistent_cond_wait \
bart5357fcb2008-02-27 15:46:00 +0000216 recursive_mutex \
njn6ab37c72009-02-23 01:33:40 +0000217 rwlock_race \
218 rwlock_test \
bart5bd9f2d2008-03-03 20:31:58 +0000219 sem_as_mutex \
bart60389da2008-02-25 19:58:25 +0000220 sigalrm \
bart848fdf82008-03-02 19:03:19 +0000221 trylock
sewardjaf44c822007-11-25 14:01:38 +0000222
bart61e34a12008-11-10 18:54:46 +0000223if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000224check_PROGRAMS += boost_thread
bartda7c0982008-07-28 11:36:11 +0000225endif
bart29cc9db2008-03-09 15:59:30 +0000226
bart4c853992008-07-07 16:53:45 +0000227if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000228check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000229endif
sewardjaf44c822007-11-25 14:01:38 +0000230
bart5a8c67f2009-01-20 14:02:22 +0000231if HAVE_PTHREAD_BARRIER
bartb235a672009-02-22 09:26:22 +0000232check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
bart5a8c67f2009-01-20 14:02:22 +0000233endif
234
235if HAVE_PTHREAD_SPINLOCK
236check_PROGRAMS += pth_spinlock
237endif
238
bart61e34a12008-11-10 18:54:46 +0000239if HAVE_QTCORE
240check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
241endif
242
sewardjaf44c822007-11-25 14:01:38 +0000243
njn07891f92009-02-22 23:38:10 +0000244AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
245AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
246
njn53044572009-02-19 09:52:05 +0000247LDADD = -lpthread
bartcca440b2008-07-10 11:58:08 +0000248
bart6fd7d742008-12-17 19:21:17 +0000249
bartdc1e91c2008-05-11 06:44:30 +0000250drd_bitmap_test_CFLAGS = $(AM_CFLAGS) -O2 \
bart8b4b2ee2008-06-11 13:17:56 +0000251 -DENABLE_DRD_CONSISTENCY_CHECKS\
bartdc1e91c2008-05-11 06:44:30 +0000252 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
njn53044572009-02-19 09:52:05 +0000253drd_bitmap_test_LDADD = # nothing, ie. not -lpthread
bart3d4c3322008-05-10 08:48:14 +0000254
barte64f11d2008-10-05 17:37:06 +0000255monitor_example_SOURCES = monitor_example.cpp
bart3d4c3322008-05-10 08:48:14 +0000256new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000257
bart61e34a12008-11-10 18:54:46 +0000258if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000259boost_thread_SOURCES = boost_thread.cpp
260boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
261boost_thread_LDADD = $(BOOST_LIBS)
bart61e34a12008-11-10 18:54:46 +0000262endif
263
bart1f52b822008-03-12 17:11:48 +0000264if HAVE_OPENMP
bartf3b72852008-06-26 07:31:15 +0000265omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000266omp_matinv_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000267omp_matinv_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000268
bartf3b72852008-06-26 07:31:15 +0000269omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000270omp_prime_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000271omp_prime_LDADD = $(LDADD) -lm
bartbbd3dcf2008-10-11 18:04:52 +0000272
bartbbd3dcf2008-10-11 18:04:52 +0000273omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
274omp_printf_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000275omp_printf_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000276endif
bart61e34a12008-11-10 18:54:46 +0000277
bart5a8c67f2009-01-20 14:02:22 +0000278if HAVE_PTHREAD_BARRIER
njn53044572009-02-19 09:52:05 +0000279matinv_LDADD = $(LDADD) -lm
bart5a8c67f2009-01-20 14:02:22 +0000280endif
281
bart61e34a12008-11-10 18:54:46 +0000282if HAVE_QTCORE
283qt4_mutex_SOURCES = qt4_mutex.cpp
284qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000285qt4_mutex_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000286
287qt4_rwlock_SOURCES = qt4_rwlock.cpp
288qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000289qt4_rwlock_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000290
291qt4_semaphore_SOURCES = qt4_semaphore.cpp
292qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000293qt4_semaphore_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000294endif