2004-09-30 Karl Trygve Kalleberg <karltk@gentoo.org>
* Added unit tests for --help
+ * Added unit tests for 'files'
2004-09-27 Karl Trygve Kalleberg <karltk@gentoo.org>
* Added short commands
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() {