if test -r input
then
	INPUT=input
else
	INPUT=/dev/null
fi
echo "Compiling the C program"
empcc script.c -o script
echo "Running the compiled program"

if test -r input
then
	./script $MSTESTDB < input > testout 2>&1
	echo '' >> testout
else
	./script $MSTESTDB  > testout 2>&1
fi
rm -f script script.o
