From 475f43e9b885f0c918ad8726ba755a3330ca7d7a Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 3 Jan 2008 09:45:16 +0000 Subject: get the number of groups and services from files in /etc for comparison git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@554 ef36b2f9-881f-0410-afb5-c4e39611909c --- tests/test_nsscmds.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_nsscmds.sh b/tests/test_nsscmds.sh index 30c1a86..fdf6d76 100755 --- a/tests/test_nsscmds.sh +++ b/tests/test_nsscmds.sh @@ -156,7 +156,7 @@ users:*:100:arthur,test EOM check "getent group | wc -l" << EOM -44 +`wc -l /etc/group | awk '{print $1 + 3}'` EOM check "getent group | grep ^largegroup" << EOM @@ -325,7 +325,7 @@ foosrv 15349/tcp EOM check "getent services | wc -l" << EOM -505 +`grep -c '^[^#].' /etc/services | awk '{print $1 + 3}'` EOM ########################################################################### @@ -343,9 +343,8 @@ arthur:*::100:200:7:2::0 EOM # check if the number of passwd entries matches the number of shadow entries -numpasswd=`getent passwd | wc -l` check "getent shadow | wc -l" << EOM -$numpasswd +`getent passwd | wc -l` EOM # check if the names of users match between passwd and shadow -- cgit v1.2.3