blob: 5af780a84d3119cfef6c87160e58ad1a581f7051 [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
bart0cc09c92008-02-26 12:52:00 +00008noinst_SCRIPTS = \
bart0cc09c92008-02-26 12:52:00 +00009 filter_error_summary \
bart3b9f3bf2008-03-16 07:48:07 +000010 filter_stderr \
bart80e35802008-03-19 17:02:26 +000011 run_openmp_test \
12 supported_libpthread
sewardjaf44c822007-11-25 14:01:38 +000013
bart40605eb2008-03-04 18:37:20 +000014EXTRA_DIST = \
15 $(noinst_SCRIPTS) \
barta2aa68e2009-01-20 14:29:52 +000016 atomic_var.stderr.exp-with-atomic-builtins-1 \
17 atomic_var.stderr.exp-with-atomic-builtins-2 \
bart1d07a382008-07-29 15:27:48 +000018 atomic_var.stderr.exp-without-atomic-builtins \
bartcca440b2008-07-10 11:58:08 +000019 atomic_var.vgtest \
bartc4a9e0f2008-11-17 17:38:28 +000020 bar_bad.stderr.exp \
21 bar_bad.vgtest \
bartdc35ec02008-12-25 09:09:59 +000022 bar_trivial.stdout.exp \
bartc4a9e0f2008-11-17 17:38:28 +000023 bar_trivial.stderr.exp \
24 bar_trivial.vgtest \
25 boost_thread.stderr.exp \
26 boost_thread.vgtest \
sewardj82444812008-12-23 20:46:12 +000027 circular_buffer.stderr.exp-with-atomic-builtins \
28 circular_buffer.stderr.exp-without-atomic-builtins \
bart6fd7d742008-12-17 19:21:17 +000029 circular_buffer.vgtest \
bart34eff982008-05-01 13:50:20 +000030 drd_bitmap_test.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000031 drd_bitmap_test.stdout.exp \
32 drd_bitmap_test.vgtest \
bart40605eb2008-03-04 18:37:20 +000033 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000034 fp_race.vgtest \
35 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000036 fp_race2.vgtest \
37 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000038 hg01_all_ok.vgtest \
39 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000040 hg02_deadlock.vgtest \
41 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000042 hg03_inherit.vgtest \
43 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000044 hg04_race.vgtest \
45 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000046 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +000047 hg05_race2.vgtest \
48 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000049 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +000050 hold_lock_1.stderr.exp \
51 hold_lock_1.vgtest \
52 hold_lock_2.stderr.exp \
53 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +000054 linuxthreads_det.stderr.exp \
55 linuxthreads_det.stderr.exp-linuxthreads \
56 linuxthreads_det.stdout.exp \
57 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +000058 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +000059 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000060 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000061 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +000062 memory_allocation.stderr.exp \
63 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +000064 monitor_example.stderr.exp \
65 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +000066 new_delete.stderr.exp \
67 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +000068 omp_matinv.stderr.exp \
69 omp_matinv.stdout.exp \
70 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +000071 omp_matinv_racy.stderr.exp \
72 omp_matinv_racy.stdout.exp \
73 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +000074 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +000075 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +000076 omp_printf.stderr.exp \
77 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +000078 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000079 pth_barrier.vgtest \
80 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000081 pth_barrier2.vgtest \
82 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000083 pth_barrier3.vgtest \
bartb235a672009-02-22 09:26:22 +000084 pth_barrier_race.stderr.exp \
85 pth_barrier_race.vgtest \
bartd9e39ec2008-06-28 15:03:26 +000086 pth_barrier_reinit.stderr.exp \
87 pth_barrier_reinit.vgtest \
bart40605eb2008-03-04 18:37:20 +000088 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000089 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +000090 pth_cancel_locked.stderr.exp \
91 pth_cancel_locked.vgtest \
bart40605eb2008-03-04 18:37:20 +000092 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000093 pth_cond_race.vgtest \
94 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000095 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +000096 pth_cond_race3.stderr.exp \
97 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +000098 pth_create_chain.stderr.exp \
bart7f8cd302009-01-13 08:22:05 +000099 pth_create_chain.stderr.exp-ppc \
bart40605eb2008-03-04 18:37:20 +0000100 pth_create_chain.vgtest \
101 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000102 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000103 pth_detached.vgtest \
104 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000105 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000106 pth_detached2.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +0000107 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000108 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000109 pth_detached_sem.vgtest \
bart5639ce12009-01-20 14:25:22 +0000110 pth_inconsistent_cond_wait.stderr.exp1 \
111 pth_inconsistent_cond_wait.stderr.exp2 \
barte65b4c62008-07-04 11:47:06 +0000112 pth_inconsistent_cond_wait.vgtest \
bart19c42602008-07-07 08:04:08 +0000113 pth_spinlock.stderr.exp \
114 pth_spinlock.vgtest \
bart4c853992008-07-07 16:53:45 +0000115 qt4_mutex.stderr.exp \
116 qt4_mutex.vgtest \
bart4f578bf2008-07-07 18:35:13 +0000117 qt4_rwlock.stderr.exp \
118 qt4_rwlock.vgtest \
bartef9603e2008-07-07 17:22:41 +0000119 qt4_semaphore.stderr.exp \
120 qt4_semaphore.vgtest \
bart40605eb2008-03-04 18:37:20 +0000121 recursive_mutex.stderr.exp \
barte8acf492008-03-12 17:27:20 +0000122 recursive_mutex.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000123 recursive_mutex.vgtest \
124 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000125 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000126 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000127 rwlock_test.stderr.exp \
128 rwlock_test.vgtest \
bart40605eb2008-03-04 18:37:20 +0000129 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000130 sem_as_mutex.vgtest \
131 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000132 sem_as_mutex2.vgtest \
barte8acf492008-03-12 17:27:20 +0000133 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000134 sigalrm.vgtest \
135 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000136 tc01_simple_race.vgtest \
137 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000138 tc02_simple_tls.vgtest \
139 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000140 tc03_re_excl.vgtest \
141 tc04_free_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000142 tc04_free_lock.vgtest \
143 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000144 tc05_simple_race.vgtest \
145 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000146 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000147 tc07_hbl1.stderr.exp \
148 tc07_hbl1.stdout.exp \
149 tc07_hbl1.vgtest \
150 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000151 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000152 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000153 tc09_bad_unlock.stderr.exp \
bartdf961972008-04-28 16:51:24 +0000154 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000155 tc09_bad_unlock.vgtest \
156 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000157 tc10_rec_lock.vgtest \
158 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000159 tc11_XCHG.vgtest \
160 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000161 tc12_rwl_trivial.vgtest \
162 tc13_laog1.stderr.exp \
163 tc13_laog1.vgtest \
164 tc15_laog_lockdel.stderr.exp \
165 tc15_laog_lockdel.vgtest \
166 tc16_byterace.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000167 tc16_byterace.vgtest \
168 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000169 tc17_sembar.vgtest \
170 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000171 tc18_semabuse.vgtest \
172 tc19_shadowmem.stderr.exp \
173 tc19_shadowmem.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000174 tc20_verifywrap.stderr.exp-glibc2.3 \
bart02aed962008-07-06 07:48:35 +0000175 tc20_verifywrap.stderr.exp-glibc2.5 \
176 tc20_verifywrap.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000177 tc20_verifywrap.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000178 tc20_verifywrap.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000179 tc20_verifywrap2.stderr.exp-glibc2.3 \
bart3effeb92008-03-09 19:20:27 +0000180 tc20_verifywrap2.stderr.exp-glibc2.3-b \
bart02aed962008-07-06 07:48:35 +0000181 tc20_verifywrap2.stderr.exp-glibc2.5 \
182 tc20_verifywrap2.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000183 tc20_verifywrap2.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000184 tc20_verifywrap2.vgtest \
185 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000186 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000187 tc21_pthonce.vgtest \
188 tc22_exit_w_lock.stderr.exp-32bit \
189 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000190 tc22_exit_w_lock.vgtest \
191 tc23_bogus_condwait.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000192 tc23_bogus_condwait.vgtest \
193 tc24_nonzero_sem.stderr.exp \
194 tc24_nonzero_sem.vgtest \
barte65b4c62008-07-04 11:47:06 +0000195 trylock.stderr.exp \
196 trylock.vgtest
sewardjaf44c822007-11-25 14:01:38 +0000197
bartcca440b2008-07-10 11:58:08 +0000198check_PROGRAMS = \
199 atomic_var \
bart6fd7d742008-12-17 19:21:17 +0000200 circular_buffer \
bartad292b52008-05-01 14:11:45 +0000201 drd_bitmap_test \
bart60389da2008-02-25 19:58:25 +0000202 fp_race \
bart1d4070d2008-05-14 12:22:15 +0000203 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000204 linuxthreads_det \
bart412efe52008-04-20 08:29:04 +0000205 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000206 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000207 new_delete \
bartb5d3abd2009-02-20 19:00:18 +0000208 rwlock_race \
209 rwlock_test \
bart60389da2008-02-25 19:58:25 +0000210 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000211 pth_cancel_locked \
bart60389da2008-02-25 19:58:25 +0000212 pth_cond_race \
213 pth_create_chain \
214 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000215 pth_detached_sem \
bart3bb1cec2008-06-28 16:01:43 +0000216 pth_inconsistent_cond_wait \
bart5357fcb2008-02-27 15:46:00 +0000217 recursive_mutex \
bart5bd9f2d2008-03-03 20:31:58 +0000218 sem_as_mutex \
bart60389da2008-02-25 19:58:25 +0000219 sigalrm \
bart848fdf82008-03-02 19:03:19 +0000220 trylock
sewardjaf44c822007-11-25 14:01:38 +0000221
bart61e34a12008-11-10 18:54:46 +0000222if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000223check_PROGRAMS += boost_thread
bartda7c0982008-07-28 11:36:11 +0000224endif
bart29cc9db2008-03-09 15:59:30 +0000225
bart4c853992008-07-07 16:53:45 +0000226if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000227check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000228endif
sewardjaf44c822007-11-25 14:01:38 +0000229
bart5a8c67f2009-01-20 14:02:22 +0000230if HAVE_PTHREAD_BARRIER
bartb235a672009-02-22 09:26:22 +0000231check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
bart5a8c67f2009-01-20 14:02:22 +0000232endif
233
234if HAVE_PTHREAD_SPINLOCK
235check_PROGRAMS += pth_spinlock
236endif
237
bart61e34a12008-11-10 18:54:46 +0000238if HAVE_QTCORE
239check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
240endif
241
sewardjaf44c822007-11-25 14:01:38 +0000242
njn07891f92009-02-22 23:38:10 +0000243AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
244AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
245
njn53044572009-02-19 09:52:05 +0000246LDADD = -lpthread
bartcca440b2008-07-10 11:58:08 +0000247
bart6fd7d742008-12-17 19:21:17 +0000248
bartdc1e91c2008-05-11 06:44:30 +0000249drd_bitmap_test_CFLAGS = $(AM_CFLAGS) -O2 \
bart8b4b2ee2008-06-11 13:17:56 +0000250 -DENABLE_DRD_CONSISTENCY_CHECKS\
bartdc1e91c2008-05-11 06:44:30 +0000251 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
njn53044572009-02-19 09:52:05 +0000252drd_bitmap_test_LDADD = # nothing, ie. not -lpthread
bart3d4c3322008-05-10 08:48:14 +0000253
barte64f11d2008-10-05 17:37:06 +0000254monitor_example_SOURCES = monitor_example.cpp
bart3d4c3322008-05-10 08:48:14 +0000255new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000256
bart61e34a12008-11-10 18:54:46 +0000257if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000258boost_thread_SOURCES = boost_thread.cpp
259boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
260boost_thread_LDADD = $(BOOST_LIBS)
bart61e34a12008-11-10 18:54:46 +0000261endif
262
bart1f52b822008-03-12 17:11:48 +0000263if HAVE_OPENMP
bartf3b72852008-06-26 07:31:15 +0000264omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000265omp_matinv_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000266omp_matinv_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000267
bartf3b72852008-06-26 07:31:15 +0000268omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000269omp_prime_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000270omp_prime_LDADD = $(LDADD) -lm
bartbbd3dcf2008-10-11 18:04:52 +0000271
bartbbd3dcf2008-10-11 18:04:52 +0000272omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
273omp_printf_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000274omp_printf_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000275endif
bart61e34a12008-11-10 18:54:46 +0000276
bart5a8c67f2009-01-20 14:02:22 +0000277if HAVE_PTHREAD_BARRIER
njn53044572009-02-19 09:52:05 +0000278matinv_LDADD = $(LDADD) -lm
bart5a8c67f2009-01-20 14:02:22 +0000279endif
280
bart61e34a12008-11-10 18:54:46 +0000281if HAVE_QTCORE
282qt4_mutex_SOURCES = qt4_mutex.cpp
283qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000284qt4_mutex_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000285
286qt4_rwlock_SOURCES = qt4_rwlock.cpp
287qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000288qt4_rwlock_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000289
290qt4_semaphore_SOURCES = qt4_semaphore.cpp
291qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000292qt4_semaphore_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000293endif