source: rtems/testsuites/samples/configure.ac @ 258bda3

5
Last change on this file since 258bda3 was 258bda3, checked in by Chris Johns <chrisj@…>, on 04/03/17 at 22:11:24

testsuite: Add a common test configuration. Fix configure.ac and Makefile.am errors.

  • Add a top level test configuration file for test states that are common to all BSPs. This saves adding a test configuration (tcfg) file for every BSP.
  • Add the test states 'user-input' and 'benchmark'. This lets 'rtems-test' stop the test rather than waiting for a timeout or letting a benchmark run without the user asking for it to run.
  • Implement rtems-test-check in Python to make it faster. The shell script had grown to a point it was noticably slowing the build down.
  • Fix the configure.ac and Makefile.am files for a number of the test directories. The files are difficiult to keep in sync with the number of tests and mistakes can happen such as tests being left out of the build. The test fsrofs01 is an example. Also a there was a mix of SUBDIRS and _SUBDIRS being used and only _SUBDIRS should be used.
  • Fix the test fsrofs01 so it compiles.

Closes #2963.

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[d7aecdc]1## Process this file with autoconf to produce a configure script.
2
[0f77281]3AC_PREREQ([2.69])
[12072880]4AC_INIT([rtems-c-src-tests-samples],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
[d7aecdc]5AC_CONFIG_SRCDIR([hello])
[027e40d]6AC_CONFIG_HEADER([config.h])
[7c48a2e8]7RTEMS_TOP([../..],[..])
[d7aecdc]8
9RTEMS_CANONICAL_TARGET_CPU
10
[bb2b825]11AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
[d7aecdc]12AM_MAINTAINER_MODE
13
14RTEMS_ENABLE_CXX
15
16RTEMS_ENV_RTEMSBSP
17
18RTEMS_PROJECT_ROOT
19
[6db34918]20RTEMS_PROG_CC_FOR_TARGET
[d7aecdc]21
[2595580]22RTEMS_PROG_CXX_FOR_TARGET
[d7aecdc]23RTEMS_CANONICALIZE_TOOLS
24
25RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
[44502ae]26RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING])
[d7aecdc]27RTEMS_CHECK_CXX(RTEMS_BSP)
[44502ae]28RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
[cdf30f05]29RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
[d7aecdc]30
[51ca358]31CXXTESTS=$HAS_CPLUSPLUS
32AS_IF([test $HAS_CPLUSPLUS = yes],[
33  AC_LANG_PUSH([C++])
34  AC_CHECK_HEADERS([cstdio cstdlib iostream],[],[CXXTESTS=no])
35  AC_CACHE_CHECK(
36  [if iostream supports std:: namespace],
37  [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE],
38  [AC_COMPILE_IFELSE(
39    [AC_LANG_PROGRAM(
[258bda3]40      [[#include <iostream>]],
[51ca358]41      [[std::cout << "hello" << std::endl;]])
42    ],
43    [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=yes],
44    [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=no])
45  ])
46  AS_IF([test $rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE = no],[CXXTESTS=no])
47  AS_IF([test $CXXTESTS = no],[
48    AC_MSG_WARN([disabling C++ tests])
49  ])
50  AC_LANG_POP
51])
52
53AM_CONDITIONAL([CXXTESTS],[test $CXXTESTS = "yes"])
[44502ae]54AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes")
55AM_CONDITIONAL(MPTESTS,test "$rtems_cv_RTEMS_MULTIPROCESSING" = "yes")
[cdf30f05]56AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_RTEMS_SMP" = "yes")
[51ca358]57
[b47a7cc]58# FIXME: We should get rid of this. It's a cludge.
59AC_CHECK_SIZEOF([time_t])
60
[d7aecdc]61# Explicitly list all Makefiles here
62AC_CONFIG_FILES([Makefile
[258bda3]63base_mp/Makefile
64base_mp/node1/Makefile
65base_mp/node2/Makefile
[d7aecdc]66base_sp/Makefile
[258bda3]67capture/Makefile
68cdtest/Makefile
69fileio/Makefile
[d7aecdc]70hello/Makefile
[258bda3]71iostream/Makefile
[4691b48]72loopback/Makefile
[d7aecdc]73minimum/Makefile
[23a0105a]74nsecs/Makefile
[d7aecdc]75paranoia/Makefile
[258bda3]76pppd/Makefile
[d7aecdc]77ticker/Makefile
78unlimited/Makefile
79])
80AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.