echo "            Boca Research BocaBoard Test Program Version 1.1"
echo "                Copyright (C) 1993 Boca Research, Inc."
echo "                                                           "
echo "                                                           "


:



while	echo "The first port on your BocaBoard is:

	1. ttya00
	2. ttyb00      
	3. ttyc00       
	4. ttyd00      
	5. ttye00       
        6. tty3a
        7. tty4a
        8. tty5a
        9. tty6a

Select an option or enter 'q' to quit: \c"
	read a
do	case $a in
	1)	i=a00 b=a01; break        ;;
	2)	i=b00 b=b01; break        ;; 
	3)	i=c00 b=c01; break        ;; 
	4)	i=d00 b=d01; break        ;;
	5)	i=e00 b=e01; break        ;; 
        6)      i=3a b=3b; break       ;;
        7)      i=4a b=4b; break       ;;
        8)      i=5a b=5b; break       ;;
        9)      i=6a b=6b; break       ;;
        q)	echo "Test aborted" >&2; exit 0	;;
	*)	echo "\nEnter 1-9 or q\n" >&2	;;
	esac
done

echo "                                                                 "
echo "                                                                 "
echo "Place one end of the RJ-11 cable shipped with your BocaBoard in the  
first port (tty$i) of the BocaBoard and the other end of the RJ-11 cable
in the second port (tty$b) of the same BocaBoard.

Hit <ENTER> when  you are ready to begin the test: \c"
        read x
echo "beginning test"        
./rcv384.1 $i & 
./snd384.1 $b &
echo "                                               
When this test is done, the file called 'input' should match the file       
called 'output'.  This indicates that all data sent out the first port
was received in the second port."

echo "sending data........"
sleep 4
echo "         
      receiving data..........
"


sleep 4
echo "
       This test will complete in approximately 10 seconds.......
               "
sleep 6
ls -l *put
exit 0

