Merge commit 'refs/top-bases/t/projlist-cache/caching' into t/projlist-cache/caching
[git/gitweb.git] / t / lib-bash.sh
blob2be955fafba60e9dbf30a3ab7f0bc1dfae270140
1 # Shell library sourced instead of ./test-lib.sh by tests that need
2 # to run under Bash; primarily intended for tests of the completion
3 # script.
5 if test -n "$BASH" && test -z "$POSIXLY_CORRECT"; then
6 # we are in full-on bash mode
7 true
8 elif type bash >/dev/null 2>&1; then
9 # execute in full-on bash mode
10 unset POSIXLY_CORRECT
11 exec bash "$0" "$@"
12 else
13 echo '1..0 #SKIP skipping bash completion tests; bash not available'
14 exit 0
17 . ./test-lib.sh