source: rtems/testsuites/libtests/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: 3.9 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-tests-libtests],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5AC_CONFIG_SRCDIR([cpuuse])
6AC_CONFIG_HEADER([config.h])
7RTEMS_TOP([../..],[..])
8
9RTEMS_CANONICAL_TARGET_CPU
10
11AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
12AM_MAINTAINER_MODE
13
14RTEMS_ENABLE_CXX
15
16RTEMS_ENV_RTEMSBSP
17RTEMS_CHECK_RTEMS_TEST_NO_PAUSE
18
19RTEMS_PROJECT_ROOT
20
21RTEMS_PROG_CC_FOR_TARGET
22
23RTEMS_PROG_CXX_FOR_TARGET
24
25RTEMS_CANONICALIZE_TOOLS
26
27RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
28RTEMS_CHECK_CXX(RTEMS_BSP)
29RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
30RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
31
32AC_PROG_LN_S
33AC_PATH_PROG([PAX],[pax],no)
34AC_PATH_PROG([GZIP],[gzip],no)
35AC_PATH_PROG([XZ],[xz],no)
36
37AS_IF([test "x$PAX" = "xno"],[
38        AC_MSG_ERROR([pax is missing.])
39])
40
41AC_CHECK_HEADERS([complex.h])
42
43AM_CONDITIONAL(TARTESTS,test "$as_ln_s" = "ln -s" && test -n "$PAX" && test -n "$GZIP")
44AM_CONDITIONAL(TARTEST_XZ,test -n "$XZ")
45
46AM_CONDITIONAL(HAS_CXX,test "$rtems_cv_HAS_CPLUSPLUS" = "yes")
47AM_CONDITIONAL([HAS_COMPLEX],[test "$ac_cv_header_complex_h" = yes])
48AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes")
49AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
50
51# Must match the list in cpukit.
52AC_MSG_CHECKING([whether CPU supports libdl])
53case $RTEMS_CPU in
54  arm | i386 | m68k | mips | moxie | powerpc | sparc)
55   TEST_LIBDL=yes ;;
56  # bfin has an issue to resolve with libdl. See ticket #2252
57  bfin)
58   HAVE_LIBDL=no ;;
59  # lm32 has an issue to resolve with libdl. See ticket #2283
60  lm32)
61   HAVE_LIBDL=no ;;
62  # v850 has an issue to resolve with libdl. See ticket #2260
63  v850)
64   HAVE_LIBDL=no ;;
65  *)
66   TEST_LIBDL=no ;;
67esac
68AC_MSG_RESULT([$TEST_LIBDL])
69
70AS_IF([test x"$TEST_LIBDL" = x"yes"],[
71  AC_CHECK_PROG(RTEMS_LD_CHECK,rtems-ld,yes)
72  if test x"$RTEMS_LD_CHECK" != x"yes" ; then
73    TEST_LIBDL=no
74  fi
75  AC_CHECK_PROG(RTEMS_SYMS_CHECK,rtems-syms,yes)
76  if test x"$RTEMS_SYMS_CHECK" != x"yes" ; then
77    TEST_LIBDL=no
78  fi
79])
80
81AM_CONDITIONAL(DLTESTS,[test x"$TEST_LIBDL" = x"yes"])
82
83# Must match the list in cpukit.
84AC_MSG_CHECKING([whether CPU supports libdebugger])
85case $RTEMS_CPU in
86  arm | i386)
87   TEST_LIBDEBUGGER=yes ;;
88  *)
89   TEST_LIBDEBUGGER=no ;;
90esac
91AC_MSG_RESULT([$TEST_LIBDEBUGGER])
92AM_CONDITIONAL(DEBUGGERTESTS,[test x"$TEST_LIBDEBUGGER" = x"yes"])
93
94# Explicitly list all Makefiles here
95AC_CONFIG_FILES([Makefile
96POSIX/Makefile
97block01/Makefile
98block02/Makefile
99block03/Makefile
100block04/Makefile
101block05/Makefile
102block06/Makefile
103block07/Makefile
104block08/Makefile
105block09/Makefile
106block10/Makefile
107block11/Makefile
108block12/Makefile
109block13/Makefile
110block14/Makefile
111block15/Makefile
112block16/Makefile
113block17/Makefile
114bspcmdline01/Makefile
115capture01/Makefile
116complex/Makefile
117cpuuse/Makefile
118crypt01/Makefile
119debugger01/Makefile
120defaultconfig01/Makefile
121devfs01/Makefile
122devfs02/Makefile
123devfs03/Makefile
124devfs04/Makefile
125deviceio01/Makefile
126devnullfatal01/Makefile
127dl01/Makefile
128dl02/Makefile
129dl03/Makefile
130dl04/Makefile
131dl05/Makefile
132dumpbuf01/Makefile
133exit01/Makefile
134exit02/Makefile
135flashdisk01/Makefile
136ftp01/Makefile
137gxx01/Makefile
138heapwalk/Makefile
139i2c01/Makefile
140libfdt01/Makefile
141malloc02/Makefile
142malloc03/Makefile
143malloc04/Makefile
144malloctest/Makefile
145math/Makefile
146mathf/Makefile
147mathl/Makefile
148md501/Makefile
149mghttpd01/Makefile
150monitor/Makefile
151monitor02/Makefile
152mouse01/Makefile
153networking01/Makefile
154newlib01/Makefile
155putenvtest/Makefile
156pwdgrp01/Makefile
157pwdgrp02/Makefile
158rbheap01/Makefile
159rtmonuse/Makefile
160sha/Makefile
161shell01/Makefile
162sparsedisk01/Makefile
163spi01/Makefile
164stackchk/Makefile
165stackchk01/Makefile
166stringto01/Makefile
167syscall01/Makefile
168tar01/Makefile
169tar02/Makefile
170tar03/Makefile
171termios/Makefile
172termios01/Makefile
173termios02/Makefile
174termios03/Makefile
175termios04/Makefile
176termios05/Makefile
177termios06/Makefile
178termios07/Makefile
179termios08/Makefile
180termios09/Makefile
181top/Makefile
182tztest/Makefile
183uid01/Makefile
184utf8proc01/Makefile
185])
186AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.