Changeset 205f794 in rtems-schedsim


Ignore:
Timestamp:
May 26, 2014, 7:08:12 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
d36a128
Parents:
d8918c1
Message:

Add initial support for make check

+ Enhance run_scenario to run from build tree. Required specification
of both executable and scenario directory

+ check-local stanzas have first cut at which scenarios to run for
each scheduler.

TODO:

+ Verify behavior of each scheduler versus expected output.

+ Ensure list of scenarios executed is complete and appropriate. For
example, SMP schedulers should avoid disable preemption scenarios.

Location:
schedsim/shell
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • schedsim/shell/run_scenarios

    rd8918c1 r205f794  
    2222run_scenarios [options]
    2323  -s         - specify scheduler simulator executable (REQUIRED)
     24  -S         - specify scenario base direcroty (./scenarios assumed)
    2425  -1         - toggle running single CPU scenarios (default=no)
    2526  -4         - toggle running four CPU scenarios (default=no)
     
    4142do_four=no
    4243schedsim=
     44scenarios_dir=.
    4345
    44 while getopts vs:A14 OPT
     46while getopts vs:AS:14 OPT
    4547do
    4648  case "$OPT" in
     
    4850    s) schedsim=${OPTARG} ;;
    4951    A) do_all=`toggle ${do_all}`   ;;
     52    S) scenarios_dir=${OPTARG}   ;;
    5053    1) do_one=`toggle ${do_one}`   ;;
    5154    4) do_four=`toggle ${do_four}` ;;
     
    6063fi
    6164
    62 test -d scenarios || fatal scenarios directory is not present
     65scen=${scenarios_dir}/scenarios
     66test -d ${scen}|| \
     67    fatal ${scen} directory is not present
    6368
    6469if [ ${do_all} = "yes" ]; then
    65   SCENARIOS="scenarios/*.scen"
     70  SCENARIOS="${scen}/*.scen"
    6671else
    6772  SCENARIOS=
     
    6974
    7075if [ ${do_one} = "yes" ]; then
    71   SCENARIOS="${SCENARIOS} scenarios/cpus1*.scen"
     76  SCENARIOS="${SCENARIOS} ${scen}/cpus1*.scen"
    7277fi
    7378
    7479if [ ${do_four} = "yes" ]; then
    75   SCENARIOS="${SCENARIOS} scenarios/cpus4*.scen"
     80  SCENARIOS="${SCENARIOS} ${scen}/cpus4*.scen"
    7681fi
    7782
  • schedsim/shell/schedsim_priority/Makefile.am

    rd8918c1 r205f794  
    4040## schedsim_priority_LDADD +=-Wl,--end-group
    4141
     42check-local:
     43        @echo Running tests
     44        $(srcdir)/../run_scenarios \
     45            -s $(builddir)/schedsim_priority \
     46            -S $(srcdir) \
     47            -A
     48
    4249include $(top_srcdir)/../automake/host.am
  • schedsim/shell/schedsim_smppriority/Makefile.am

    rd8918c1 r205f794  
    4141## schedsim_smppriority_LDADD +=-Wl,--end-group
    4242
     43check-local:
     44        @echo Running tests from SMP Simple
     45        $(srcdir)/../run_scenarios \
     46            -s $(builddir)/schedsim_smppriority \
     47            -S $(srcdir)../schedsim_smpsimple \
     48            -A
     49        @echo Running tests from Priority
     50        $(srcdir)/../run_scenarios \
     51            -s $(builddir)/schedsim_smppriority \
     52            -S $(srcdir)../schedsim_priority \
     53            -A
     54
    4355include $(top_srcdir)/../automake/host.am
  • schedsim/shell/schedsim_smppriority_affinity/Makefile.am

    rd8918c1 r205f794  
    4141## schedsim_smppriority_affinity_LDADD +=-Wl,--end-group
    4242
     43check-local:
     44        @echo Running tests from SMP Priority Affinity
     45        $(srcdir)/../run_scenarios \
     46            -s $(builddir)/schedsim_smppriority_affinity \
     47            -S $(srcdir) \
     48            -A
     49        @echo Running tests from SMP Simple Priority
     50        $(srcdir)/../run_scenarios \
     51            -s $(builddir)/schedsim_smppriority_affinity \
     52            -S $(srcdir)/../schedsim_smpsimple \
     53            -A
     54        @echo Running select tests from Priority
     55        $(srcdir)/../run_scenarios \
     56            -s $(builddir)/schedsim_smppriority_affinity \
     57            -S $(srcdir)/../schedsim_smpsimple \
     58            -A
     59
    4360include $(top_srcdir)/../automake/host.am
  • schedsim/shell/schedsim_smpsimple/Makefile.am

    rd8918c1 r205f794  
    4040## schedsim_smpsimple_LDADD +=-Wl,--end-group
    4141
     42check-local:
     43        @echo Running tests from SMP Simple Priority
     44        $(srcdir)/../run_scenarios \
     45            -s $(builddir)/schedsim_smpsimple \
     46            -S $(srcdir) \
     47            -A
     48        @echo Running tests from Priority
     49        $(srcdir)/../run_scenarios \
     50            -s $(builddir)/schedsim_smpsimple \
     51            -S $(srcdir)../schedsim_priority \
     52            -A
     53
    4254include $(top_srcdir)/../automake/host.am
Note: See TracChangeset for help on using the changeset viewer.