t: add a function to check executable bit
commitd6546af75c3cda2815f2e4d5322dd7a41cc0963b
authorbrian m. carlson <bk2204@github.com>
Tue, 27 Jun 2023 16:18:56 +0000 (27 16:18 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Jun 2023 18:31:05 +0000 (27 11:31 -0700)
tree45c9ba6f88b5e41afa7e43df4fb924673f4973b6
parent4db16f58c7720257eea9ffb7d4e76809f2c403f0
t: add a function to check executable bit

In line with our other helper functions for paths, let's add a function
to check whether a path is executable, and if not, print a suitable
error message.  Document this function, and note that it must only be
used under the POSIXPERM prerequisite, since it doesn't otherwise work
on Windows.

Signed-off-by: brian m. carlson <bk2204@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README
t/test-lib-functions.sh