blob: b0b6060929cefc66122628123e61f6a9c620dc05 [file] [log] [blame]
Jonathan Niederc74c7202013-11-25 13:03:06 -08001# 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.
SZEDER Gáborf8891cf2012-05-09 02:44:32 +02004
Denton Liudf6d3d62019-11-20 16:45:48 -08005if test -n "$BASH" && test -z "$POSIXLY_CORRECT"
6then
SZEDER Gáborf8891cf2012-05-09 02:44:32 +02007 # we are in full-on bash mode
8 true
Denton Liudf6d3d62019-11-20 16:45:48 -08009elif type bash >/dev/null 2>&1
10then
SZEDER Gáborf8891cf2012-05-09 02:44:32 +020011 # execute in full-on bash mode
12 unset POSIXLY_CORRECT
13 exec bash "$0" "$@"
14else
15 echo '1..0 #SKIP skipping bash completion tests; bash not available'
16 exit 0
17fi
18
19. ./test-lib.sh