@@ -54,37 +54,6 @@ AM_CFLAGS = $(PTHREAD_CFLAGS)
54
54
check_LTLIBRARIES = libtest.la
55
55
libtest_la_SOURCES = cmockery.c cmockery.h schema.h test.c test.h
56
56
57
- libtest_la_LIBADD = ../../libntech/libcompat/libcompat.la
58
-
59
-
60
- check_LTLIBRARIES += libdb.la
61
- libdb_la_SOURCES = db_stubs.c \
62
- ../../libpromises/dbm_api.c \
63
- ../../libpromises/dbm_quick.c \
64
- ../../libpromises/dbm_tokyocab.c \
65
- ../../libpromises/dbm_lmdb.c \
66
- ../../libpromises/dbm_migration.c \
67
- ../../libpromises/dbm_migration_lastseen.c \
68
- ../../libpromises/global_mutex.c \
69
- ../../cf-check/backup.c \
70
- ../../cf-check/diagnose.c \
71
- ../../cf-check/lmdump.c \
72
- ../../cf-check/repair.c \
73
- ../../cf-check/replicate_lmdb.c \
74
- ../../cf-check/utilities.c \
75
- ../../cf-check/validate.c \
76
- ../../libntech/libutils/logging.c \
77
- ../../libntech/libutils/mutex.c \
78
- ../../libntech/libutils/cleanup.c
79
- if HPUX
80
- libdb_la_SOURCES += ../../libpromises/cf3globals.c
81
- endif
82
- libdb_la_LIBADD = ../../libntech/libutils/libutils.la
83
- # libdb_la_CPPFLAGS = $(LMDB_CPPFLAGS) $(TOKYOCABINET_CPPFLAGS) $(QDBM_CPPFLAGS)
84
- # Make sure that source files are compiled to separate object files
85
- # libdb_la-file.o
86
- libdb_la_CFLAGS = $(AM_CFLAGS )
87
-
88
57
check_PROGRAMS = \
89
58
processes_select_test \
90
59
arg_split_test \
@@ -216,33 +185,15 @@ set_domainname_test_LDADD = libtest.la ../../libpromises/libpromises.la
216
185
217
186
regex_test_SOURCES = regex_test.c ../../libpromises/match_scope.c
218
187
219
- protocol_test_SOURCES = protocol_test.c \
220
- ../../cf-serverd/server_common.c \
221
- ../../cf-serverd/server_tls.c \
222
- ../../cf-serverd/server.c \
223
- ../../cf-serverd/cf-serverd-enterprise-stubs.c \
224
- ../../cf-serverd/server_transform.c \
225
- ../../cf-serverd/cf-serverd-functions.c \
226
- ../../cf-serverd/server_access.c \
227
- ../../cf-serverd/strlist.c
228
- protocol_test_LDADD = ../../libpromises/libpromises.la libtest.la
188
+ protocol_test_SOURCES = protocol_test.c
189
+ protocol_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-serverd/libcf-serverd.la
229
190
230
191
if HAVE_AVAHI_CLIENT
231
192
if HAVE_AVAHI_COMMON
232
193
233
- findhub_test_SOURCES = findhub_test.c \
234
- ../../cf-agent/findhub.c \
235
- ../../cf-agent/load_avahi.c
236
-
237
- avahi_config_test_SOURCES = avahi_config_test.c \
238
- ../../cf-serverd/server_common.c \
239
- ../../cf-serverd/server_tls.c \
240
- ../../cf-serverd/server.c \
241
- ../../cf-serverd/server_transform.c \
242
- ../../cf-serverd/cf-serverd-enterprise-stubs.c \
243
- ../../cf-serverd/server_access.c \
244
- ../../cf-serverd/server_classic.c \
245
- ../../cf-serverd/strlist.c
194
+ findhub_test_SOURCES = findhub_test.c
195
+
196
+ avahi_config_test_SOURCES = avahi_config_test.c
246
197
avahi_config_test_LDADD = ../../libpromises/libpromises.la libtest.la
247
198
248
199
endif
@@ -252,31 +203,18 @@ db_test_SOURCES = db_test.c
252
203
db_test_LDADD = libtest.la ../../libpromises/libpromises.la
253
204
254
205
db_concurrent_test_SOURCES = db_concurrent_test.c
255
- # db_concurrent_test_CPPFLAGS = $(libdb_la_CPPFLAGS)
256
- db_concurrent_test_LDADD = libtest.la libdb.la
206
+ db_concurrent_test_LDADD = libtest.la ../../libpromises/libpromises.la
257
207
258
- lastseen_test_SOURCES = lastseen_test.c \
259
- ../../libntech/libutils/statistics.c
260
- # lastseen_test_CPPFLAGS = $(libdb_la_CPPFLAGS)
208
+ lastseen_test_SOURCES = lastseen_test.c
261
209
lastseen_test_LDADD = libtest.la ../../libpromises/libpromises.la
262
210
263
211
lastseen_migration_test_SOURCES = lastseen_migration_test.c
264
- # lastseen_migration_test_CPPFLAGS = $(libdb_la_CPPFLAGS)
265
212
lastseen_migration_test_LDADD = ../../libpromises/libpromises.la
266
213
267
214
CLEANFILES = *.gcno *.gcda cfengine-enterprise.so
268
215
269
- package_versions_compare_test_SOURCES = package_versions_compare_test.c \
270
- ../../cf-agent/package_module.c \
271
- ../../cf-agent/verify_packages.c \
272
- ../../cf-agent/verify_new_packages.c \
273
- ../../cf-agent/vercmp.c \
274
- ../../cf-agent/vercmp_internal.c \
275
- ../../cf-agent/retcode.c \
276
- ../../libpromises/match_scope.c
277
-
278
- # package_versions_compare_test_CPPFLAGS = $(AM_CPPFLAGS)
279
- package_versions_compare_test_LDADD = ../../libpromises/libpromises.la \
216
+ package_versions_compare_test_SOURCES = package_versions_compare_test.c
217
+ package_versions_compare_test_LDADD = ../../cf-agent/libcf-agent.la ../../libpromises/libpromises.la \
280
218
libtest.la
281
219
282
220
files_copy_test_SOURCES = files_copy_test.c
@@ -285,15 +223,10 @@ files_copy_test_LDADD = libtest.la ../../libpromises/libpromises.la
285
223
sort_test_SOURCES = sort_test.c
286
224
sort_test_LDADD = libtest.la ../../libpromises/libpromises.la
287
225
288
- logging_test_SOURCES = logging_test.c \
289
- ../../libpromises/syslog_client.c \
290
- ../../libpromises/patches.c \
291
- ../../libpromises/constants.c
292
- logging_test_LDADD = libtest.la ../../libntech/libutils/libutils.la
226
+ logging_test_SOURCES = logging_test.c
227
+ logging_test_LDADD = libtest.la ../../libpromises/libpromises.la
293
228
294
- connection_management_test_SOURCES = connection_management_test.c \
295
- ../../cf-serverd/server_common.c \
296
- ../../cf-serverd/server_tls.c
229
+ connection_management_test_SOURCES = connection_management_test.c
297
230
connection_management_test_LDADD = ../../libpromises/libpromises.la \
298
231
libtest.la \
299
232
../../cf-serverd/libcf-serverd.la
@@ -310,11 +243,8 @@ if LINUX
310
243
311
244
check_PROGRAMS += linux_process_test
312
245
313
- linux_process_test_SOURCES = linux_process_test.c \
314
- ../../libpromises/process_unix.c \
315
- ../../libpromises/process_linux.c \
316
- ../../libntech/libutils/file_lib.c
317
- linux_process_test_LDADD = libtest.la ../../libntech/libutils/libutils.la
246
+ linux_process_test_SOURCES = linux_process_test.c
247
+ linux_process_test_LDADD = libtest.la ../../libpromises/libpromises.la
318
248
319
249
endif
320
250
@@ -325,79 +255,63 @@ check_PROGRAMS += aix_process_test
325
255
# because they provide dummy versions of some standard functions.
326
256
set_domainname_test_LDFLAGS = -Wl,-bexpall
327
257
evalfunction_test_LDFLAGS = -Wl,-bexpall
328
- aix_process_test_SOURCES = aix_process_test.c \
329
- ../../libpromises/process_unix.c \
330
- ../../libpromises/process_aix.c \
331
- ../../libntech/libutils/file_lib.c
332
- aix_process_test_LDADD = libtest.la ../../libntech/libutils/libutils.la
258
+ aix_process_test_SOURCES = aix_process_test.c
259
+ aix_process_test_LDADD = libtest.la ../../libpromises/libpromises.la
333
260
334
261
endif
335
262
336
263
if SOLARIS
337
264
338
265
check_PROGRAMS += solaris_process_test
339
266
340
- solaris_process_test_SOURCES = solaris_process_test.c \
341
- ../../libpromises/process_unix.c \
342
- ../../libpromises/process_solaris.c \
343
- ../../libntech/libutils/file_lib.c
344
- solaris_process_test_LDADD = libtest.la ../../libntech/libutils/libutils.la
267
+ solaris_process_test_SOURCES = solaris_process_test.c
268
+ solaris_process_test_LDADD = libtest.la ../../libpromises/libpromises.la
345
269
346
270
endif
347
271
348
- process_terminate_unix_test_SOURCES = process_terminate_unix_test.c \
349
- ../../libpromises/process_unix.c
350
- process_terminate_unix_test_LDADD = libtest.la ../../libntech/libutils/libutils.la
272
+ process_terminate_unix_test_SOURCES = process_terminate_unix_test.c
273
+ process_terminate_unix_test_LDADD = libtest.la ../../libpromises/libpromises.la
351
274
352
- exec_config_test_SOURCES = exec-config-test.c \
353
- ../../cf-execd/exec-config.c ../../cf-execd/execd-config.c
354
- exec_config_test_LDADD = libtest.la ../../libpromises/libpromises.la
275
+ exec_config_test_SOURCES = exec-config-test.c
276
+ exec_config_test_LDADD = libtest.la ../../libpromises/libpromises.la ../../cf-execd/libcf-execd.la
355
277
356
278
sysinfo_test_LDADD = libtest.la \
357
279
../../libenv/libenv.la \
358
280
../../libpromises/libpromises.la
359
281
360
- mon_cpu_test_SOURCES = mon_cpu_test.c \
361
- ../../cf-monitord/mon.h \
362
- ../../cf-monitord/mon_cpu.c
363
- mon_cpu_test_LDADD = ../../libpromises/libpromises.la libtest.la
282
+ mon_cpu_test_SOURCES = mon_cpu_test.c
283
+ mon_cpu_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-monitord/libcf-monitord.la
364
284
365
- mon_load_test_SOURCES = mon_load_test.c \
366
- ../../cf-monitord/mon.h \
367
- ../../cf-monitord/mon_load.c
368
- mon_load_test_LDADD = ../../libpromises/libpromises.la libtest.la
285
+ mon_load_test_SOURCES = mon_load_test.c
286
+ mon_load_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-monitord/libcf-monitord.la
369
287
370
- mon_processes_test_SOURCES = mon_processes_test.c \
371
- ../../cf-monitord/mon.h \
372
- ../../cf-monitord/mon_processes.c
373
- mon_processes_test_LDADD = ../../libpromises/libpromises.la libtest.la
288
+ mon_processes_test_SOURCES = mon_processes_test.c
289
+ mon_processes_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-monitord/libcf-monitord.la
374
290
375
291
key_test_SOURCES = key_test.c
376
292
key_test_LDADD = ../../libpromises/libpromises.la \
377
- ../../libntech/libutils/libutils.la \
378
293
libtest.la
379
294
380
- strlist_test_SOURCES = strlist_test.c \
381
- ../../cf-serverd/strlist.c \
382
- ../../cf-serverd/strlist.h
295
+ strlist_test_SOURCES = strlist_test.c
296
+ strlist_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-serverd/libcf-serverd.la
383
297
384
298
verify_databases_test_LDADD = ../../cf-agent/libcf-agent.la libtest.la
385
299
386
300
iteration_test_SOURCES = iteration_test.c
387
301
388
302
cf_upgrade_test_SOURCES = cf_upgrade_test.c \
389
- ../../cf-upgrade/alloc-mini.c \
390
- ../../cf-upgrade/alloc-mini.h \
391
- ../../cf-upgrade/command_line.c \
392
- ../../cf-upgrade/command_line.h \
393
- ../../cf-upgrade/configuration.c \
394
- ../../cf-upgrade/configuration.h \
395
- ../../cf-upgrade/log.c ../../cf-upgrade/log.h \
396
- ../../cf-upgrade/process.c ../../cf-upgrade/process.h \
397
- ../../cf-upgrade/update.c \
398
- ../../cf-upgrade/update.h
303
+ - ../../cf-upgrade/alloc-mini.c \
304
+ - ../../cf-upgrade/alloc-mini.h \
305
+ - ../../cf-upgrade/command_line.c \
306
+ - ../../cf-upgrade/command_line.h \
307
+ - ../../cf-upgrade/configuration.c \
308
+ - ../../cf-upgrade/configuration.h \
309
+ - ../../cf-upgrade/log.c ../../cf-upgrade/log.h \
310
+ - ../../cf-upgrade/process.c ../../cf-upgrade/process.h \
311
+ - ../../cf-upgrade/update.c \
312
+ - ../../cf-upgrade/update.h
399
313
cf_upgrade_test_CPPFLAGS = -I../../cf-upgrade -I../../libntech/libutils -I../../
400
- cf_upgrade_test_LDADD = libtest.la ../../libntech/libcompat/libcompat .la
314
+ cf_upgrade_test_LDADD = libtest.la ../../libpromises/libpromises .la
401
315
402
316
if !NT
403
317
check_PROGRAMS += nfs_test
0 commit comments