Comment 3 for bug 1741096

Revision history for this message
Scott Moser (smoser) wrote :

go.sh looks like

#!/bin/sh
[ "$(id -u)" = "0" ] || { echo "not root" 1>&2; exit 1; }
i=0
while true; do
   logger --tag=xtest-mic-$i "start xtest-mic-$i"
   echo -n .
   {
   read up idle </proc/uptime
   echo $up
   ./test/test-mic
   r=$?
   read up idle </proc/uptime
   echo $up
   echo $r
   } >out.log 2>&1
   logger --tag=xtest-mic-$i "end xtest-mic-$i $r"
   [ $r -eq 0 ] || { echo; echo "failed xtest-mic-$i"; exit 1; }
   i=$(($i+1))
done