sg481n | 43854a9 | 2017-08-03 17:27:34 -0400 | [diff] [blame] | 1 | # /bin/bash |
| 2 | if [ "$1" == "" ]; then |
| 3 | echo "Usage: rpt1 <TestCase>" |
| 4 | exit 1 |
| 5 | fi |
| 6 | |
| 7 | cd TestCases |
| 8 | echo "**" |
| 9 | echo "** TC Group: $1" |
| 10 | echo "** Date : "`date` |
| 11 | echo "** By : "`who | cut -d " " -f 1` |
| 12 | echo "**" |
| 13 | echo "" |
| 14 | echo "-- Description --" |
| 15 | cat $1/Description |
| 16 | echo -- Positive Cases -- |
| 17 | grep -h "^# $1.*OK " $1/[0-9]* | cut -d ' ' -f 2- | sed -e 's/ / /' |
| 18 | echo |
| 19 | echo -- Negative Cases -- |
| 20 | grep -h "^# $1.*FAIL " $1/[0-9]* | cut -d ' ' -f 2- | sed -e 's/ / /' |
| 21 | |
| 22 | cd .. |
| 23 | exit 0 |