From 431bb85dde2b3eae34ff5070b4e2a507bf8bdfa3 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 19 May 2014 23:07:22 +1000 Subject: 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. --- tools/build/rtems-test-check | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/build/rtems-test-check b/tools/build/rtems-test-check index 74d12097c4..3a485c7dc8 100755 --- a/tools/build/rtems-test-check +++ b/tools/build/rtems-test-check @@ -5,7 +5,7 @@ # # -# usage: rtems-test-check +# usage: rtems-test-check # if test $# -lt 3; then @@ -15,6 +15,8 @@ fi testdata="$1" shift +includepath="$1" +shift bsp="$1" shift tests="$*" @@ -23,11 +25,33 @@ bsp_tests=${tests} # # If there is no testdata all tests are valid. # + if test -f $testdata; then disabled_tests="" - for t in $(cat $testdata | sed -e 's/#.*$//' -e '/^$/d'); + while [ ! -z $testdata ]; do - disabled_tests="${disabled_tests} ${t}" + for td in $testdata; + do + ntd="" + exec 3<& 0 + exec 0<$td + while read line + do + line=$(echo $line | sed -e 's/#.*$//' -e '/^$/d') + if [ ! -z "$line" ]; then + include=$(echo $line | sed -e "s/include:.*/yes/g") + if [ "$include" = "yes" ]; then + inf=$(echo $line | sed -e "s/include://g" -e 's/^[ \t]//;s/[ \t]$//') + if test -f $includepath/$inf; then + ntd="$includepath/$inf $ntd" + fi + else + disabled_tests="${disabled_tests} $line" + fi + fi + done + done + testdata=$ntd done bsp_tests="" -- cgit v1.2.3