5
Last change
on this file since 18f77699 was
18f77699,
checked in by Chris Johns <chrisj@…>, on 04/08/18 at 22:18:46
|
testsuite: Autoconf test check support.
The autoconf function checks the state of a test for the BSP and
controls the building of the test.
This change is part of the testsuite Makefile.am reorganisation.
Update #3382
|
-
Property mode set to
100644
|
File size:
945 bytes
|
Line | |
---|
1 | dnl |
---|
2 | dnl Check a test getting it's status. |
---|
3 | dnl |
---|
4 | AC_DEFUN([RTEMS_TEST_CHECK], |
---|
5 | [AC_REQUIRE([RTEMS_ENV_RTEMSBSP]) |
---|
6 | AC_REQUIRE([RTEMS_SOURCE_TOP]) |
---|
7 | AC_MSG_CHECKING([${RTEMS_CPU}/${RTEMS_BSP} $1 test]) |
---|
8 | tcheck="${RTEMS_SOURCE_ROOT}/tools/build/rtems-test-check-py" |
---|
9 | tdata="${RTEMS_BSP}-testsuite.tcfg" |
---|
10 | tincludes="${RTEMS_SOURCE_ROOT}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/make/custom:${RTEMS_SOURCE_ROOT}/testsuites" |
---|
11 | if test -f $tcheck; then |
---|
12 | check_result=`$tcheck exclude ${RTEMS_BSP} $tdata $tincludes $1` |
---|
13 | else |
---|
14 | check_result=$1 |
---|
15 | fi |
---|
16 | if test "$1" = "$check_result"; then |
---|
17 | if test -f $tcheck; then |
---|
18 | test_FLAGS=`$tcheck flags ${RTEMS_BSP} $tdata $tincludes $1` |
---|
19 | fi |
---|
20 | if test -z "$test_FLAGS"; then |
---|
21 | result_msg="PASS" |
---|
22 | else |
---|
23 | result_msg="$test_FLAGS" |
---|
24 | fi |
---|
25 | else |
---|
26 | result_msg="EXCLUDED" |
---|
27 | fi |
---|
28 | AC_MSG_RESULT([$result_msg]) |
---|
29 | AM_CONDITIONAL([TEST_$1], [test "$result_msg" != "EXCLUDED"]) |
---|
30 | AC_SUBST([TEST_FLAGS_$1], [$test_FLAGS]) |
---|
31 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.