Changeset c552573 in rtems-schedsim


Ignore:
Timestamp:
Jun 23, 2011, 8:28:41 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
1cbbaef
Parents:
891513f
Message:

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

  • run_scenarios: Improve error checking.
Location:
schedsim/shell
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • schedsim/shell/ChangeLog

    r891513f rc552573  
     12011-06-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * run_scenarios: Improve error checking.
     4
    152011-05-17      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • schedsim/shell/run_scenarios

    r891513f rc552573  
    33#  $Id$
    44#
     5
     6fatal()
     7{
     8  echo "$*"
     9  exit 1
     10}
    511
    612toggle()
     
    5157  test -d ${schedsim_dir} || fatal ${schedsim_dir} is not readable
    5258  schedsim_dir=${schedsim_dir}/
     59else
     60  fatal "schedsim binary directory must be specified with -d option"
    5361fi
     62
     63test -d scenarios || fatal scenarios directory is not present
    5464
    5565if [ ${do_all} = "yes" ]; then
     
    6676  SCENARIOS="${SCENARIOS} scenarios/cpus4*.scen"
    6777fi
     78
     79test "X${SCENARIOS}" = "X" && fatal "No scenarios specified"
    6880
    6981for scenario in `ls -1 ${SCENARIOS}`
Note: See TracChangeset for help on using the changeset viewer.