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 | echo "**" |
| 8 | echo "** TC Group: $1" |
| 9 | echo "** Date : "`date` |
| 10 | echo "** By : "`who | cut -d " " -f 1` |
| 11 | echo "**" |
| 12 | echo "" |
| 13 | echo "-- Description --" |
| 14 | cat $1/Description |
| 15 | echo -- Positive Cases -- |
| 16 | grep -h "^# $1.*POS " $1/[0-9]* | cut -d ' ' -f 2- | sed -e 's/ / /' |
| 17 | echo |
| 18 | echo -- Negative Cases -- |
| 19 | grep -h "^# $1.*NEG " $1/[0-9]* | cut -d ' ' -f 2- | sed -e 's/ / /' |
| 20 | |
| 21 | cd .. |
| 22 | exit 0 |