summaryrefslogtreecommitdiff
path: root/tests/test_lib.sh
diff options
context:
space:
mode:
authorAlberto Ruiz <alberto.ruiz@codethink.co.uk>2011-10-04 01:22:28 +0100
committerAlberto Ruiz <alberto.ruiz@codethink.co.uk>2011-10-04 01:22:28 +0100
commitfe006e0138cb83e2a25a9e11acec46f8615893d9 (patch)
tree1bdecb01bd3a5c6013c48a06e5c2e5b5b0c3e16c /tests/test_lib.sh
parente32df33d9074d5d43dbcebbc507377e801018225 (diff)
downloadtbdiff-fe006e0138cb83e2a25a9e11acec46f8615893d9.tar.gz
Added directory tests
Diffstat (limited to 'tests/test_lib.sh')
-rw-r--r--tests/test_lib.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_lib.sh b/tests/test_lib.sh
index d9c30d9..342ee39 100644
--- a/tests/test_lib.sh
+++ b/tests/test_lib.sh
@@ -16,6 +16,11 @@ function check_same_uidgid {
test $(stat -c "%u.%g" $1) = $(stat -c "%u.%g" $2)
}
+# check_same_mode FILE_A FILE_B
+function check_same_mode {
+ test $(stat -c "%f" $1) = $(stat -c "%f" $2)
+}
+
# check_content FILE EXPECTED_OCTAL_PERMISSIONS
function check_perm {
test $(stat -c %a $1) = $2