source: rtems/testsuites/aclocal/rtems-test-check.m4 @ 97a48209

Last change on this file since 97a48209 was 97a48209, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 27, 2018 at 4:18:41 AM

tests: Move rtems-test-check.py

Remove shell script variant.

  • Property mode set to 100644
File size: 927 bytes
Line 
1dnl
2dnl Check a test getting it's status.
3dnl
4AC_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}/testsuites/rtems-test-check.py"
9 tdata="${RTEMS_BSP}-testsuite.tcfg"
10 tincludes="${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/config:${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.