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