summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-05-19 23:07:22 +1000
committerChris Johns <chrisj@rtems.org>2014-05-28 23:44:26 +1000
commit431bb85dde2b3eae34ff5070b4e2a507bf8bdfa3 (patch)
tree0718bd16ffd03cc7b370588a72814cfd6aa135d1 /tools
parentIgnore emacs backfiles and TAGS. (diff)
downloadrtems-431bb85dde2b3eae34ff5070b4e2a507bf8bdfa3.tar.bz2
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build/rtems-test-check30
1 files changed, 27 insertions, 3 deletions
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 <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=""