summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: fcc11f677b0da9ceb146d1b9a7dd7a7f8f3c7ce0 (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
##----------------------------------------------------------------------------
##       $Id$
##
##       Makefile.am for all the ACE ``one-button'' tests
##----------------------------------------------------------------------------

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

## The number in AUTOMAKE_OPTIONS is the minimum required version automake
## needed to process this file.
AUTOMAKE_OPTIONS = 1.4

## 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)

## 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
##LIBS = $(top_builddir)/ace/libACE.la

noinst_SCRIPTS = run_tests.sh \
                 run_tests.psosim \
                 run_tests.check \
                 run_tests.vxworks \
                 run_tests.bat

if COMPILE_XTREACTOR_TEST
XTREACTOR_TEST = XtReactor_Test
else
XTREACTOR_TEST = 
endif

## Build the shared library needed for the DLL_Test
noinst_LTLIBRARIES = libDLL_Test.la
libDLL_Test_la_LDFLAGS = -module
libDLL_Test_la_SOURCES = $(DLL_Test_SOURCES)

## Build the following test programs when a `make check' is
## issued by the user.
check_PROGRAMS = \
        Aio_Platform_Test \
        Atomic_Op_Test \
        Barrier_Test \
        Basic_Types_Test \
        Buffer_Stream_Test \
        CDR_Test \
        Collection_Test \
        Conn_Test \
        DLL_Test \
        DLList_Test \
        Dynamic_Priority_Test \
        Enum_Interfaces_Test \
        Env_Value_Test \
        Future_Test \
        Handle_Set_Test \
        Hash_Map_Manager_Test \
        High_Res_Timer_Test \
        IOStream_Test \
        MM_Shared_Memory_Test \
        MT_Reactor_Timer_Test \
        MT_SOCK_Test \
        Map_Manager_Test \
        Map_Test \
        Mem_Map_Test \
        Message_Block_Test \
        Message_Queue_Notifications_Test \
        Message_Queue_Test \
        Naming_Test \
        New_Fail_Test \
        Notify_Performance_Test \
        OrdMultiSet_Test \
        Pipe_Test \
        Priority_Buffer_Test \
        Priority_Reactor_Test \
        Priority_Task_Test \
        Process_Mutex_Test \
        Process_Strategy_Test \
        RB_Tree_Test \
        Reactor_Exceptions_Test \
        Reactor_Notify_Test \
        Reactor_Performance_Test \
        Reactor_Timer_Test \
        Reactors_Test \
        Reader_Writer_Test \
        Recursive_Mutex_Test \
        Reverse_Lock_Test \
        SOCK_Connector_Test \
        SOCK_Test \
        SPIPE_Test \
        SString_Test \
        SV_Shared_Memory_Test \
        Semaphore_Test \
        Service_Config_Test \
        Sigset_Ops_Test \
        Simple_Message_Block_Test \
        TSS_Test \
        Task_Test \
        Thread_Manager_Test \
        Thread_Mutex_Test \
        Thread_Pool_Reactor_Test \
        Thread_Pool_Test \
        Time_Service_Test \
        Time_Value_Test \
        Timeprobe_Test \
        Timer_Queue_Test \
        Tokens_Test \
        UPIPE_SAP_Test \
        Upgradable_RW_Test $(XTREACTOR_TEST)

Aio_Platform_Test_SOURCES = Aio_Platform_Test.cpp

Atomic_Op_Test_SOURCES = Atomic_Op_Test.cpp

Barrier_Test_SOURCES = Barrier_Test.cpp

Basic_Types_Test_SOURCES = Basic_Types_Test.cpp

Buffer_Stream_Test_SOURCES = Buffer_Stream_Test.cpp

CDR_Test_SOURCES = CDR_Test.cpp

# Cache_Manager_Test_SOURCES = Cache_Manager_Test.cpp

Collection_Test_SOURCES = Collection_Test.cpp

Conn_Test_SOURCES = Conn_Test.cpp Conn_Test.h

DLL_Test_SOURCES = DLL_Test.cpp DLL_Test.h

DLList_Test_SOURCES = DLList_Test.cpp

Dynamic_Priority_Test_SOURCES = Dynamic_Priority_Test.cpp

Enum_Interfaces_Test_SOURCES = Enum_Interfaces_Test.cpp

Env_Value_Test_SOURCES = Env_Value_Test.cpp

Future_Test_SOURCES = Future_Test.cpp

Handle_Set_Test_SOURCES = Handle_Set_Test.cpp

Hash_Map_Manager_Test_SOURCES = Hash_Map_Manager_Test.cpp

High_Res_Timer_Test_SOURCES = High_Res_Timer_Test.cpp

IOStream_Test_SOURCES = IOStream_Test.cpp

MM_Shared_Memory_Test_SOURCES = MM_Shared_Memory_Test.cpp

MT_Reactor_Timer_Test_SOURCES = MT_Reactor_Timer_Test.cpp \
                                MT_Reactor_Timer_Test.h

MT_SOCK_Test_SOURCES = MT_SOCK_Test.cpp

Map_Manager_Test_SOURCES = Map_Manager_Test.cpp

Map_Test_SOURCES = Map_Test.cpp Map_Test.h

Mem_Map_Test_SOURCES = Mem_Map_Test.cpp

Message_Block_Test_SOURCES = Message_Block_Test.cpp

Message_Queue_Notifications_Test_SOURCES = Message_Queue_Notifications_Test.cpp

Message_Queue_Test_SOURCES = Message_Queue_Test.cpp

Naming_Test_SOURCES = Naming_Test.cpp

New_Fail_Test_SOURCES = New_Fail_Test.cpp

Notify_Performance_Test_SOURCES = Notify_Performance_Test.cpp

OrdMultiSet_Test_SOURCES = OrdMultiSet_Test.cpp

Pipe_Test_SOURCES = Pipe_Test.cpp

Priority_Buffer_Test_SOURCES = Priority_Buffer_Test.cpp

Priority_Reactor_Test_SOURCES = Priority_Reactor_Test.cpp \
                                Priority_Reactor_Test.h

Priority_Task_Test_SOURCES = Priority_Task_Test.cpp

Process_Mutex_Test_SOURCES = Process_Mutex_Test.cpp

Process_Strategy_Test_SOURCES = Process_Strategy_Test.cpp \
                                Process_Strategy_Test.h

# Purgable_Map_Manager_Test_SOURCES = Purgable_Map_Manager_Test.cpp

RB_Tree_Test_SOURCES = RB_Tree_Test.cpp

Reactor_Exceptions_Test_SOURCES = Reactor_Exceptions_Test.cpp

Reactor_Notify_Test_SOURCES = Reactor_Notify_Test.cpp

Reactor_Performance_Test_SOURCES = Reactor_Performance_Test.cpp \
                                   Reactor_Performance_Test.h

Reactor_Timer_Test_SOURCES = Reactor_Timer_Test.cpp

Reactors_Test_SOURCES = Reactors_Test.cpp

Reader_Writer_Test_SOURCES = Reader_Writer_Test.cpp

Recursive_Mutex_Test_SOURCES = Recursive_Mutex_Test.cpp

Reverse_Lock_Test_SOURCES = Reverse_Lock_Test.cpp

SOCK_Connector_Test_SOURCES = SOCK_Connector_Test.cpp

SOCK_Test_SOURCES = SOCK_Test.cpp

SPIPE_Test_SOURCES = SPIPE_Test.cpp

SString_Test_SOURCES = SString_Test.cpp

SV_Shared_Memory_Test_SOURCES = SV_Shared_Memory_Test.cpp

Semaphore_Test_SOURCES = Semaphore_Test.cpp

Service_Config_Test_SOURCES = Service_Config_Test.cpp

Sigset_Ops_Test_SOURCES = Sigset_Ops_Test.cpp

Simple_Message_Block_Test_SOURCES = Simple_Message_Block_Test.cpp

TSS_Test_SOURCES = TSS_Test.cpp \
                   TSS_Test_Errno.h

Task_Test_SOURCES = Task_Test.cpp

Thread_Manager_Test_SOURCES = Thread_Manager_Test.cpp \
                              Thread_Manager_Test.h

Thread_Mutex_Test_SOURCES = Thread_Mutex_Test.cpp

Thread_Pool_Reactor_Test_SOURCES = Thread_Pool_Reactor_Test.cpp \
                                   Thread_Pool_Reactor_Test.h

Thread_Pool_Test_SOURCES = Thread_Pool_Test.cpp

Time_Service_Test_SOURCES = Time_Service_Test.cpp

Time_Value_Test_SOURCES = Time_Value_Test.cpp

Timeprobe_Test_SOURCES = Timeprobe_Test.cpp

Timer_Queue_Test_SOURCES = Timer_Queue_Test.cpp

Tokens_Test_SOURCES = Tokens_Test.cpp

UPIPE_SAP_Test_SOURCES = UPIPE_SAP_Test.cpp

Upgradable_RW_Test_SOURCES = Upgradable_RW_Test.cpp \
                             Upgradable_RW_Test.h

XtReactor_Test_SOURCES = XtReactor_Test.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 = 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 = $(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*

## Run local targets
## all-local: log_dir

## Create tests `log' directory
## log_dir:
## 	if test -d log; then : else mkdir log; fi

## 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 `log' directory , etc.
distclean-local:
	-rm -rf log