source: rtems/tools/build/rtems-test-check @ 1461b648

4.115
Last change on this file since 1461b648 was 1461b648, checked in by Chris Johns <chrisj@…>, on 05/04/14 at 22:12:52

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.

  • Property mode set to 100755
File size: 791 bytes
Line 
1#! /bin/sh
2#
3# Copyright 2014 Chris Johns <chrisj@rtems.org>
4# All rights reserved
5#
6
7#
8# usage: rtems-test-check <bsp-test-database> <bsp> <tests..>
9#
10
11if test $# -lt 3; then
12  echo "error: invalid command line" >&2
13  exit 2
14fi
15
16testdata="$1"
17shift
18bsp="$1"
19shift
20tests="$*"
21bsp_tests=${tests}
22
23#
24# If there is no testdata all tests are valid.
25#
26if test -f $testdata; then
27  disabled_tests=""
28  for t in $(cat $testdata | sed -e 's/#.*$//' -e '/^$/d');
29  do
30   disabled_tests="${disabled_tests} ${t}"
31  done
32
33  bsp_tests=""
34  for t in ${tests};
35  do
36    allow="yes"
37    for dt in ${disabled_tests};
38    do
39      if test ${t} = ${dt}; then
40        allow="no"
41      fi
42    done
43    if test ${allow} = yes; then
44      bsp_tests="${bsp_tests} ${t}"
45    fi
46  done
47fi
48
49echo ${bsp_tests}
50
51exit 0
52
Note: See TracBrowser for help on using the repository browser.