diff options
author | Alberto Ruiz <alberto.ruiz@codethink.co.uk> | 2011-10-04 01:22:28 +0100 |
---|---|---|
committer | Alberto Ruiz <alberto.ruiz@codethink.co.uk> | 2011-10-04 01:22:28 +0100 |
commit | fe006e0138cb83e2a25a9e11acec46f8615893d9 (patch) | |
tree | 1bdecb01bd3a5c6013c48a06e5c2e5b5b0c3e16c /tests/test_lib.sh | |
parent | e32df33d9074d5d43dbcebbc507377e801018225 (diff) | |
download | tbdiff-fe006e0138cb83e2a25a9e11acec46f8615893d9.tar.gz |
Added directory tests
Diffstat (limited to 'tests/test_lib.sh')
-rw-r--r-- | tests/test_lib.sh | 5 |
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 |