diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-07-04 16:08:18 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-07-04 16:08:18 -0700 |
| commit | 89d62d5e8ef42be3a73493e8ffbede589c7a31d1 (patch) | |
| tree | 4ff0c976caa1bdc13f9d9e3030055dc40695338b /t/test-lib-functions.sh | |
| parent | Merge branch 'ps/revision-stdin-with-options' (diff) | |
| parent | var: add config file locations (diff) | |
| download | git-89d62d5e8ef42be3a73493e8ffbede589c7a31d1.tar.gz git-89d62d5e8ef42be3a73493e8ffbede589c7a31d1.zip | |
Merge branch 'bc/more-git-var'
Add more "git var" for toolsmiths to learn various locations Git is
configured with either via the configuration or hardcoded defaults.
* bc/more-git-var:
var: add config file locations
var: add attributes files locations
attr: expose and rename accessor functions
var: adjust memory allocation for strings
var: format variable structure with C99 initializers
var: add support for listing the shell
t: add a function to check executable bit
var: mark unused parameters in git_var callbacks
Diffstat (limited to 't/test-lib-functions.sh')
| -rw-r--r-- | t/test-lib-functions.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index b3864e22e9..2fa716c567 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -910,6 +910,15 @@ test_path_is_symlink () { fi } +test_path_is_executable () { + test "$#" -ne 1 && BUG "1 param" + if ! test -x "$1" + then + echo "$1 is not executable" + false + fi +} + # Check if the directory exists and is empty as expected, barf otherwise. test_dir_is_empty () { test "$#" -ne 1 && BUG "1 param" |
