projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44897e5
)
Added case for sudo
author
karltk
<karltk@gentoo.org>
Tue, 19 Oct 2004 23:50:20 +0000
(23:50 -0000)
committer
karltk
<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
patch
|
blob
|
history
diff --git
a/trunk/src/equery/tests/test-check.sh
b/trunk/src/equery/tests/test-check.sh
index 3608ce49ed2ea0c6484b9e0e4c98d4d42069bc8d..803299fd8768a30c77af56ae7dc6cd504b6f2b90 100755
(executable)
--- 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}