#!/bin/bash

set -x

THIS=$0
SCRIPT=${THIS%.sh}.tcl
OUTPUT=${THIS%.sh}.out

bin/turbine -n 3 ${SCRIPT} >& ${OUTPUT}
[[ ${?} == 0 ]] || exit 1

grep -q "answer_rank: 0" ${OUTPUT} || exit 1
grep -q "msg: hello"     ${OUTPUT} || exit 1

LINES=$( grep -c OK ${OUTPUT} )
[[ ${LINES} == 3 ]] || exit 1

exit 0

#!/bin/bash

set -x

THIS=$0
SCRIPT=${THIS%.sh}.tcl
OUTPUT=${THIS%.sh}.out

bin/turbine -l -n 3 ${SCRIPT} >& ${OUTPUT}
[[ ${?} == 0 ]] || exit 1

grep -q "answer_rank: 0" ${OUTPUT} || exit 1
grep -q "msg: hello"     ${OUTPUT} || exit 1

LINES=$( grep -c OK ${OUTPUT} )
[[ ${LINES} == 3 ]] || exit 1

exit 0

Use turbine -l in test
Use turbine -l in test


git-svn-id: 4403cc1077de9de61ebbb06aa07b0a825c555f62@4386 dc4e9af1-7f46-4ead-bba6-71afc04862de
