From dae4f33e486b80e3d957e35355ca0a63cd90f4bd Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 2 Nov 2003 21:55:06 +0000 Subject: Additional passwd and group tests --- test/pwd_grp/Makefile | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'test/pwd_grp/Makefile') diff --git a/test/pwd_grp/Makefile b/test/pwd_grp/Makefile index c4242715d..cee133bff 100644 --- a/test/pwd_grp/Makefile +++ b/test/pwd_grp/Makefile @@ -24,7 +24,8 @@ TARGETS=test_pwd test_pwd_glibc TARGETS+=test_grp test_grp_glibc TARGETS+=pwcat pwcat_glibc TARGETS+=grcat grcat_glibc -TARGETS+=test_pwd_diff test_grp_diff pwcat_diff grcat_diff +TARGETS+=getgroups getgroups_glibc +TARGETS+=test_pwd_diff test_grp_diff pwcat_diff grcat_diff getgroups_diff all: $(TARGETS) @@ -116,6 +117,28 @@ grcat_glibc: grcat.c Makefile -./$@ 2>&1 >grcat_glibc.out -@ echo " " +getgroups: getgroups.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) + -@ echo "-------" + -@ echo " " + -@ echo "Compiling vs uClibc: " + -@ echo " " + $(CC) $(CFLAGS) -c $< -o $@.o + $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIPTOOL) -x -R .note -R .comment $@ + -./$@ 2>&1 >getgroups.out + -@ echo " " + +getgroups_glibc: getgroups.c Makefile + -@ echo "-------" + -@ echo " " + -@ echo "Compiling vs GNU libc: " + -@ echo " " + $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o + $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@ + $(STRIPTOOL) -x -R .note -R .comment $@ + -./$@ 2>&1 >getgroups_glibc.out + -@ echo " " + test_pwd_diff: test_pwd_glibc test_pwd -@ echo "-------" -@ echo " " @@ -148,6 +171,14 @@ grcat_diff: grcat_glibc grcat -diff -u grcat_glibc.out grcat.out -@ echo " " +getgroups_diff: getgroups_glibc getgroups + -@ echo "-------" + -@ echo " " + -@ echo "Diffing output: " + -@ echo " " + -diff -u getgroups_glibc.out getgroups.out + -@ echo " " + clean: $(RM) *.[oa] *~ core $(TARGETS) *.out -- cgit v1.2.3