diff options
author | Karel Zak | 2018-05-11 14:28:03 +0200 |
---|---|---|
committer | Karel Zak | 2018-06-21 12:56:16 +0200 |
commit | 5387c01517fef32144a17a52e284f8c97d773847 (patch) | |
tree | c5ace90af9e42abc5e6ba5eb1258ca557a83ba9b /lib/Makemodule.am | |
parent | lib/path: new implementation (diff) | |
download | kernel-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.am | 7 |
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 |