]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: Warn if sysconfdir is not /etc
authorMichal Marek <mmarek@suse.cz>
Fri, 4 Apr 2014 09:30:07 +0000 (11:30 +0200)
committerMichal Marek <mmarek@suse.cz>
Fri, 4 Apr 2014 11:06:05 +0000 (13:06 +0200)
Makefile.am

index e65fdfb0d9ea65089237ce202dc2d751b7643b16..199588c8f97dd680af11f42872a3d7c7c71f9366 100644 (file)
@@ -213,7 +213,14 @@ TESTSUITE_OVERRIDE_LIBS = testsuite/uname.la testsuite/path.la \
 TESTSUITE_OVERRIDE_LIBS_LDFLAGS = avoid-version -module -shared -export-dynamic \
                                  -rpath /nowhere -ldl
 
-check-am: rootfs
+check-sysconfdir:
+       $(AM_V_at)if test "$(sysconfdir)" != "/etc" -a "$(sysconfdir)" != "/etc/"; then \
+               echo "warning: Some tests will fail without --sysconfdir=/etc" >&2; \
+       fi
+.PHONY: check-sysconfdir
+
+check-am: rootfs check-sysconfdir
+
 
 check_LTLIBRARIES = $(TESTSUITE_OVERRIDE_LIBS)