From 6ab1072f78c35b82790efdecefa442205975ec81 Mon Sep 17 00:00:00 2001 From: karltk Date: Tue, 19 Oct 2004 23:50:20 +0000 Subject: [PATCH] Added case for sudo svn path=/; revision=163 --- trunk/src/equery/tests/test-check.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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} -- 2.26.2