`_known_hosts_real' will add hosts from HOSTFILE (compgen -A hostname), unless `COMP_KNOWN_HOSTS_WITH_HOSTFILE' is set to an empty value. To run the unit tests: $ cd test && ./runUnit _known_hosts_real.exp
32 lines
936 B
Bash
32 lines
936 B
Bash
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
|
|
# ex: ts=8 sw=8 noet filetype=sh
|
|
#
|
|
# bashrc file for DejaGnu testsuite
|
|
|
|
# Use emacs key bindings
|
|
set -o emacs
|
|
# Use bash strict mode
|
|
set -o posix
|
|
# Unset `command_not_found_handle' as defined on Debian/Ubuntu, because this
|
|
# troubles and slows down testing
|
|
unset -f command_not_found_handle
|
|
# Set prompt to ignore current root directory; display path starting
|
|
# from here. E.g. prompt: /fixtures/@
|
|
TESTDIR=$(pwd)
|
|
export PS1='$(wd=$(pwd); echo ${wd#$TESTDIR}/)@'
|
|
export PS2='> '
|
|
# Configure readline
|
|
export INPUTRC=$TESTDIR/config/inputrc
|
|
# Ensure enough columns so expect doesn't have to care about line breaks
|
|
stty columns 150
|
|
|
|
# Make sure default settings are in effect
|
|
unset -v \
|
|
COMP_CONFIGURE_HINTS \
|
|
COMP_CVS_REMOTE \
|
|
COMP_KNOWN_HOSTS_WITH_HOSTFILE \
|
|
COMP_TAR_INTERNAL_PATHS
|
|
|
|
# Load bash testsuite helper functions
|
|
. lib/library.sh
|