Changeset 431bb85d in rtems


Ignore:
Timestamp:
05/19/14 13:07:22 (10 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, 5, master
Children:
5b45d51
Parents:
dac5696
git-author:
Chris Johns <chrisj@…> (05/19/14 13:07:22)
git-committer:
Chris Johns <chrisj@…> (05/28/14 13:44:26)
Message:

rtems-test-check: Ignore tests which require real ISR based clock tick

BSPs for simulators which do not include a clock tick interrupt source
are incapable of running some tests successfully. This is a common
characteristic of some BSPs and a fixed set of tests. There is no point
in duplicating this list of tests in those BSPs test configuration.

Read testsuites/testdata/require-tick-isr.tcfg for details.

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/automake/test-subdirs.am

    rdac5696 r431bb85d  
    2323        echo "BSP Testsuite Data: $$vtdata"; \
    2424        list=`$(top_srcdir)/../../tools/build/rtems-test-check \
    25                  $$tdata $(RTEMS_BSP) $(_SUBDIRS)`; \
     25                 $$tdata $(top_srcdir)/.. $(RTEMS_BSP) $(_SUBDIRS)`; \
    2626        for subdir in $$list; do \
    2727          echo "Making $$target in $$subdir"; \
  • tools/build/rtems-test-check

    rdac5696 r431bb85d  
    66
    77#
    8 # usage: rtems-test-check <bsp-test-database> <bsp> <tests..>
     8# usage: rtems-test-check <bsp-test-database> <includes> <bsp> <tests..>
    99#
    1010
     
    1616testdata="$1"
    1717shift
     18includepath="$1"
     19shift
    1820bsp="$1"
    1921shift
     
    2426# If there is no testdata all tests are valid.
    2527#
     28
    2629if test -f $testdata; then
    2730  disabled_tests=""
    28   for t in $(cat $testdata | sed -e 's/#.*$//' -e '/^$/d');
     31  while [ ! -z $testdata ];
    2932  do
    30    disabled_tests="${disabled_tests} ${t}"
     33    for td in $testdata;
     34    do
     35      ntd=""
     36      exec 3<& 0
     37      exec 0<$td
     38      while read line
     39      do
     40        line=$(echo $line | sed -e 's/#.*$//' -e '/^$/d')
     41        if [ ! -z "$line" ]; then
     42          include=$(echo $line | sed -e "s/include:.*/yes/g")
     43          if [ "$include" = "yes" ]; then
     44            inf=$(echo $line | sed -e "s/include://g" -e 's/^[ \t]//;s/[ \t]$//')
     45            if test -f $includepath/$inf; then
     46              ntd="$includepath/$inf $ntd"
     47            fi
     48          else
     49            disabled_tests="${disabled_tests} $line"
     50          fi
     51        fi
     52      done
     53    done
     54    testdata=$ntd
    3155  done
    3256
Note: See TracChangeset for help on using the changeset viewer.