robbiew | 87b5055 | 2003-05-07 16:01:02 +0000 | [diff] [blame] | 1 | #!/bin/sh |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 2 | # This will only run the quickhit tests. |
robbiew | 87b5055 | 2003-05-07 16:01:02 +0000 | [diff] [blame] | 3 | cd `dirname $0` |
4 | LTPROOT=${PWD} | ||||
robbiew | a61a7a3 | 2003-05-12 22:14:10 +0000 | [diff] [blame] | 5 | echo $LTPROOT | grep testscripts > /dev/null 2>&1 |
6 | if [ $? -eq 0 ]; then | ||||
7 | cd .. | ||||
8 | export LTPROOT=${PWD} | ||||
9 | fi | ||||
10 | |||||
robbiew | 87b5055 | 2003-05-07 16:01:02 +0000 | [diff] [blame] | 11 | |
12 | mkdir /tmp/runpan-$$ | ||||
13 | cd /tmp/runpan-$$ | ||||
14 | |||||
15 | export PATH="${PATH}:${LTPROOT}/doio:${LTPROOT}/testcases/bin" | ||||
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 16 | |
root | 02f8fe8 | 2010-02-19 09:42:56 -0800 | [diff] [blame] | 17 | ${LTPROOT}/bin/ltp-pan -e $@ -a ltp -n ltp -f ${LTPROOT}/runtest/quickhit |
robbiew | 87b5055 | 2003-05-07 16:01:02 +0000 | [diff] [blame] | 18 | |
19 | if [ $? -eq "0" ]; then | ||||
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 20 | echo ltp-pan reported PASS |
robbiew | 87b5055 | 2003-05-07 16:01:02 +0000 | [diff] [blame] | 21 | else |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 22 | echo ltp-pan reported FAIL |
robbiew | 87b5055 | 2003-05-07 16:01:02 +0000 | [diff] [blame] | 23 | fi |