COASTER_SVC=coaster-service
SVC_CONF="$(dirname $0)/695-app-coasters.coaster.conf"

#TODO: assumes coaster-service on path
if ! which $COASTER_SVC &> /dev/null ; then
  echo "${COASTER_SVC} not on path"
  exit 1
fi

source "${SVC_CONF}"
"${COASTER_SVC}" -nosec -port ${SERVICE_PORT} &
COASTER_SVC_PID=$!

# Delay to allow service to start up
sleep 0.5

export COASTER_SERVICE_URL="${IPADDR}:${SERVICE_PORT}"
export TURBINE_COASTER_CONFIG="jobManager=local,maxParallelTasks=64"

# Need at least one worker
export TURBINE_COASTER_WORKERS=1

COASTER_SVC=coaster-service
SVC_CONF="$(dirname $0)/695-app-coasters.coaster.conf"

#TODO: assumes coaster-service on path
if ! which $COASTER_SVC &> /dev/null ; then
  echo "${COASTER_SVC} not on path"
  exit 1
fi

source "${SVC_CONF}"
"${COASTER_SVC}" -nosec -port ${SERVICE_PORT} &
COASTER_SVC_PID=$!

# Delay to allow service to start up
sleep 0.5

COASTER_SERVICE_URL="${IPADDR}:${SERVICE_PORT}"
export TURBINE_COASTER_CONFIG="jobManager=local,maxParallelTasks=64"
TURBINE_COASTER_CONFIG+=",coasterServiceURL=${COASTER_SERVICE_URL}"

# Need at least one worker
export TURBINE_COASTER_WORKERS=1

# Need at least two workers for additional work types
if [[ -z "${TEST_ADLB_WORKERS-}" || "$TEST_ADLB_WORKERS" -lt 2 ]] ; then
  export TEST_ADLB_WORKERS=2
fi

Fix coaster test for new coaster settings method
Fix coaster test for new coaster settings method

git-svn-id: 47705994653588c662f4ea400dfe88107361c0e2@14098 dc4e9af1-7f46-4ead-bba6-71afc04862de
