# shell functions to include in multiple test files

# squeeze out blanks to avoid white space differences in od implementations
_intl_normalize_spaces()
{
	sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/[[:space:]]*$//'
}

# avoid whitespace differences in wc implementations
_cut_leading_spaces()
{
	sed -e 's/^[ 	]*//g'
}

test_runsub()
{
	scriptname=${1##*/}
	printf '\t%s\n' "${scriptname}"

	${THIS_SH} "$1"
}
