#!/bin/sh

tests="lang_test mod_std_test mod_msql_test"

for test in $tests
do
	echo "Running $test ..."
	PATH_TRANSLATED=$test.html
	export PATH_TRANSLATED
	../w3-msql -t | grep -v "Hughes Technologies" > tmp.out
	diff $test.out tmp.out > /dev/null
	if test $? -ne 0
	then
		echo
		echo "Test Failed!!!"
		echo
		echo "Review tmp.out against $test.out for details"
		echo
		exit 1
	else
		echo "	Passed."
		rm -f tmp.out
	fi
done
