summaryrefslogtreecommitdiff
path: root/test/pwd_grp/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-02 21:55:06 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-02 21:55:06 +0000
commitdae4f33e486b80e3d957e35355ca0a63cd90f4bd (patch)
treeb4c96edde14b9ae4e3da83d979d3e41c4f894dd6 /test/pwd_grp/Makefile
parentded0e9aba41f65618cc4b329cdad753f01f9875a (diff)
Additional passwd and group tests
Diffstat (limited to 'test/pwd_grp/Makefile')
-rw-r--r--test/pwd_grp/Makefile33
1 files changed, 32 insertions, 1 deletions
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