sed -e "
s;TEST_DATABASE;$MSTESTDB;
" < script.cc > script.c

echo "Calling the precompiler"
empesql $MPDEBUG -ptr script.c scptout.c
echo "Compiling the resulting C program"
empecc -o script scptout.c
echo "Running the compiled program"
./script > testout 2>&1
rm -fr script *.$MSFILEEXTOBJECT
