Home | History | Annotate | Download | only in testscripts
      1 #!/bin/sh
      2 # This will only run the quickhit tests.
      3 cd `dirname $0`
      4 LTPROOT=${PWD}
      5 echo $LTPROOT | grep testscripts > /dev/null 2>&1
      6 if [ $? -eq 0 ]; then
      7  cd ..
      8  export LTPROOT=${PWD}
      9 fi
     10 
     11 
     12 mkdir /tmp/runpan-$$
     13 cd /tmp/runpan-$$
     14 
     15 export PATH="${PATH}:${LTPROOT}/doio:${LTPROOT}/testcases/bin"
     16 
     17 ${LTPROOT}/bin/ltp-pan -e $@ -a ltp -n ltp -f ${LTPROOT}/runtest/quickhit
     18 
     19 if [ $? -eq "0" ]; then
     20   echo ltp-pan reported PASS
     21 else
     22   echo ltp-pan reported FAIL
     23 fi
     24