#!/bin/sh

echo ""
echo "Starting up Test..."
echo ""
export WR_HOME="/wr"
export PATH="${PATH}:$WR_HOME/bin/:$WR_HOME/sbin/"

IP=$(ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}')

cd /alpha-pts

cat << EOF
We do not recommend to run alpha-pts from serial port, because it is shared with
FPGA UART.
To call the test you should try:

* SSH:		ssh root@${IP} 
* USB Gadget:	minicom -D /dev/ttyACM0 -b 115200
	
And then execute the testing script

        /alpha-pts/testing.sh
EOF
