blob: 9c1342d8947f0d589d82079b6accfde828aa5e3a [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) \
bart948a4652009-03-11 18:29:00 +000017 atomic_var.stderr.exp-with-atomic-builtins \
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 \
bart6c7c76e2009-05-01 12:23:47 +000030 custom_alloc.vgtest \
31 custom_alloc.stderr.exp \
bart34eff982008-05-01 13:50:20 +000032 drd_bitmap_test.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000033 drd_bitmap_test.stdout.exp \
34 drd_bitmap_test.vgtest \
bart40605eb2008-03-04 18:37:20 +000035 fp_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000036 fp_race.vgtest \
37 fp_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000038 fp_race2.vgtest \
39 hg01_all_ok.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000040 hg01_all_ok.vgtest \
41 hg02_deadlock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000042 hg02_deadlock.vgtest \
43 hg03_inherit.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000044 hg03_inherit.vgtest \
45 hg04_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000046 hg04_race.vgtest \
47 hg05_race2.stderr.exp \
barte65b4c62008-07-04 11:47:06 +000048 hg05_race2.stderr.exp-powerpc \
bart40605eb2008-03-04 18:37:20 +000049 hg05_race2.vgtest \
50 hg06_readshared.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000051 hg06_readshared.vgtest \
bart1d4070d2008-05-14 12:22:15 +000052 hold_lock_1.stderr.exp \
53 hold_lock_1.vgtest \
54 hold_lock_2.stderr.exp \
55 hold_lock_2.vgtest \
bart96f892f2008-03-09 16:16:06 +000056 linuxthreads_det.stderr.exp \
57 linuxthreads_det.stderr.exp-linuxthreads \
58 linuxthreads_det.stdout.exp \
59 linuxthreads_det.stdout.exp-linuxthreads \
barte65b4c62008-07-04 11:47:06 +000060 linuxthreads_det.vgtest \
bart40605eb2008-03-04 18:37:20 +000061 matinv.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000062 matinv.stdout.exp \
bart40605eb2008-03-04 18:37:20 +000063 matinv.vgtest \
bart412efe52008-04-20 08:29:04 +000064 memory_allocation.stderr.exp \
65 memory_allocation.vgtest \
barte64f11d2008-10-05 17:37:06 +000066 monitor_example.stderr.exp \
67 monitor_example.vgtest \
bart3d4c3322008-05-10 08:48:14 +000068 new_delete.stderr.exp \
69 new_delete.vgtest \
bart805043e2008-03-12 17:49:57 +000070 omp_matinv.stderr.exp \
71 omp_matinv.stdout.exp \
72 omp_matinv.vgtest \
barte8acf492008-03-12 17:27:20 +000073 omp_matinv_racy.stderr.exp \
74 omp_matinv_racy.stdout.exp \
75 omp_matinv_racy.vgtest \
bart805043e2008-03-12 17:49:57 +000076 omp_prime_racy.stderr.exp \
bart805043e2008-03-12 17:49:57 +000077 omp_prime_racy.vgtest \
bartbbd3dcf2008-10-11 18:04:52 +000078 omp_printf.stderr.exp \
79 omp_printf.vgtest \
bart40605eb2008-03-04 18:37:20 +000080 pth_barrier.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000081 pth_barrier.vgtest \
82 pth_barrier2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000083 pth_barrier2.vgtest \
84 pth_barrier3.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000085 pth_barrier3.vgtest \
bartb235a672009-02-22 09:26:22 +000086 pth_barrier_race.stderr.exp \
87 pth_barrier_race.vgtest \
bartd9e39ec2008-06-28 15:03:26 +000088 pth_barrier_reinit.stderr.exp \
89 pth_barrier_reinit.vgtest \
bart40605eb2008-03-04 18:37:20 +000090 pth_broadcast.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000091 pth_broadcast.vgtest \
bart032424f2008-09-27 12:26:17 +000092 pth_cancel_locked.stderr.exp \
93 pth_cancel_locked.vgtest \
bart40605eb2008-03-04 18:37:20 +000094 pth_cond_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000095 pth_cond_race.vgtest \
96 pth_cond_race2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +000097 pth_cond_race2.vgtest \
bart46b5fce2008-06-28 13:01:30 +000098 pth_cond_race3.stderr.exp \
99 pth_cond_race3.vgtest \
bart40605eb2008-03-04 18:37:20 +0000100 pth_create_chain.stderr.exp \
bart7f8cd302009-01-13 08:22:05 +0000101 pth_create_chain.stderr.exp-ppc \
bart40605eb2008-03-04 18:37:20 +0000102 pth_create_chain.vgtest \
bartfaec72f2009-04-26 07:14:15 +0000103 pth_create_glibc_2_0.stderr.exp \
104 pth_create_glibc_2_0.vgtest \
bart40605eb2008-03-04 18:37:20 +0000105 pth_detached.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000106 pth_detached.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000107 pth_detached.vgtest \
108 pth_detached2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000109 pth_detached2.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000110 pth_detached2.vgtest \
bart3b9f3bf2008-03-16 07:48:07 +0000111 pth_detached_sem.stderr.exp \
bart178cc162008-05-10 12:52:02 +0000112 pth_detached_sem.stdout.exp \
bart3b9f3bf2008-03-16 07:48:07 +0000113 pth_detached_sem.vgtest \
bart5639ce12009-01-20 14:25:22 +0000114 pth_inconsistent_cond_wait.stderr.exp1 \
115 pth_inconsistent_cond_wait.stderr.exp2 \
barte65b4c62008-07-04 11:47:06 +0000116 pth_inconsistent_cond_wait.vgtest \
bart81de2242009-03-13 17:32:07 +0000117 pth_process_shared_mutex.vgtest \
118 pth_process_shared_mutex.c \
bart19c42602008-07-07 08:04:08 +0000119 pth_spinlock.stderr.exp \
120 pth_spinlock.vgtest \
bart4c853992008-07-07 16:53:45 +0000121 qt4_mutex.stderr.exp \
122 qt4_mutex.vgtest \
bart4f578bf2008-07-07 18:35:13 +0000123 qt4_rwlock.stderr.exp \
124 qt4_rwlock.vgtest \
bartef9603e2008-07-07 17:22:41 +0000125 qt4_semaphore.stderr.exp \
126 qt4_semaphore.vgtest \
bart40605eb2008-03-04 18:37:20 +0000127 recursive_mutex.stderr.exp \
barte8acf492008-03-12 17:27:20 +0000128 recursive_mutex.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000129 recursive_mutex.vgtest \
130 rwlock_race.stderr.exp \
bartb920b662008-04-09 17:44:28 +0000131 rwlock_race.stderr.exp2 \
bart40605eb2008-03-04 18:37:20 +0000132 rwlock_race.vgtest \
bart178cc162008-05-10 12:52:02 +0000133 rwlock_test.stderr.exp \
134 rwlock_test.vgtest \
bart40605eb2008-03-04 18:37:20 +0000135 sem_as_mutex.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000136 sem_as_mutex.vgtest \
137 sem_as_mutex2.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000138 sem_as_mutex2.vgtest \
barte8acf492008-03-12 17:27:20 +0000139 sigalrm.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000140 sigalrm.vgtest \
141 tc01_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000142 tc01_simple_race.vgtest \
143 tc02_simple_tls.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000144 tc02_simple_tls.vgtest \
145 tc03_re_excl.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000146 tc03_re_excl.vgtest \
147 tc04_free_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000148 tc04_free_lock.vgtest \
149 tc05_simple_race.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000150 tc05_simple_race.vgtest \
151 tc06_two_races.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000152 tc06_two_races.vgtest \
bart8360df52008-03-07 17:34:22 +0000153 tc07_hbl1.stderr.exp \
154 tc07_hbl1.stdout.exp \
155 tc07_hbl1.vgtest \
156 tc08_hbl2.stderr.exp \
bart43409c92008-03-07 19:29:03 +0000157 tc08_hbl2.stdout.exp \
bart8360df52008-03-07 17:34:22 +0000158 tc08_hbl2.vgtest \
bart40605eb2008-03-04 18:37:20 +0000159 tc09_bad_unlock.stderr.exp \
bartdf961972008-04-28 16:51:24 +0000160 tc09_bad_unlock.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000161 tc09_bad_unlock.vgtest \
162 tc10_rec_lock.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000163 tc10_rec_lock.vgtest \
164 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000165 tc11_XCHG.vgtest \
166 tc12_rwl_trivial.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000167 tc12_rwl_trivial.vgtest \
168 tc13_laog1.stderr.exp \
169 tc13_laog1.vgtest \
170 tc15_laog_lockdel.stderr.exp \
171 tc15_laog_lockdel.vgtest \
172 tc16_byterace.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000173 tc16_byterace.vgtest \
174 tc17_sembar.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000175 tc17_sembar.vgtest \
176 tc18_semabuse.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000177 tc18_semabuse.vgtest \
178 tc19_shadowmem.stderr.exp \
179 tc19_shadowmem.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000180 tc20_verifywrap.stderr.exp-glibc2.3 \
bart02aed962008-07-06 07:48:35 +0000181 tc20_verifywrap.stderr.exp-glibc2.5 \
182 tc20_verifywrap.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000183 tc20_verifywrap.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000184 tc20_verifywrap.vgtest \
bart4ff230a2008-03-08 15:04:25 +0000185 tc20_verifywrap2.stderr.exp-glibc2.3 \
bart3effeb92008-03-09 19:20:27 +0000186 tc20_verifywrap2.stderr.exp-glibc2.3-b \
bart02aed962008-07-06 07:48:35 +0000187 tc20_verifywrap2.stderr.exp-glibc2.5 \
188 tc20_verifywrap2.stderr.exp-glibc2.5-ppc \
barte65b4c62008-07-04 11:47:06 +0000189 tc20_verifywrap2.stderr.exp-glibc2.8 \
bart40605eb2008-03-04 18:37:20 +0000190 tc20_verifywrap2.vgtest \
191 tc21_pthonce.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000192 tc21_pthonce.stdout.exp \
bart40605eb2008-03-04 18:37:20 +0000193 tc21_pthonce.vgtest \
194 tc22_exit_w_lock.stderr.exp-32bit \
195 tc22_exit_w_lock.stderr.exp-64bit \
bart40605eb2008-03-04 18:37:20 +0000196 tc22_exit_w_lock.vgtest \
197 tc23_bogus_condwait.stderr.exp \
bart40605eb2008-03-04 18:37:20 +0000198 tc23_bogus_condwait.vgtest \
199 tc24_nonzero_sem.stderr.exp \
200 tc24_nonzero_sem.vgtest \
barte65b4c62008-07-04 11:47:06 +0000201 trylock.stderr.exp \
202 trylock.vgtest
sewardjaf44c822007-11-25 14:01:38 +0000203
bartcca440b2008-07-10 11:58:08 +0000204check_PROGRAMS = \
205 atomic_var \
bart6fd7d742008-12-17 19:21:17 +0000206 circular_buffer \
bartad292b52008-05-01 14:11:45 +0000207 drd_bitmap_test \
bart60389da2008-02-25 19:58:25 +0000208 fp_race \
bart1d4070d2008-05-14 12:22:15 +0000209 hold_lock \
bart96f892f2008-03-09 16:16:06 +0000210 linuxthreads_det \
bart412efe52008-04-20 08:29:04 +0000211 memory_allocation \
barte64f11d2008-10-05 17:37:06 +0000212 monitor_example \
bart3d4c3322008-05-10 08:48:14 +0000213 new_delete \
bart60389da2008-02-25 19:58:25 +0000214 pth_broadcast \
bart032424f2008-09-27 12:26:17 +0000215 pth_cancel_locked \
bart60389da2008-02-25 19:58:25 +0000216 pth_cond_race \
217 pth_create_chain \
218 pth_detached \
bart3b9f3bf2008-03-16 07:48:07 +0000219 pth_detached_sem \
bart81de2242009-03-13 17:32:07 +0000220 pth_process_shared_mutex \
bart3bb1cec2008-06-28 16:01:43 +0000221 pth_inconsistent_cond_wait \
bart5357fcb2008-02-27 15:46:00 +0000222 recursive_mutex \
njn6ab37c72009-02-23 01:33:40 +0000223 rwlock_race \
224 rwlock_test \
bart5bd9f2d2008-03-03 20:31:58 +0000225 sem_as_mutex \
bart60389da2008-02-25 19:58:25 +0000226 sigalrm \
bart848fdf82008-03-02 19:03:19 +0000227 trylock
sewardjaf44c822007-11-25 14:01:38 +0000228
bart61e34a12008-11-10 18:54:46 +0000229if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000230check_PROGRAMS += boost_thread
bartda7c0982008-07-28 11:36:11 +0000231endif
bart29cc9db2008-03-09 15:59:30 +0000232
bart4c853992008-07-07 16:53:45 +0000233if HAVE_OPENMP
bartbbd3dcf2008-10-11 18:04:52 +0000234check_PROGRAMS += omp_matinv omp_prime omp_printf
bart4c853992008-07-07 16:53:45 +0000235endif
sewardjaf44c822007-11-25 14:01:38 +0000236
bart5a8c67f2009-01-20 14:02:22 +0000237if HAVE_PTHREAD_BARRIER
bartb235a672009-02-22 09:26:22 +0000238check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
bart5a8c67f2009-01-20 14:02:22 +0000239endif
240
bartfaec72f2009-04-26 07:14:15 +0000241if HAVE_PTHREAD_CREATE_GLIBC_2_0
242check_PROGRAMS += pth_create_glibc_2_0
243endif
244
bart5a8c67f2009-01-20 14:02:22 +0000245if HAVE_PTHREAD_SPINLOCK
246check_PROGRAMS += pth_spinlock
247endif
248
bart61e34a12008-11-10 18:54:46 +0000249if HAVE_QTCORE
250check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
251endif
252
sewardjaf44c822007-11-25 14:01:38 +0000253
njn07891f92009-02-22 23:38:10 +0000254AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
255AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
256
njn53044572009-02-19 09:52:05 +0000257LDADD = -lpthread
bartcca440b2008-07-10 11:58:08 +0000258
bart6fd7d742008-12-17 19:21:17 +0000259
bartdc1e91c2008-05-11 06:44:30 +0000260drd_bitmap_test_CFLAGS = $(AM_CFLAGS) -O2 \
bart8b4b2ee2008-06-11 13:17:56 +0000261 -DENABLE_DRD_CONSISTENCY_CHECKS\
bartdc1e91c2008-05-11 06:44:30 +0000262 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
njn53044572009-02-19 09:52:05 +0000263drd_bitmap_test_LDADD = # nothing, ie. not -lpthread
bart3d4c3322008-05-10 08:48:14 +0000264
barte64f11d2008-10-05 17:37:06 +0000265monitor_example_SOURCES = monitor_example.cpp
bart3d4c3322008-05-10 08:48:14 +0000266new_delete_SOURCES = new_delete.cpp
bart412efe52008-04-20 08:29:04 +0000267
bart61e34a12008-11-10 18:54:46 +0000268if HAVE_BOOST_1_35
bartc4a9e0f2008-11-17 17:38:28 +0000269boost_thread_SOURCES = boost_thread.cpp
270boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
271boost_thread_LDADD = $(BOOST_LIBS)
bart61e34a12008-11-10 18:54:46 +0000272endif
273
bart1f52b822008-03-12 17:11:48 +0000274if HAVE_OPENMP
bartf3b72852008-06-26 07:31:15 +0000275omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
bart805043e2008-03-12 17:49:57 +0000276omp_matinv_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000277omp_matinv_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000278
bartf3b72852008-06-26 07:31:15 +0000279omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
bartbaa3c2d2008-03-12 16:50:09 +0000280omp_prime_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000281omp_prime_LDADD = $(LDADD) -lm
bartbbd3dcf2008-10-11 18:04:52 +0000282
bartbbd3dcf2008-10-11 18:04:52 +0000283omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
284omp_printf_LDFLAGS = -fopenmp
njn53044572009-02-19 09:52:05 +0000285omp_printf_LDADD = $(LDADD) -lm
bart0aeb1862008-03-10 19:26:42 +0000286endif
bart61e34a12008-11-10 18:54:46 +0000287
bart5a8c67f2009-01-20 14:02:22 +0000288if HAVE_PTHREAD_BARRIER
njn53044572009-02-19 09:52:05 +0000289matinv_LDADD = $(LDADD) -lm
bart5a8c67f2009-01-20 14:02:22 +0000290endif
291
bart61e34a12008-11-10 18:54:46 +0000292if HAVE_QTCORE
293qt4_mutex_SOURCES = qt4_mutex.cpp
294qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000295qt4_mutex_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000296
297qt4_rwlock_SOURCES = qt4_rwlock.cpp
298qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000299qt4_rwlock_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000300
301qt4_semaphore_SOURCES = qt4_semaphore.cpp
302qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
njn53044572009-02-19 09:52:05 +0000303qt4_semaphore_LDADD = $(LDADD) $(QTCORE_LIBS)
bart61e34a12008-11-10 18:54:46 +0000304endif