diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2009-05-05 17:39:24 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2009-05-05 17:39:24 +0000 |
| commit | c819d146be6bce86d97019494173253e71b85d2f (patch) | |
| tree | 200d00c2b9a420540ff9c4e0d8b3080b762fb562 /trunk/src/equery/tests/test-check.sh | |
| parent | 61823fe68081c6f8edf24455bbb34123598c5bb4 (diff) | |
| download | gentoolkit-c819d146be6bce86d97019494173253e71b85d2f.tar.gz | |
Rearrange trunk to support gentoolkit version 0.3. Split into gentoolkit, gentoolkit-dev, and deprecated. Import djanderson's work on the gentoolkit library and equery
svn path=/trunk/gentoolkit/; revision=589
Diffstat (limited to 'trunk/src/equery/tests/test-check.sh')
| -rwxr-xr-x | trunk/src/equery/tests/test-check.sh | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/trunk/src/equery/tests/test-check.sh b/trunk/src/equery/tests/test-check.sh deleted file mode 100755 index 803299f..0000000 --- a/trunk/src/equery/tests/test-check.sh +++ /dev/null @@ -1,39 +0,0 @@ -#! /bin/bash -# -# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> -# Copyright (c) 2004, Gentoo Foundation -# -# Licensed under the GNU General Public License, v2 - -. common-functions.sh - -tmpfile=$(tempfilename) - -test_check() { - equery check gcc > ${tmpfile} - - x=$(grep "sys-devel/gcc" ${tmpfile} | wc -l) - - assert_ge ${FUNCNAME} ${x} 1 - - x=$(egrep "[0-9]+ out of [0-9]+" ${tmpfile} | wc -l) - 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} |
