diff options
author | Chris Johns <chrisj@rtems.org> | 2014-05-05 08:12:52 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-05-05 10:24:41 +1000 |
commit | 1461b648b7fc53b903c07da49df1bf24d96e8dca (patch) | |
tree | fd5016bd1a13b7d19cf3cbb93a6c084a69e92835 /tools | |
parent | libchip: Add asserts to dwmac driver (diff) | |
download | rtems-1461b648b7fc53b903c07da49df1bf24d96e8dca.tar.bz2 |
testsuite: Add a per BSP test check for tests not to build.
Provide a file per BSP to list tests that do not build for a BSP. This change
removes the BSP_SMALL_MEMORY hack from the code. That hack was a
mistake.
Provide configuration files for each BSP with tests that cannot build.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build/rtems-test-check | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tools/build/rtems-test-check b/tools/build/rtems-test-check new file mode 100755 index 0000000000..74d12097c4 --- /dev/null +++ b/tools/build/rtems-test-check @@ -0,0 +1,52 @@ +#! /bin/sh +# +# Copyright 2014 Chris Johns <chrisj@rtems.org> +# All rights reserved +# + +# +# usage: rtems-test-check <bsp-test-database> <bsp> <tests..> +# + +if test $# -lt 3; then + echo "error: invalid command line" >&2 + exit 2 +fi + +testdata="$1" +shift +bsp="$1" +shift +tests="$*" +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'); + do + disabled_tests="${disabled_tests} ${t}" + done + + bsp_tests="" + for t in ${tests}; + do + allow="yes" + for dt in ${disabled_tests}; + do + if test ${t} = ${dt}; then + allow="no" + fi + done + if test ${allow} = yes; then + bsp_tests="${bsp_tests} ${t}" + fi + done +fi + +echo ${bsp_tests} + +exit 0 + |