Added case for sudo
authorkarltk <karltk@gentoo.org>
Tue, 19 Oct 2004 23:50:20 +0000 (23:50 -0000)
committerkarltk <karltk@gentoo.org>
Tue, 19 Oct 2004 23:50:20 +0000 (23:50 -0000)
svn path=/; revision=163

trunk/src/equery/tests/test-check.sh

index 3608ce49ed2ea0c6484b9e0e4c98d4d42069bc8d..803299fd8768a30c77af56ae7dc6cd504b6f2b90 100755 (executable)
@@ -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}