From 71562c1fddf8d025b5de94d1df3b89278fc679b2 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 9 Mar 2007 14:56:18 +0100 Subject: login: add regression test for IP address checking code The hnmatch() in checktty.c is checking IP addresses if the login util is compiled without PAM support. Signed-off-by: Karel Zak --- login-utils/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'login-utils/Makefile.am') diff --git a/login-utils/Makefile.am b/login-utils/Makefile.am index cc894e196..0a36e158f 100644 --- a/login-utils/Makefile.am +++ b/login-utils/Makefile.am @@ -116,3 +116,8 @@ install-exec-hook:: cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 provide.8 endif + +noinst_PROGRAMS = checktty_test +checktty_test_SOURCES = checktty.c login.h +checktty_test_CFLAGS = -DMAIN_TEST_CHECKTTY + -- cgit v1.2.3-55-g7522