summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: f1eb8437352066f026e7056ab04da21a915f452b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
##----------------------------------------------------------------------------
##       $Id$
##
##       Makefile.am for all the ACE ``one-button'' tests
##----------------------------------------------------------------------------

##
##  Process this file with automake to create Makefile.in
##

## We can't add "CLASSIX" to the SUBDIRS list as this point since "CLASSIX"
## would be built before the "test" directory.  How do we get around this
## without moving directories around?
##                         -Ossama
## SUBDIRS = CLASSIX \
##           WinCE \
##           version_tests

INCLUDES = -I$(top_builddir) -I$(top_srcdir)

## Local lib directory
libdir = $(shell pwd)

## LDFLAGS =
## Libtool will automatically link against the "proper" library.
## Do not change the "libACE.la."  It is not a typographical error!
##
## We override the "LIBS" variable provided by the configure script since
## we should only need to link against the ACE library for these tests.
LDADD = $(top_builddir)/ace/libACE.la $(libdir)/libTest_Output.la
##LIBS = $(top_builddir)/ace/libACE.la

noinst_SCRIPTS = \
  run_tests.bat \
  run_tests.check \
  run_test.pl \
  run_tests.psosim \
  run_tests_remote.sh


## @todo Do not build/run this test if running on LynxOS < 3.1.0.
CDR_ARRAY_TEST = CDR_Array_Test

## @todo Do not build these tests if their corresponding components in
##       ACE have not been enabled/built.
##if BUILD_CODECS_FILES
CODECS_TEST = Codecs_Test
##else
##CODECS_TEST =
##endif

##if BUILD_TOKEN_FILES
TOKENS_TEST = Tokens_Test
##else
##TOKENS_TEST =
##endif

if COMPILE_XTREACTOR_TEST
XTREACTOR_TEST = XtReactor_Test
else
XTREACTOR_TEST =
endif

## @todo Make the DLL_Test, Service_Config_Test and
##       Framework_Component tests conditional on shared library
##       builds.  Do not build in static library only builds.
FRAMEWORK_COMPONENT_TEST = Framework_Component_Test
## FRAMEWORK_COMPONENT_TEST =

## Build the shared libraries needed for the DLL_Test and the
## Service_Config_DLL test. 
## libdir = $(shell pwd)
lib_LTLIBRARIES = libDLL_Test.la libService_Config_DLL.la libTest_Output.la

libTest_Output_la_SOURCES = Test_Output.cpp test_config.h
libTest_Output_la_LDFLAGS = -module
libTest_Output_la_LIBADD = $(top_builddir)/ace/libACE.la

libDLL_Test_la_SOURCES = DLL_Test_Impl.cpp DLL_Test_Impl.h
libDLL_Test_la_LDFLAGS = -module

libService_Config_DLL_la_SOURCES = Service_Config_DLL.cpp Service_Config_DLL.h
libService_Config_DLL_la_LDFLAGS = -module
libService_Config_DLL_la_LIBADD = $(top_builddir)/ace/libACE.la

## Build the following test programs when a `make check' is
## issued by the user.
##check_PROGRAMS =
noinst_PROGRAMS = \
  Aio_Platform_Test \
  Arg_Shifter_Test \
  ARGV_Test \
  Atomic_Op_Test \
  Auto_IncDec_Test \
  Barrier_Test \
  Basic_Types_Test \
  Bound_Ptr_Test \
  Buffer_Stream_Test \
  Cache_Map_Manager_Test \
  Cached_Accept_Conn_Test \
  Cached_Allocator_Test \
  Cached_Conn_Test \
  Capabilities_Test \
  CDR_File_Test \
  CDR_Test \
  Collection_Test \
  Config_Test \
  Conn_Test \
  Date_Time_Test \
  Dev_Poll_Reactor_Test \
  Dirent_Test \
  DLL_Test\
  DLList_Test \
  Dynamic_Priority_Test \
  Enum_Interfaces_Test \
  Env_Value_Test \
  FIFO_Test \
  Future_Set_Test \
  Future_Test \
  Get_Opt_Test \
  Handle_Set_Test \
  Hash_Map_Bucket_Iterator_Test \
  Hash_Map_Manager_Test \
  High_Res_Timer_Test \
  INET_Addr_Test \
  IOStream_Test \
  Lazy_Map_Manager_Test \
  Log_Msg_Test \
  Logging_Strategy_Test \
  Malloc_Test \
  Map_Manager_Test \
  Map_Test \
  Max_Default_Port_Test \
  Mem_Map_Test \
  MEM_Stream_Test \
  Message_Block_Test \
  Message_Queue_Notifications_Test \
  Message_Queue_Test \
  Message_Queue_Test_Ex \
  MM_Shared_Memory_Test \
  MT_Reactor_Timer_Test \
  MT_Reactor_Upcall_Test \
  MT_Reference_Counted_Event_Handler_Test \
  MT_Reference_Counted_Notify_Test \
  MT_SOCK_Test \
  Multicast_Test \
  Multihomed_INET_Addr_Test \
  NonBlocking_Conn_Test \
  Notify_Performance_Test \
  Object_Manager_Test \
  Obstack_Test \
  OrdMultiSet_Test \
  OS_Test \
  Pipe_Test \
  Priority_Buffer_Test \
  Priority_Reactor_Test \
  Priority_Task_Test \
  Proactor_Scatter_Gather_Test \
  Proactor_Test \
  Proactor_Timer_Test \
  Process_Manager_Test \
  Process_Mutex_Test \
  Process_Strategy_Test \
  RB_Tree_Test \
  Reactor_Dispatch_Order_Test \
  Reactor_Exceptions_Test \
  Reactor_Notify_Test \
  Reactor_Performance_Test \
  Reactor_Registration_Test \
  Reactor_Timer_Test \
  Reactors_Test \
  Reader_Writer_Test \
  Recursive_Condition_Test \
  Recursive_Mutex_Test \
  Refcounted_Auto_Ptr_Test \
  Reference_Counted_Event_Handler_Test \
  Reverse_Lock_Test \
  Semaphore_Test \
  Service_Config_Test \
  Signal_Test \
  Sigset_Ops_Test \
  Simple_Message_Block_Test \
  SOCK_Connector_Test \
  SOCK_Send_Recv_Test \
  SOCK_Test \
  SPIPE_Test \
  SString_Test \
  SV_Shared_Memory_Test \
  Svc_Handler_Test \
  Task_Test \
  Thread_Manager_Test \
  Thread_Mutex_Test \
  Thread_Pool_Test \
  Time_Service_Test \
  Time_Value_Test \
  Timeprobe_Test \
  Timer_Cancellation_Test \
  Timer_Queue_Reference_Counting_Test \
  Timer_Queue_Test \
  Token_Strategy_Test \
  TP_Reactor_Test \
  TSS_Test \
  Unbounded_Set_Test_Ex \
  Upgradable_RW_Test \
  UPIPE_SAP_Test \
  Vector_Test \
  WFMO_Reactor_Test \
  \
  Naming_Test \
  \
  FlReactor_Test \
  Thread_Pool_Reactor_Test \
  Thread_Pool_Reactor_Resume_Test \
  TkReactor_Test \
  $(CDR_ARRAY_TEST) \
  $(CODECS_TEST) \
  $(FRAMEWORK_COMPONENT_TEST) \
  $(TOKENS_TEST) \
  $(XTREACTOR_TEST)

Aio_Platform_Test_SOURCES = Aio_Platform_Test.cpp Main.cpp

Arg_Shifter_Test_SOURCES = Arg_Shifter_Test.cpp Main.cpp

ARGV_Test_SOURCES = ARGV_Test.cpp Main.cpp

Atomic_Op_Test_SOURCES = Atomic_Op_Test.cpp Main.cpp

Auto_IncDec_Test_SOURCES = Auto_IncDec_Test.cpp Main.cpp

Barrier_Test_SOURCES = Barrier_Test.cpp Main.cpp

Basic_Types_Test_SOURCES = Basic_Types_Test.cpp Main.cpp

Bound_Ptr_Test_SOURCES = Bound_Ptr_Test.cpp Main.cpp

Buffer_Stream_Test_SOURCES = Buffer_Stream_Test.cpp Main.cpp

CDR_Array_Test_SOURCES = CDR_Array_Test.cpp Main.cpp

CDR_Test_SOURCES = CDR_Test.cpp Main.cpp

CDR_File_Test_SOURCES = CDR_File_Test.cpp Main.cpp

Cached_Accept_Conn_Test_SOURCES = Cached_Accept_Conn_Test.cpp \
                                  Cached_Accept_Conn_Test.h \
                                  Main.cpp

Cached_Allocator_Test_SOURCES = Cached_Allocator_Test.cpp Main.cpp

Cached_Conn_Test_SOURCES = Cached_Conn_Test.cpp \
                           Cached_Conn_Test.h \
                           Main.cpp

Cache_Map_Manager_Test_SOURCES = Cache_Map_Manager_Test.cpp \
                                 Cache_Map_Manager_Test.h \
                                 Main.cpp

Capabilities_Test_SOURCES = Capabilities_Test.cpp Main.cpp

Codecs_Test_SOURCES = Codecs_Test.cpp Main.cpp

Collection_Test_SOURCES = Collection_Test.cpp Collection_Test.h Main.cpp

Config_Test_SOURCES = Config_Test.cpp Config_Test.h Main.cpp

Conn_Test_SOURCES = Conn_Test.cpp Conn_Test.h Main.cpp

DLList_Test_SOURCES = DLList_Test.cpp Main.cpp

DLL_Test_SOURCES = DLL_Test.cpp DLL_Test.h Main.cpp
DLL_Test_DEPENDENCIES = libDLL_Test.la

Date_Time_Test_SOURCES = Date_Time_Test.cpp Main.cpp

Dev_Poll_Reactor_Test_SOURCES = Dev_Poll_Reactor_Test.cpp Main.cpp

Dirent_Test_SOURCES = Dirent_Test.cpp Main.cpp

Dynamic_Priority_Test_SOURCES = Dynamic_Priority_Test.cpp Main.cpp

Enum_Interfaces_Test_SOURCES = Enum_Interfaces_Test.cpp Main.cpp

Env_Value_Test_SOURCES = Env_Value_Test.cpp Main.cpp

FIFO_Test_SOURCES = FIFO_Test.cpp Main.cpp

FlReactor_Test_SOURCES = FlReactor_Test.cpp Main.cpp

Framework_Component_Test_SOURCES = Framework_Component_Test.cpp \
                                   Framework_Component_Test.h \
                                   Main.cpp

Future_Test_SOURCES = Future_Test.cpp Main.cpp

Future_Set_Test_SOURCES = Future_Set_Test.cpp Main.cpp

Get_Opt_Test_SOURCES = Get_Opt_Test.cpp Main.cpp

Handle_Set_Test_SOURCES = Handle_Set_Test.cpp Main.cpp

Hash_Map_Manager_Test_SOURCES = Hash_Map_Manager_Test.cpp Main.cpp

Hash_Map_Bucket_Iterator_Test_SOURCES = Hash_Map_Bucket_Iterator_Test.cpp \
                                        Main.cpp

High_Res_Timer_Test_SOURCES = High_Res_Timer_Test.cpp Main.cpp

INET_Addr_Test_SOURCES = INET_Addr_Test.cpp Main.cpp

IOStream_Test_SOURCES = IOStream_Test.cpp Main.cpp

Lazy_Map_Manager_Test_SOURCES = Lazy_Map_Manager_Test.cpp Main.cpp

Log_Msg_Test_SOURCES = Log_Msg_Test.cpp Main.cpp

Logging_Strategy_Test_SOURCES = Logging_Strategy_Test.cpp Main.cpp

MEM_Stream_Test_SOURCES = MEM_Stream_Test.cpp MEM_Stream_Test.h Main.cpp

MM_Shared_Memory_Test_SOURCES = MM_Shared_Memory_Test.cpp Main.cpp

MT_Reactor_Timer_Test_SOURCES = MT_Reactor_Timer_Test.cpp \
                                MT_Reactor_Timer_Test.h \
                                Main.cpp

MT_Reactor_Upcall_Test_SOURCES = MT_Reactor_Upcall_Test.cpp Main.cpp

MT_SOCK_Test_SOURCES = MT_SOCK_Test.cpp Main.cpp

Malloc_Test_SOURCES = Malloc_Test.cpp Malloc_Test.h Main.cpp

Map_Manager_Test_SOURCES = Map_Manager_Test.cpp Main.cpp

Map_Test_SOURCES = Map_Test.cpp Map_Test.h Main.cpp

Max_Default_Port_Test_SOURCES = Max_Default_Port_Test.cpp \
                                Max_Default_Port_Test.h \
                                Main.cpp

Mem_Map_Test_SOURCES = Mem_Map_Test.cpp Main.cpp

Message_Block_Test_SOURCES = Message_Block_Test.cpp Main.cpp

Message_Queue_Notifications_Test_SOURCES = Message_Queue_Notifications_Test.cpp \
                                           Main.cpp

Message_Queue_Test_SOURCES = Message_Queue_Test.cpp Main.cpp

Message_Queue_Test_Ex_SOURCES = Message_Queue_Test_Ex.cpp \
                                Message_Queue_Test_Ex.h \
                                Main.cpp

Multicast_Test_SOURCES = Multicast_Test.cpp Main.cpp

Multihomed_INET_Addr_Test_SOURCES = Multihomed_INET_Addr_Test.cpp \
                                    Multihomed_INET_Addr_Test.h \
                                    Main.cpp

Naming_Test_SOURCES = Naming_Test.cpp Main.cpp

Notify_Performance_Test_SOURCES = Notify_Performance_Test.cpp Main.cpp

OS_Test_SOURCES = OS_Test.cpp Main.cpp

Object_Manager_Test_SOURCES = Object_Manager_Test.cpp Main.cpp

Obstack_Test_SOURCES = Obstack_Test.cpp Main.cpp

OrdMultiSet_Test_SOURCES = OrdMultiSet_Test.cpp Main.cpp

Pipe_Test_SOURCES = Pipe_Test.cpp Main.cpp

Priority_Buffer_Test_SOURCES = Priority_Buffer_Test.cpp Main.cpp

Priority_Reactor_Test_SOURCES = Priority_Reactor_Test.cpp \
                                Priority_Reactor_Test.h \
                                Main.cpp

Priority_Task_Test_SOURCES = Priority_Task_Test.cpp Main.cpp

Proactor_Scatter_Gather_Test_SOURCES = Proactor_Scatter_Gather_Test.cpp \
                                       Main.cpp

Proactor_Test_SOURCES = Proactor_Test.cpp Main.cpp

Proactor_Timer_Test_SOURCES = Proactor_Timer_Test.cpp Main.cpp

Process_Manager_Test_SOURCES = Process_Manager_Test.cpp Main.cpp

Process_Mutex_Test_SOURCES = Process_Mutex_Test.cpp Main.cpp

Process_Strategy_Test_SOURCES = Process_Strategy_Test.cpp \
                                Process_Strategy_Test.h \
                                Main.cpp

RB_Tree_Test_SOURCES = RB_Tree_Test.cpp RB_Tree_Test.h Main.cpp

Reactor_Dispatch_Order_Test_SOURCES = Reactor_Dispatch_Order_Test.cpp Main.cpp

Reactor_Exceptions_Test_SOURCES = Reactor_Exceptions_Test.cpp Main.cpp

Reactor_Notify_Test_SOURCES = Reactor_Notify_Test.cpp Main.cpp

Reactor_Performance_Test_SOURCES = Reactor_Performance_Test.cpp \
                                   Reactor_Performance_Test.h \
                                   Main.cpp

Reactor_Timer_Test_SOURCES = Reactor_Timer_Test.cpp Main.cpp

Reactors_Test_SOURCES = Reactors_Test.cpp Main.cpp

Reader_Writer_Test_SOURCES = Reader_Writer_Test.cpp Main.cpp

Recursive_Condition_Test_SOURCES = Recursive_Condition_Test.cpp Main.cpp

Recursive_Mutex_Test_SOURCES = Recursive_Mutex_Test.cpp Main.cpp

Refcounted_Auto_Ptr_Test_SOURCES = Refcounted_Auto_Ptr_Test.cpp \
                                   Refcounted_Auto_Ptr_Test.h \
                                   Main.cpp

Reverse_Lock_Test_SOURCES = Reverse_Lock_Test.cpp Main.cpp

SOCK_Connector_Test_SOURCES = SOCK_Connector_Test.cpp Main.cpp

SOCK_Send_Recv_Test_SOURCES = SOCK_Send_Recv_Test.cpp Main.cpp

SOCK_Test_SOURCES = SOCK_Test.cpp Main.cpp

SPIPE_Test_SOURCES = SPIPE_Test.cpp Main.cpp

SString_Test_SOURCES = SString_Test.cpp Main.cpp

SV_Shared_Memory_Test_SOURCES = SV_Shared_Memory_Test.cpp Main.cpp

Semaphore_Test_SOURCES = Semaphore_Test.cpp Main.cpp

Service_Config_Test_SOURCES = Service_Config_Test.cpp Main.cpp
Service_Config_Test_DEPENDENCIES = libService_Config_DLL.la

Signal_Test_SOURCES = Signal_Test.cpp Main.cpp

Sigset_Ops_Test_SOURCES = Sigset_Ops_Test.cpp Main.cpp

Simple_Message_Block_Test_SOURCES = Simple_Message_Block_Test.cpp Main.cpp

Svc_Handler_Test_SOURCES = Svc_Handler_Test.cpp Main.cpp

TP_Reactor_Test_SOURCES = TP_Reactor_Test.cpp TP_Reactor_Test.h Main.cpp

TSS_Test_SOURCES = TSS_Test.cpp \
                   TSS_Test_Errno.h \
                   Main.cpp

Task_Test_SOURCES = Task_Test.cpp Main.cpp

Thread_Manager_Test_SOURCES = Thread_Manager_Test.cpp Main.cpp

Thread_Mutex_Test_SOURCES = Thread_Mutex_Test.cpp Main.cpp

Thread_Pool_Reactor_Test_SOURCES = Thread_Pool_Reactor_Test.cpp Main.cpp

Thread_Pool_Reactor_Resume_Test_SOURCES = Thread_Pool_Reactor_Resume_Test.cpp \
                                          Main.cpp

Thread_Pool_Test_SOURCES = Thread_Pool_Test.cpp Main.cpp

Time_Service_Test_SOURCES = Time_Service_Test.cpp Main.cpp

Time_Value_Test_SOURCES = Time_Value_Test.cpp Main.cpp

Timeprobe_Test_SOURCES = Timeprobe_Test.cpp Main.cpp

Timer_Queue_Test_SOURCES = Timer_Queue_Test.cpp Main.cpp

TkReactor_Test_SOURCES = TkReactor_Test.cpp Main.cpp

Token_Strategy_Test_SOURCES = Token_Strategy_Test.cpp Main.cpp

Tokens_Test_SOURCES = Tokens_Test.cpp Main.cpp

UPIPE_SAP_Test_SOURCES = UPIPE_SAP_Test.cpp Main.cpp

Upgradable_RW_Test_SOURCES = Upgradable_RW_Test.cpp \
                             Upgradable_RW_Test.h \
                             Main.cpp

Unbounded_Set_Test_Ex_SOURCES = Unbounded_Set_Test_Ex.cpp Main.cpp

Vector_Test_SOURCES = Vector_Test.cpp Main.cpp

XtReactor_Test_SOURCES = XtReactor_Test.cpp Main.cpp
XtReactor_Test_LDADD = $(top_builddir)/ace/libACE.la @XTREACTOR_TEST_XLIBS@

## Additional test header files
noinst_HEADERS = test_config.h

## Architecture independent data files
noinst_DATA = \
  run_test.lst \
  \
  Config_Test.ini \
  Config_Test_Import_1.ini \
  \
  TkReactor_Test.tcl \
  \
  Service_Config_Test.UTF-16.conf \
  Service_Config_Test.conf \
  UNIXserver.conf \
  UNIXclerk.conf \
  UNIXtokens.conf \
  Win32server.conf \
  Win32clerk.conf \
  Win32tokens.conf


## The tests we want to run are all of the test programs we are going to build.
## Do not run them if they are cross-compiled.
if ACE_CROSS_COMPILED
TESTS =
else
##TESTS = $(check_PROGRAMS)
TESTS = $(noinst_PROGRAMS)
endif

## Set up the test environment
##TESTS_ENVIRONMENT =

EXTRA_DIST = $(noinst_SCRIPTS) $(noinst_DATA)

##DISTCLEANFILES = \
##  ace_pipe_name pattern \
##  $(tmp)/ace_temp_file* \
##  $(tmp)/ace_test_file \
##  $(tmp)/Naming_Test*

## Automake recognized target.  Appends these rules to the "all"
## target.
all-local:
	for p in $(noinst_SCRIPTS) $(noinst_DATA); do \
	  test -f $$p \
	  || $(LN_S) $(top_srcdir)/tests/$$p $$p; done
	touch tests-link-stamp

## Clean up template repositories, etc.
clean-local:
	-rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core
	-rm -rf ptrepository Templates.DB gcctemp.c gcctemp so_locations

## Clean up files and directories created by this Makefile.
##   @todo Remove "bin" from the below list of files to remove.  It
##         exists simply to clean up existing workspaces that may
##         still have that link.  Also remove the "-f" option once
##         "bin" is removed since it won't be needed after doing so.
distclean-local:
	-test -f tests-link-stamp \
	   && rm -f $(noinst_SCRIPTS) $(noinst_DATA) tests-link-stamp bin
	-rm -rf log