#!/bin/sh

. ../../dttools/test/test_runner_common.sh

TEST_INPUT=export.input

export ECHOA=`which echo`
export ECHOB=echoY
export ECHOC=echoX

prepare()
{
cat > $TEST_INPUT <<EOF
$ECHOA echob
$ECHOA echob
EOF
	exit 0
}

run()
{
	../src/makeflow syntax/export.external.makeflow
	exec diff $TEST_INPUT out.all
}

clean()
{
	rm -f $TEST_INPUT
	rm -f out.all
	rm -f syntax/export.external.makeflow.makeflowlog
	exit 0
}

dispatch "$@"

# vim: set noexpandtab tabstop=4:
