summaryrefslogtreecommitdiff
path: root/tests/test_lib.sh
diff options
context:
space:
mode:
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 2c182a7..6d431d0 100644
--- a/tests/test_lib.sh
+++ b/tests/test_lib.sh
@@ -11,6 +11,11 @@ function check_same_mtime {
test $(stat -c %Y $1) = $(stat -c %Y $2)
}
+# check_same_uidgid FILE_A FILE_B
+function check_same_uidgid {
+ test $(stat -c "%u.%g" $1) = $(stat -c "%u.%g" $2)
+}
+
# check_content FILE EXPECTED_OCTAL_PERMISSIONS
function check_perm {
test $(stat -c %a $1) = $2