| if BUILD_LIBSMARTCOLS | |
| if !OSS_FUZZ | |
| check_PROGRAMS += test_scols_termreduce | |
| test_scols_termreduce_SOURCES = tests/helpers/test_scols_termreduce.c | |
| test_scols_termreduce_LDADD = $(LDADD) libsmartcols.la | |
| endif | |
| endif | |
| check_PROGRAMS += test_mbsencode | |
| test_mbsencode_SOURCES = tests/helpers/test_mbsencode.c | |
| test_mbsencode_LDADD = $(LDADD) libcommon.la | |
| check_PROGRAMS += test_byteswap | |
| test_byteswap_SOURCES = tests/helpers/test_byteswap.c | |
| check_PROGRAMS += test_md5 | |
| test_md5_SOURCES = tests/helpers/test_md5.c lib/md5.c | |
| check_PROGRAMS += test_sha1 | |
| test_sha1_SOURCES = tests/helpers/test_sha1.c lib/sha1.c | |
| check_PROGRAMS += test_pathnames | |
| test_pathnames_SOURCES = tests/helpers/test_pathnames.c | |
| check_PROGRAMS += test_strerror | |
| test_strerror_SOURCES = tests/helpers/test_strerror.c | |
| check_PROGRAMS += test_sysinfo | |
| test_sysinfo_SOURCES = tests/helpers/test_sysinfo.c | |
| check_PROGRAMS += test_sigreceive | |
| test_sigreceive_SOURCES = tests/helpers/test_sigreceive.c | |
| test_sigreceive_LDADD = $(LDADD) libcommon.la | |
| check_PROGRAMS += test_sigstate | |
| test_sigstate_SOURCES = tests/helpers/test_sigstate.c | |
| test_sigstate_LDADD = $(LDADD) libcommon.la | |
| check_PROGRAMS += test_tiocsti | |
| test_tiocsti_SOURCES = tests/helpers/test_tiocsti.c | |
| check_PROGRAMS += test_uuid_namespace | |
| test_uuid_namespace_SOURCES = tests/helpers/test_uuid_namespace.c \ | |
| libuuid/src/predefined.c libuuid/src/unpack.c libuuid/src/unparse.c | |
| check_PROGRAMS += test_kill_pidfdino | |
| test_kill_pidfdino_SOURCES = tests/helpers/test_kill_pidfdino.c | |
| test_kill_pidfdino_LDADD = $(LDADD) libcommon.la | |
| if LINUX | |
| if !OSS_FUZZ | |
| check_PROGRAMS += test_mkfds | |
| test_mkfds_SOURCES = tests/helpers/test_mkfds.c tests/helpers/test_mkfds.h \ | |
| tests/helpers/test_mkfds_ppoll.c | |
| test_mkfds_LDFLAGS = -static | |
| test_mkfds_LDADD = $(LDADD) $(MQ_LIBS) libsmartcols.la | |
| test_mkfds_CFLAGS = $(AM_CFLAGS) -I$(ul_libsmartcols_incdir) | |
| if HAVE_FUSE | |
| test_mkfds_SOURCES += tests/helpers/test_mkfds_hungfs.c | |
| test_mkfds_LDADD += $(FUSE_LIBS) | |
| test_mkfds_CFLAGS += $(FUSE_CFLAGS) | |
| endif | |
| endif | |
| check_PROGRAMS += test_enosys | |
| test_enosys_SOURCES = tests/helpers/test_enosys.c | |
| endif | |
| if HAVE_CAP_NG | |
| check_PROGRAMS += test_cap | |
| test_cap_SOURCES = tests/helpers/test_cap.c | |
| test_cap_LDADD = $(CAP_NG_LIBS) | |
| endif | |
| check_PROGRAMS += test_open_twice | |
| test_open_twice_SOURCES = tests/helpers/test_open_twice.c | |
| check_PROGRAMS += test_threads_create | |
| test_threads_create_SOURCES = tests/helpers/test_threads_create.c | |
| test_threads_create_LDADD = $(LDADD) libcommon.la $(PTHREAD_LIBS) | |
| if HAVE_SYS_PRCTL_H | |
| check_PROGRAMS += test_child_create | |
| test_child_create_SOURCES = tests/helpers/test_child_create.c | |
| test_child_create_LDADD = $(LDADD) libcommon.la | |
| endif |