#!/usr/bin/env 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=1
fi
echo "starting: ${BASH_SOURCE[@]##*/} <LOG_LEVEL=$1>"

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

log.level $level

# Check if matthias script exists
if ! type matthias &>/dev/null && ! [ -f "$OOSH_DIR/matthias" ]; then
  echo -e "\e[1;33m  ⚠ SKIPPED: matthias script not available (deprecated)\e[0m"
  test.suite.save.results
  exit 0
fi

competionArray=(once config list file ite)
source oo

test.matthias() 
{
((TEST_COUNTER++))
console.log "


Test 0: matthias \"$*\"
===================================================================="
matthias.start "$@"
console.log "RETURN: $RETURN_VALUE  Result: $RESULT 
===================================================================="
}

test.case - "matthias test start" \
  matthias $*
expect 0 "*" "Test start"

source matthias

### test.method

