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.
This commit is contained in:
Chris Johns
2014-05-28 23:44:26 +10:00
parent dac56968e3
commit 431bb85dde
3 changed files with 100 additions and 4 deletions
+27 -3
View File
@@ -5,7 +5,7 @@
#
#
# usage: rtems-test-check <bsp-test-database> <bsp> <tests..>
# usage: rtems-test-check <bsp-test-database> <includes> <bsp> <tests..>
#
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=""