diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-11-07 15:10:50 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-11-07 15:10:50 -0500 |
commit | 2d5edb37b924715b4fbee4d917ac334c773fca61 (patch) | |
tree | f4b73d20f42e18c99585823e33cbc1eb1261651a /tests/bfs | |
parent | 3139cbc56a08ac76bccfe223dd2669f3f080c927 (diff) | |
download | bfs-2d5edb37b924715b4fbee4d917ac334c773fca61.tar.xz |
tests/xtouch: New utility
POSIX touch(1) doesn't include the -h option, and indeed OpenBSD doesn't
implement it. Making our own utility also lets us add some handy
extensions like -p (create parents) and -M (set permissions).
Diffstat (limited to 'tests/bfs')
-rw-r--r-- | tests/bfs/L_capable.sh | 2 | ||||
-rw-r--r-- | tests/bfs/capable.sh | 2 | ||||
-rw-r--r-- | tests/bfs/color_ls.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/bfs/L_capable.sh b/tests/bfs/L_capable.sh index f37e1f2..533ac2f 100644 --- a/tests/bfs/L_capable.sh +++ b/tests/bfs/L_capable.sh @@ -5,7 +5,7 @@ clean_scratch skip_unless invoke_bfs scratch -quit -capable -$TOUCH scratch/{normal,capable} +"$XTOUCH" scratch/{normal,capable} sudo setcap all+ep scratch/capable ln -s capable scratch/link diff --git a/tests/bfs/capable.sh b/tests/bfs/capable.sh index 6dc9bf2..256b9bc 100644 --- a/tests/bfs/capable.sh +++ b/tests/bfs/capable.sh @@ -5,7 +5,7 @@ clean_scratch skip_unless invoke_bfs scratch -quit -capable -$TOUCH scratch/{normal,capable} +"$XTOUCH" scratch/{normal,capable} sudo setcap all+ep scratch/capable ln -s capable scratch/link diff --git a/tests/bfs/color_ls.sh b/tests/bfs/color_ls.sh index 33922a8..37d088f 100644 --- a/tests/bfs/color_ls.sh +++ b/tests/bfs/color_ls.sh @@ -1,5 +1,5 @@ clean_scratch -touchp scratch/foo/bar/baz +"$XTOUCH" -p scratch/foo/bar/baz ln -s foo/bar/baz scratch/link ln -s foo/bar/nowhere scratch/broken ln -s foo/bar/nowhere/nothing scratch/nested |