aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2009-05-05 17:39:24 +0000
committerfuzzyray <fuzzyray@gentoo.org>2009-05-05 17:39:24 +0000
commit6fce14b892873eb6f3887719b42407f0276181e9 (patch)
treed9573d61d7184c9cf7c8b9e39e59c7f6ab742d4f /trunk/src/equery/tests/test-files.sh
parentAdd some useful informations when using $EDITOR. (diff)
downloadgentoolkit-6fce14b892873eb6f3887719b42407f0276181e9.tar.gz
gentoolkit-6fce14b892873eb6f3887719b42407f0276181e9.tar.bz2
gentoolkit-6fce14b892873eb6f3887719b42407f0276181e9.zip
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=/; revision=589
Diffstat (limited to 'trunk/src/equery/tests/test-files.sh')
-rwxr-xr-xtrunk/src/equery/tests/test-files.sh61
1 files changed, 0 insertions, 61 deletions
diff --git a/trunk/src/equery/tests/test-files.sh b/trunk/src/equery/tests/test-files.sh
deleted file mode 100755
index ad0a5ea..0000000
--- a/trunk/src/equery/tests/test-files.sh
+++ /dev/null
@@ -1,61 +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)
-
-strip_versioned_files() {
- grep -v "/usr/share/doc"
-}
-
-test_files() {
- equery files bash > ${tmpfile}
-
- x=$(grep man ${tmpfile} | wc -l)
- assert_ge ${FUNCNAME} $x 5
-
- x=$(cat ${tmpfile} | wc -l)
- assert_ge ${FUNCNAME} $x 25
-}
-
-test_files_timestamp() {
- equery files --timestamp bash > ${tmpfile}
-
- x=$(grep "/bin/bash .*....-..-.. ..:..:.." ${tmpfile} | wc -l)
- assert_eq ${FUNCNAME} $x 1
-}
-
-test_files_md5sum() {
- equery files --md5sum bash > ${tmpfile}
-
- x=$(egrep "/bin/bash .*[0-9a-z]{30}" ${tmpfile} | wc -l)
- assert_eq ${FUNCNAME} $x 1
-}
-
-test_files_type() {
-
- equery files --type bash > ${tmpfile}
-
- x=$(grep "file.*/bin/bash$" ${tmpfile} | wc -l)
- assert_eq ${FUNCNAME} $x 1
-
- x=$(grep "symlink.*/bin/rbash" ${tmpfile} | wc -l)
- assert_eq ${FUNCNAME} $x 1
-
- x=$(grep "dir.*/usr/share/man" ${tmpfile} | wc -l)
- assert_ge ${FUNCNAME} $x 1
-}
-
-# Run tests
-
-test_files
-test_files_timestamp
-test_files_md5sum
-test_files_type
-
-rm ${tmpfile} \ No newline at end of file