#!/usr/local/bin/bash
#clear
#export PS4='\e[90m+${LINENO} in ${#BASH_SOURCE[@]}>${FUNCNAME[0]}:${BASH_SOURCE[@]##*/} \e[0m'
#set -x

level=$1
if [ -z "$level" ]; then
  level=3
fi
echo "starting: ${BASH_SOURCE[@]##*/} <LOG_LEVEL=$1>"

#echo "sourcing init"
source this
source test.suite

log.level $level
this.isSourced

important.log "
now in ${BASH_SOURCE[@]##*/}
"

echo "
Test 0: this.call this.isSourced
===================================================================="
this.call this.isSourced
echo "RETURN: $RETURN_VALUE  Result: $RESULT 
====================================================================

"

test.case - "source mycmd permanently" \
  source mycmd 

test.case - "use sourced mycmd and call feature3 directly" \
  mycmd.feature3 hello world