#!/bin/sh

sync
echo " "
echo "This test shows how you the scheduling latency under oneshot timing"
echo "Type <return> to install modules (rtai, rtai_sched, rtai_fifos)"
read junk
sync
rmmod rt_process
insmod ../../../modules/rtai.o
insmod ../../../modules/rt_mem_mgr.o
insmod ../../../modules/rtai_sched_up.o
insmod ../../../modules/rtai_fifos.o
insmod ../../rtai_cpp.o
insmod ./rt_process.o
echo "Now start the application"
echo "To stop the application type Ctrl-C"
echo "Type <return> to continue"
read junk
./check
sleep 1
echo " "
echo "Type <return> to remove modules"
read junk
rmmod rt_process 
rmmod rtai_cpp
rmmod rtai_fifos
rmmod rtai_sched_up
rmmod rt_mem_mgr
rmmod rtai
