#!/bin/bash

set -x

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

mkdir tests/data

source scripts/turbine-config.sh
${TURBINE_LAUNCH} -l -n 4 ${VALGRIND} ${TCLSH} ${SCRIPT} \
                  tests/batcher.txt >& ${OUTPUT}
[[ ${?} == 0 ]] || exit 1

LINES=$( ls tests/data/{1..4}.txt | wc -l )
(( ${LINES} == 4 )) || exit 1

rm tests/data/{1..4}.txt || exit 1

exit 0

#!/bin/bash

set -x

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

mkdir tests/data

turbine -l -n 4 ${VALGRIND} ${SCRIPT} \
                  tests/batcher.txt >& ${OUTPUT}
[[ ${?} == 0 ]] || exit 1

LINES=$( ls tests/data/{1..4}.txt | wc -l )
(( ${LINES} == 4 )) || exit 1

rm tests/data/{1..4}.txt || exit 1

exit 0

Use new turbine command line
Use new turbine command line


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