summaryrefslogtreecommitdiff
path: root/test/Makefile.am
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-01-09 14:02:56 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-01-09 14:02:56 -0500
commit855ce449eba82c417c005d17aa680aba2048ed8d (patch)
tree9c9c5c9cdd30ed2dfbbdef820118124e891b6662 /test/Makefile.am
parent7ed87c74dfb81761cbcefc10cd4f79394a1d36a3 (diff)
device-nodes: move device node specific code to own file
In the process, rename udev_encode_string which is poorly named for what it does. It deals specifically with encoding names that udev creates and has its own rules: utf8 is valid but some ascii is not (e.g. path separators), and everything else is simply escaped. Rename it to encode_devnode_name. Adopted for eudev: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index a9c28c9316..f12ee20f04 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -9,7 +9,8 @@ AM_CPPFLAGS = \
noinst_PROGRAMS = \
test-libudev \
test-udev \
- test_utf8
+ test-utf8 \
+ test-device_nodes
test_libudev_SOURCES = \
test-libudev.c
@@ -40,6 +41,15 @@ test_utf8_CFLAGS = \
test_utf8_LDADD = \
$(top_builddir)/src/libudev/libudev-private.la
+test_device_nodes_SOURCES = \
+ test-device-nodes.c
+
+test_device_nodes_CFLAGS = \
+ $(AM_CFLAGS)
+
+test_device_nodes_LDADD = \
+ $(top_builddir)/src/libudev/libudev-private.la
+
if HAVE_LIBKMOD
test_udev_LDADD += $(KMOD_LIBS)
endif