#!/bin/sh . ../common/common.sh check_output() { egrep "^after DMA this is the test string unaligned and more than 64 chars long abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 123456789 abcdefghijklmnopqrstuvwxyz$" run.out > /dev/null if [ $? -eq 0 ]; then return 0; fi echo "couldn't find string in output - mtty not working ?" >> run.out return 1 } make --quiet || exit 1 ${SIMUL} > run.out 2>&1 if [ $? -eq 0 ]; then if check_output; then echo "test passsed"; make --quiet clean exit 0; fi echo "test FAILED" exit 1 fi echo "test FAILED" exit 1