#!/bin/sh

until [ -z "$1" ]
do
  if echo "$1" | grep -q "="
  then
    variable=${1%%=*} # extract name
    value=${1##*=}    # extract value
    export $variable=$value
    shift
  else
    break
  fi
done

program=$1
shift

if [ -z "$SEEC_TEST_SILENCE_STDOUT" ]
then
  $program $* 1>/dev/null
else
  $program $*
fi


#!/bin/sh

until [ -z "$1" ]
do
  if echo "$1" | grep -q "="
  then
    variable=${1%%=*} # extract name
    value=${1##*=}    # extract value
    export $variable=$value
    shift
  else
    break
  fi
done

program=$1
shift

if [ ! -z "$SEEC_WRITE_INSTRUMENTED" ] && [ -e $SEEC_WRITE_INSTRUMENTED ]; then
  rm -f $SEEC_WRITE_INSTRUMENTED || true
fi

if [ ! -z "$SEEC_TRACE_NAME" ] && [ -e ${SEEC_TRACE_NAME}.seec ]; then
  rm -f ${SEEC_TRACE_NAME}.seec || true
fi

if [ -z "$SEEC_TEST_SILENCE_STDOUT" ]
then
  $program $* 1>/dev/null
else
  $program $*
fi


Remove existing instrumented modules and execution traces before running tests.
Remove existing instrumented modules and execution traces before running tests.
