test: add test to convert name to path

If we create a kmod_module from a name, the path returned is relative to
the module dirname, as passed during kmod_ctx creation. Note that if
kmod_ctx is created with kmod_new(NULL), the dir used is the one
returned by uname.
diff --git a/Makefile.am b/Makefile.am
index 950da23..f4ed47b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -58,7 +58,7 @@
 test_test_loaded_LDADD = libkmod/libkmod.la
 
 noinst_PROGRAMS = test/test-insmod test/test-rmmod test/test-rmmod2 \
-		  test/test-lookup $(check_PROGRAMS)
+		  test/test-lookup test/test-path-from-name $(check_PROGRAMS)
 test_test_rmmod_SOURCES = test/test-rmmod.c
 test_test_rmmod_LDADD = libkmod/libkmod.la
 
@@ -70,3 +70,6 @@
 
 test_test_lookup_SOURCES = test/test-lookup.c
 test_test_lookup_LDADD = libkmod/libkmod.la
+
+test_test_path_from_name_SOURCES = test/test-path-from-name.c
+test_test_path_from_name_LDADD = libkmod/libkmod.la