@@ -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
@@ -255,8 +206,7 @@ db_concurrent_test_SOURCES = db_concurrent_test.c
255
206
# db_concurrent_test_CPPFLAGS = $(libdb_la_CPPFLAGS)
256
207
db_concurrent_test_LDADD = libtest.la libdb.la
257
208
258
- lastseen_test_SOURCES = lastseen_test.c \
259
- ../../libntech/libutils/statistics.c
209
+ lastseen_test_SOURCES = lastseen_test.c
260
210
# lastseen_test_CPPFLAGS = $(libdb_la_CPPFLAGS)
261
211
lastseen_test_LDADD = libtest.la ../../libpromises/libpromises.la
262
212
@@ -266,17 +216,8 @@ lastseen_migration_test_LDADD = ../../libpromises/libpromises.la
266
216
267
217
CLEANFILES = *.gcno *.gcda cfengine-enterprise.so
268
218
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 \
219
+ package_versions_compare_test_SOURCES = package_versions_compare_test.c
220
+ package_versions_compare_test_LDADD = ../../cf-agent/libcf-agent.la ../../libpromises/libpromises.la \
280
221
libtest.la
281
222
282
223
files_copy_test_SOURCES = files_copy_test.c
@@ -285,15 +226,10 @@ files_copy_test_LDADD = libtest.la ../../libpromises/libpromises.la
285
226
sort_test_SOURCES = sort_test.c
286
227
sort_test_LDADD = libtest.la ../../libpromises/libpromises.la
287
228
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
229
+ logging_test_SOURCES = logging_test.c
230
+ logging_test_LDADD = libtest.la ../../libpromises/libpromises.la
293
231
294
- connection_management_test_SOURCES = connection_management_test.c \
295
- ../../cf-serverd/server_common.c \
296
- ../../cf-serverd/server_tls.c
232
+ connection_management_test_SOURCES = connection_management_test.c
297
233
connection_management_test_LDADD = ../../libpromises/libpromises.la \
298
234
libtest.la \
299
235
../../cf-serverd/libcf-serverd.la
@@ -310,11 +246,8 @@ if LINUX
310
246
311
247
check_PROGRAMS += linux_process_test
312
248
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
249
+ linux_process_test_SOURCES = linux_process_test.c
250
+ linux_process_test_LDADD = libtest.la ../../libpromises/libpromises.la
318
251
319
252
endif
320
253
@@ -325,79 +258,63 @@ check_PROGRAMS += aix_process_test
325
258
# because they provide dummy versions of some standard functions.
326
259
set_domainname_test_LDFLAGS = -Wl,-bexpall
327
260
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
261
+ aix_process_test_SOURCES = aix_process_test.c
262
+ aix_process_test_LDADD = libtest.la ../../libpromises/libpromises.la
333
263
334
264
endif
335
265
336
266
if SOLARIS
337
267
338
268
check_PROGRAMS += solaris_process_test
339
269
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
270
+ solaris_process_test_SOURCES = solaris_process_test.c
271
+ solaris_process_test_LDADD = libtest.la ../../libpromises/libpromises.la
345
272
346
273
endif
347
274
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
275
+ process_terminate_unix_test_SOURCES = process_terminate_unix_test.c
276
+ process_terminate_unix_test_LDADD = libtest.la ../../libpromises/libpromises.la
351
277
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
278
+ exec_config_test_SOURCES = exec-config-test.c
279
+ exec_config_test_LDADD = libtest.la ../../libpromises/libpromises.la ../../cf-execd/libcf-execd.la
355
280
356
281
sysinfo_test_LDADD = libtest.la \
357
282
../../libenv/libenv.la \
358
283
../../libpromises/libpromises.la
359
284
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
285
+ mon_cpu_test_SOURCES = mon_cpu_test.c
286
+ mon_cpu_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-monitord/libcf-monitord.la
364
287
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
288
+ mon_load_test_SOURCES = mon_load_test.c
289
+ mon_load_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-monitord/libcf-monitord.la
369
290
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
291
+ mon_processes_test_SOURCES = mon_processes_test.c
292
+ mon_processes_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-monitord/libcf-monitord.la
374
293
375
294
key_test_SOURCES = key_test.c
376
295
key_test_LDADD = ../../libpromises/libpromises.la \
377
- ../../libntech/libutils/libutils.la \
378
296
libtest.la
379
297
380
- strlist_test_SOURCES = strlist_test.c \
381
- ../../cf-serverd/strlist.c \
382
- ../../cf-serverd/strlist.h
298
+ strlist_test_SOURCES = strlist_test.c
299
+ strlist_test_LDADD = ../../libpromises/libpromises.la libtest.la ../../cf-serverd/libcf-serverd.la
383
300
384
301
verify_databases_test_LDADD = ../../cf-agent/libcf-agent.la libtest.la
385
302
386
303
iteration_test_SOURCES = iteration_test.c
387
304
388
305
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
306
+ - ../../cf-upgrade/alloc-mini.c \
307
+ - ../../cf-upgrade/alloc-mini.h \
308
+ - ../../cf-upgrade/command_line.c \
309
+ - ../../cf-upgrade/command_line.h \
310
+ - ../../cf-upgrade/configuration.c \
311
+ - ../../cf-upgrade/configuration.h \
312
+ - ../../cf-upgrade/log.c ../../cf-upgrade/log.h \
313
+ - ../../cf-upgrade/process.c ../../cf-upgrade/process.h \
314
+ - ../../cf-upgrade/update.c \
315
+ - ../../cf-upgrade/update.h
399
316
cf_upgrade_test_CPPFLAGS = -I../../cf-upgrade -I../../libntech/libutils -I../../
400
- cf_upgrade_test_LDADD = libtest.la ../../libntech/libcompat/libcompat .la
317
+ cf_upgrade_test_LDADD = libtest.la ../../libpromises/libpromises .la
401
318
402
319
if !NT
403
320
check_PROGRAMS += nfs_test
0 commit comments