summaryrefslogtreecommitdiff
path: root/trunk/src/equery/tests/common-functions.sh
diff options
context:
space:
mode:
authorkarltk <karltk@gentoo.org>2004-10-09 22:18:13 +0000
committerkarltk <karltk@gentoo.org>2004-10-09 22:18:13 +0000
commit97e290cf39c0c5bb5bbf697d6ab8fb2aab73da40 (patch)
tree5bb638c57c8e7664abac9594acf9e23ebf3941e3 /trunk/src/equery/tests/common-functions.sh
parent5764c32db099485eb69f6d683288235adb4937ba (diff)
downloadgentoolkit-97e290cf39c0c5bb5bbf697d6ab8fb2aab73da40.tar.gz
More tests
svn path=/; revision=147
Diffstat (limited to 'trunk/src/equery/tests/common-functions.sh')
-rw-r--r--trunk/src/equery/tests/common-functions.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/trunk/src/equery/tests/common-functions.sh b/trunk/src/equery/tests/common-functions.sh
index 125517f..f065a0a 100644
--- a/trunk/src/equery/tests/common-functions.sh
+++ b/trunk/src/equery/tests/common-functions.sh
@@ -40,4 +40,13 @@ function assert_ge() {
printf "FAIL: $2 ! -ge $3\n"
report_failure $1
fi
+}
+
+function assert_exists() {
+ if [ -f $2 ] ; then
+ report_pass $1
+ else
+ printf "FAIL: $2 does not exist\n"
+ report_failure $1
+ fi
} \ No newline at end of file