Changeset d00adb6 in rtems-testing


Ignore:
Timestamp:
Jul 20, 2011, 8:48:43 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
61039c7
Parents:
e264777
Message:

2011-07-20 Joel Sherrill <joel.sherrill@…>

  • mktest: Add option to put test number in.
Location:
cvs-helpers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cvs-helpers/ChangeLog

    re264777 rd00adb6  
     12011-07-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * mktest: Add option to put test number in.
     4
    152011-01-28      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • cvs-helpers/mktest

    re264777 rd00adb6  
    2626usage()
    2727{
    28   echo "$progname -s SOURCE -d DEST -D description [-v]"
     28  echo "$progname -s SOURCE -d DEST -D description -n NUMBER [-v]"
    2929  echo "                   OR"
    3030  echo "$progname -c -d DEST"
     
    4141dest=
    4242desc=
     43testNum=
    4344verbose=no
    44 while getopts cd:D:s:v OPT
     45while getopts cd:D:s:n:v OPT
    4546do
    4647  case "$OPT" in
     
    4950    D) desc=$OPTARG ;;
    5051    s) source=$OPTARG ;;
     52    n) testNum=$OPTARG ;;
    5153    v) verbose=`toggle ${verbose}` ;;
    5254    *) usage ;;
     
    7880test -d "${source}"
    7981check_status $? Source directory not present
     82test "X${testNum}" != "X"
     83check_status $? No test number provided
    8084
    8185test ! -d ${dest}/CVS
     
    107111        -e "s/@UPPER@/${destCaps}/g" \
    108112        -e "s/@DESC@/${desc}/g" \
     113        -e "s/@TESTNUM@/${testNum}/g" \
    109114    <${s} >${d}
    110115   check_status $? "Unable to process ${d}"
Note: See TracChangeset for help on using the changeset viewer.