diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-03 10:45:16 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-03 10:45:16 +0100 |
commit | 475f43e9b885f0c918ad8726ba755a3330ca7d7a (patch) | |
tree | 44298918b7790e70a8c1f98a9a33ff07affc285f /tests | |
parent | b57b9d6550ef12e6c9b7f7c7698d9122ab1a69fa (diff) |
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
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_nsscmds.sh | 7 |
1 files changed, 3 insertions, 4 deletions
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 |