diff options
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 |