diff options
| author | karltk <karltk@gentoo.org> | 2004-10-09 22:18:13 +0000 |
|---|---|---|
| committer | karltk <karltk@gentoo.org> | 2004-10-09 22:18:13 +0000 |
| commit | 97e290cf39c0c5bb5bbf697d6ab8fb2aab73da40 (patch) | |
| tree | 5bb638c57c8e7664abac9594acf9e23ebf3941e3 /trunk/src/equery/tests/common-functions.sh | |
| parent | 5764c32db099485eb69f6d683288235adb4937ba (diff) | |
| download | gentoolkit-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.sh | 9 |
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 |
