src/shared/audit.h \
src/shared/xml.c \
src/shared/xml.h \
- src/shared/condition.c \
- src/shared/condition.h \
src/shared/bus-label.c \
src/shared/bus-label.h \
src/shared/gpt.h \
libsystemd_shared_la_CFLAGS = \
$(AM_CFLAGS) \
+ $(CAP_CFLAGS) \
$(SECCOMP_CFLAGS) \
-pthread
+libsystemd_shared_la_LIBADD = \
+ $(CAP_LIBS)
+
# ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
libsystemd-units.la
src/shared/dev-setup.h \
src/shared/dropin.c \
src/shared/dropin.h \
+ src/shared/condition.c \
+ src/shared/condition.h \
src/shared/generator.h \
src/shared/generator.c
test-env-replace \
test-strbuf \
test-strv \
+ test-path \
test-path-util \
test-strxcpyx \
test-unit-name \
src/test/test-condition.c
test_condition_LDADD = \
- libsystemd-shared.la \
- libsystemd-internal.la \
+ libsystemd-label.la \
libsystemd-capability.la \
- libsystemd-label.la
+ libsystemd-internal.la \
+ libsystemd-shared.la
test_fdset_SOURCES = \
src/test/test-fdset.c
test_fdset_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la \
+ libsystemd-internal.la
test_ratelimit_SOURCES = \
src/test/test-ratelimit.c
test_util_LDADD = \
-lm \
- libsystemd-core.la
+ libsystemd-shared.la
test_uid_range_SOURCES = \
src/test/test-uid-range.c
test_uid_range_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_socket_util_SOURCES = \
src/test/test-socket-util.c
test_socket_util_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_ring_SOURCES = \
src/test/test-ring.c
test_ring_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_barrier_SOURCES = \
src/test/test-barrier.c
test_barrier_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_pty_SOURCES = \
src/test/test-pty.c
src/test/test-hashmap-plain.c
test_hashmap_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_set_SOURCES = \
src/test/test-set.c
test_set_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_xml_SOURCES = \
src/test/test-xml.c
test_list_SOURCES = \
src/test/test-list.c
+test_list_LDADD = \
+ libsystemd-shared.la
+
test_unaligned_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_unaligned_SOURCES = \
src/test/test-unaligned.c
-test_list_LDADD = \
- libsystemd-core.la
-
test_tables_SOURCES = \
src/test/test-tables.c \
src/shared/test-tables.h \
src/test/test-prioq.c
test_prioq_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_fileio_SOURCES = \
src/test/test-fileio.c
test_fileio_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_time_SOURCES = \
src/test/test-time.c
test_time_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_architecture_SOURCES = \
src/test/test-architecture.c
src/test/test-log.c
test_log_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_ipcrm_SOURCES = \
src/test/test-ipcrm.c
src/test/test-ellipsize.c
test_ellipsize_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_date_SOURCES = \
src/test/test-date.c
test_date_LDADD = \
- libsystemd-core.la
+ libsystemd-shared.la
test_sleep_SOURCES = \
src/test/test-sleep.c
src/test/test-cgroup-mask.c
test_cgroup_mask_CPPFLAGS = \
- $(AM_CPPFLAGS) \
- -DTEST_DIR=\"$(abs_top_srcdir)/test\"
+ $(AM_CPPFLAGS)
test_cgroup_mask_CFLAGS = \
$(AM_CFLAGS) \
test_path_util_LDADD = \
libsystemd-shared.la
+test_path_SOURCES = \
+ src/test/test-path.c
+
+test_path_CFLAGS = \
+ $(AM_CFLAGS)
+
+test_path_LDADD = \
+ libsystemd-core.la
+
test_strxcpyx_SOURCES = \
src/test/test-strxcpyx.c
src/test/test-sched-prio.c
test_sched_prio_CPPFLAGS = \
- $(AM_CPPFLAGS) \
- -DTEST_DIR=\"$(abs_top_srcdir)/test\"
+ $(AM_CPPFLAGS)
test_sched_prio_CFLAGS = \
$(AM_CFLAGS) \
$(MKDIR_P) $(coverage_dir)
lcov $(coverage_opts) --compat-libtool --capture --no-external \
| sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
- genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
+ lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
+ genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
@echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
# lcov doesn't work properly with vpath builds, make sure that bad
$(LIBCURL_CFLAGS)
systemd_journal_upload_LDADD = \
- libsystemd-core.la \
libsystemd-internal.la \
libsystemd-journal-internal.la \
libsystemd-shared.la \