Changeset 5686d7d in rtems-schedsim


Ignore:
Timestamp:
Jun 28, 2011, 6:43:12 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
97d5402
Parents:
1b4b1d9
Message:

2011-06-28 Joel Sherrill <joel.sherrill@…>

  • run_scenarios: Take name/full path of simulator instance -- not just directory -- since name may be unique.
Location:
schedsim/shell
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • schedsim/shell/ChangeLog

    r1b4b1d9 r5686d7d  
     12011-06-28      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * run_scenarios: Take name/full path of simulator instance -- not
     4        just directory -- since name may be unique.
     5
    162011-06-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • schedsim/shell/run_scenarios

    r1b4b1d9 r5686d7d  
    2323cat <<EOF
    2424run_scenarios [options]
     25  -s         - specify scheduler simulator executable (REQUIRED)
    2526  -1         - toggle running single CPU scenarios (default=no)
    2627  -4         - toggle running four CPU scenarios (default=no)
    2728  -A         - toggle all scenario flags
     29  -v         - toggle verbose output (default=no)
    2830EOF
    2931}
     
    4042do_one=no
    4143do_four=no
    42 schedsim_dir=
     44schedsim=
    4345
    44 while getopts vd:A14 OPT
     46while getopts vs:A14 OPT
    4547do
    4648  case "$OPT" in
    4749    v) verbose=`toggle ${verbose}` ;;
    48     d) schedsim_dir=${OPTARG} ;;
     50    s) schedsim=${OPTARG} ;;
    4951    A) do_all=`toggle ${do_all}`   ;;
    5052    1) do_one=`toggle ${do_one}`   ;;
     
    5456done
    5557
    56 if [ "X${schedsim_dir}" != "X" ] ; then
    57   test -d ${schedsim_dir} || fatal ${schedsim_dir} is not readable
    58   schedsim_dir=${schedsim_dir}/
     58if [ "X${schedsim}" != "X" ] ; then
     59  type ${schedsim} >/dev/null 2>&1 || fatal ${schedsim} not found
    5960else
    60   fatal "schedsim binary directory must be specified with -d option"
     61  fatal "schedsim binary must be specified with -s option"
    6162fi
    6263
     
    8586  output=${base}.output
    8687  vecho Running ${scenario}
    87   ${schedsim_dir}/schedsim $scenario  >${output}
     88  ${schedsim} $scenario  >${output}
    8889  if [ -r ${expected} ] ; then
    8990    diff ${output} ${expected} >/dev/null
Note: See TracChangeset for help on using the changeset viewer.