#!/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
else 
  # remove the level parameter
  shift
fi
echo "starting: ${BASH_SOURCE[@]##*/} <LOG_LEVEL=$1>"

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

log.level $level

competionArray=(once config list file ite)
source oo

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


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

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

source oosh

console.log "
Test 1 
===================================================================="

test.case - "oosh_check_os" \
  oosh.oosh_check_os
expect 0 "OS is saved in OOSH_OS"

### test.method

