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/bsd | |
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/bsd')
-rw-r--r-- | tests/bsd/L_acl.sh | 2 | ||||
-rw-r--r-- | tests/bsd/acl.sh | 2 | ||||
-rw-r--r-- | tests/bsd/flags.sh | 2 | ||||
-rw-r--r-- | tests/bsd/rm.sh | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/bsd/L_acl.sh b/tests/bsd/L_acl.sh index 4f990bb..cf573e4 100644 --- a/tests/bsd/L_acl.sh +++ b/tests/bsd/L_acl.sh @@ -2,7 +2,7 @@ clean_scratch skip_unless invoke_bfs scratch -quit -acl -$TOUCH scratch/{normal,acl} +"$XTOUCH" scratch/{normal,acl} skip_unless set_acl scratch/acl ln -s acl scratch/link diff --git a/tests/bsd/acl.sh b/tests/bsd/acl.sh index c669005..1665684 100644 --- a/tests/bsd/acl.sh +++ b/tests/bsd/acl.sh @@ -2,7 +2,7 @@ clean_scratch skip_unless invoke_bfs scratch -quit -acl -$TOUCH scratch/{normal,acl} +"$XTOUCH" scratch/{normal,acl} skip_unless set_acl scratch/acl ln -s acl scratch/link diff --git a/tests/bsd/flags.sh b/tests/bsd/flags.sh index fd25150..ffb1cc2 100644 --- a/tests/bsd/flags.sh +++ b/tests/bsd/flags.sh @@ -2,7 +2,7 @@ skip_unless invoke_bfs scratch -quit -flags offline clean_scratch -$TOUCH scratch/{foo,bar} +"$XTOUCH" scratch/{foo,bar} skip_unless chflags offline scratch/bar bfs_diff scratch -flags -offline,nohidden diff --git a/tests/bsd/rm.sh b/tests/bsd/rm.sh index e661a37..9ee2b0a 100644 --- a/tests/bsd/rm.sh +++ b/tests/bsd/rm.sh @@ -1,5 +1,5 @@ clean_scratch -touchp scratch/foo/bar/baz +"$XTOUCH" -p scratch/foo/bar/baz (cd scratch && invoke_bfs . -rm) |