diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-01 17:46:06 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-02 10:43:41 -0500 |
commit | 70fadadf1fc7e1bd09c3d0f451614a678277409c (patch) | |
tree | 92ffc1ae7b3ce13a93b6a85330b0615c52484786 /tests.sh | |
parent | b997ddf3df6535765f7eab0683eae4703933a703 (diff) | |
download | bfs-70fadadf1fc7e1bd09c3d0f451614a678277409c.tar.xz |
Add -gid and -uid support.
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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" |