#!/bin/sh
#

echo "Running $0"
echo
echo "This script will work only if you have a correct patition file"
echo ".compute in you HOME directory."
echo
echo "This  skript runs the pingpong test program infinitely."
echo "It must be stopped by killing it."
echo 
echo "If there is an error in the signal handling pingpong hangs."
echo "This happens if a SIGIO signal is lost by the operating system."
echo 

CPWD=$PWD

echo "Running pingpong2"
dn=examples/C/pingpong2
( cd $dn; PWD=$CPWD/$dn; export PWD ;  make clean all )

while true
do
	date
	( cd $dn; PWD=$CPWD/$dn; export PWD; make run "ARG=1000 0 10 1" )
done

exit 0




