summaryrefslogtreecommitdiff
path: root/test/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/run b/test/run
index 1baf3646..f065316c 100755
--- a/test/run
+++ b/test/run
@@ -110,6 +110,18 @@ expect_stat() {
fi
}
+expect_file_exists() {
+ if [ ! -f "$1" ]; then
+ test_failed "Expected $1 to exist, but it's missing"
+ fi
+}
+
+expect_file_missing() {
+ if [ -f "$1" ]; then
+ test_failed "Expected $1 to be missing, but it exists"
+ fi
+}
+
expect_equal_files() {
if [ ! -e "$1" ]; then
test_failed "expect_equal_files: $1 missing"