summaryrefslogtreecommitdiffstats
path: root/lib/Makemodule.am
diff options
context:
space:
mode:
authorKarel Zak2018-05-11 14:28:03 +0200
committerKarel Zak2018-06-21 12:56:16 +0200
commit5387c01517fef32144a17a52e284f8c97d773847 (patch)
treec5ace90af9e42abc5e6ba5eb1258ca557a83ba9b /lib/Makemodule.am
parentlib/path: new implementation (diff)
downloadkernel-qcow2-util-linux-5387c01517fef32144a17a52e284f8c97d773847.tar.gz
kernel-qcow2-util-linux-5387c01517fef32144a17a52e284f8c97d773847.tar.xz
kernel-qcow2-util-linux-5387c01517fef32144a17a52e284f8c97d773847.zip
lib/sysfs: new implementation
* reuse ul_path_* API * allow to use prefix for sysfs paths, so we can use snapshots from sysfs for regression tests Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/Makemodule.am')
-rw-r--r--lib/Makemodule.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Makemodule.am b/lib/Makemodule.am
index 2081ac927..13b19f151 100644
--- a/lib/Makemodule.am
+++ b/lib/Makemodule.am
@@ -143,9 +143,12 @@ if LINUX
test_cpuset_SOURCES = lib/cpuset.c
test_cpuset_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_CPUSET
-test_sysfs_SOURCES = lib/sysfs.c
+test_sysfs_SOURCES = lib/sysfs.c lib/path.c lib/fileutils.c
+if HAVE_CPU_SET_T
+test_sysfs_SOURCES += lib/cpuset.c
+endif
test_sysfs_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_SYSFS
-test_sysfs_LDADD = $(LDADD) libcommon.la
+test_sysfs_LDADD = $(LDADD)
test_pager_SOURCES = lib/pager.c
test_pager_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_PAGER