From 70fadadf1fc7e1bd09c3d0f451614a678277409c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 1 Feb 2016 17:46:06 -0500 Subject: Add -gid and -uid support. --- tests.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index bb24fe0..23a9aba 100755 --- a/tests.sh +++ b/tests.sh @@ -110,7 +110,21 @@ function test_0015() { find_diff "$1" -empty } -for i in {1..15}; do +function test_0016() { + basic_structure "$1" + find_diff "$1" -gid "$(id -g)" && \ + find_diff "$1" -gid +0 && \ + find_diff "$1" -gid -10000 +} + +function test_0017() { + basic_structure "$1" + find_diff "$1" -uid "$(id -u)" && \ + find_diff "$1" -uid +0 && \ + find_diff "$1" -uid -10000 +} + +for i in {1..17}; do dir="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)" test="test_$(printf '%04d' $i)" "$test" "$dir" -- cgit v1.2.3