From: karltk Date: Tue, 19 Oct 2004 23:50:20 +0000 (-0000) Subject: Added case for sudo X-Git-Tag: gentoolkit-0.2.4.3~339 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ab1072f78c35b82790efdecefa442205975ec81;p=gentoolkit.git Added case for sudo svn path=/; revision=163 --- diff --git a/trunk/src/equery/tests/test-check.sh b/trunk/src/equery/tests/test-check.sh index 3608ce4..803299f 100755 --- a/trunk/src/equery/tests/test-check.sh +++ b/trunk/src/equery/tests/test-check.sh @@ -20,8 +20,20 @@ test_check() { assert_ge ${FUNCNAME} ${x} 1 } +test_check_permissions() { + equery check sudo > ${tmpfile} + + x=$(grep "app-admin/sudo" ${tmpfile} | wc -l) + + assert_ge ${FUNCNAME} ${x} 1 + + x=$(egrep "[0-9]+ out of [0-9]+" ${tmpfile} | wc -l) + assert_ge ${FUNCNAME} ${x} 1 +} + # Run tests test_check +test_check_permissions -rm -f ${tmpfile} \ No newline at end of file +rm -f ${tmpfile}