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

Last change on this file since 258bda3 was 258bda3, checked in by Chris Johns <chrisj@…>, on Apr 3, 2017 at 10:11:24 PM

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: 4.0 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-tests-fstests],
5        [_RTEMS_VERSION],[https://devel.rtems.org/newticket])
6AC_CONFIG_SRCDIR([imfs_support])
7RTEMS_TOP([../..],[..])
8
9RTEMS_CANONICAL_TARGET_CPU
10
11AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
12AM_MAINTAINER_MODE
13
14RTEMS_ENV_RTEMSBSP
15
16RTEMS_PROJECT_ROOT
17
18RTEMS_PROG_CC_FOR_TARGET
19
20RTEMS_CANONICALIZE_TOOLS
21
22RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
23AC_CONFIG_HEADER([config.h])
24
25RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
26AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
27
28# but newlib doesn't have sys/mman.h
29AC_CHECK_HEADERS([sys/mman.h])
30
31# FIXME: newlib should supply declaration of pthread_rwlock_unlock()
32AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]])
33
34# FIXME: newlib should supply declaration of pthread_atfork()
35AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]])
36
37# FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1
38# Likely an anachronism in RTEMS.
39AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]])
40
41# FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1
42# Likely an anachronism in RTEMS.
43AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]])
44
45# FIXME: RTEMS presumes pthread_attr_setcputime to be IEEE Std 1003.1
46# Likely an anachronism in RTEMS.
47AC_CHECK_DECLS([pthread_attr_setcputime],[],[],[[#include <pthread.h>]])
48
49# Added to pthreads after initial revision.  May not be in toolset
50AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])
51
52# Added to pthreads after initial revision.  May not be in toolset
53AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])
54
55# Added to pthreads after initial revision.  May not be in toolset
56AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
57
58# Added to pthreads after initial revision.  May not be in toolset
59AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
60
61# FIXME: adjtime is a non-standardized BSD/Linux extension
62# RTEMS should not rely on adjtime
63AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])
64
65# FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h,
66# RTEMS provides a stub, despite newlib doesn't have sys/mman.h
67AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
68
69# FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h
70# RTEMS provides it, despite newlib doesn't declare it.
71AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>])
72
73# FIXME: We should get rid of this. It's a cludge.
74AC_CHECK_SIZEOF([off_t])
75AC_CHECK_SIZEOF([blksize_t])
76AC_CHECK_SIZEOF([blkcnt_t])
77
78# Explicitly list all Makefiles here
79AC_CONFIG_FILES([Makefile
80fsbdpart01/Makefile
81fsdosfsformat01/Makefile
82fsdosfsname01/Makefile
83fsdosfsname02/Makefile
84fsdosfssync01/Makefile
85fsdosfswrite01/Makefile
86fsfseeko01/Makefile
87fsimfsconfig01/Makefile
88fsimfsconfig02/Makefile
89fsimfsconfig03/Makefile
90fsimfsgeneric01/Makefile
91fsjffs2gc01/Makefile
92fsnofs01/Makefile
93fsrfsbitmap01/Makefile
94fsrofs01/Makefile
95imfs_fserror/Makefile
96imfs_fslink/Makefile
97imfs_fspatheval/Makefile
98imfs_fspermission/Makefile
99imfs_fsrdwr/Makefile
100imfs_fsscandir01/Makefile
101imfs_fssymlink/Makefile
102imfs_fstime/Makefile
103jffs2_fserror/Makefile
104jffs2_fslink/Makefile
105jffs2_fspatheval/Makefile
106jffs2_fspermission/Makefile
107jffs2_fsrdwr/Makefile
108jffs2_fsscandir01/Makefile
109jffs2_fssymlink/Makefile
110jffs2_fstime/Makefile
111mdosfs_fserror/Makefile
112mdosfs_fspatheval/Makefile
113mdosfs_fsrdwr/Makefile
114mdosfs_fsscandir01/Makefile
115mdosfs_fsstatvfs/Makefile
116mdosfs_fstime/Makefile
117mimfs_fserror/Makefile
118mimfs_fslink/Makefile
119mimfs_fspatheval/Makefile
120mimfs_fspermission/Makefile
121mimfs_fsrdwr/Makefile
122mimfs_fsrename/Makefile
123mimfs_fsscandir01/Makefile
124mimfs_fssymlink/Makefile
125mimfs_fstime/Makefile
126mrfs_fserror/Makefile
127mrfs_fsfpathconf/Makefile
128mrfs_fslink/Makefile
129mrfs_fspatheval/Makefile
130mrfs_fspermission/Makefile
131mrfs_fsrdwr/Makefile
132mrfs_fsscandir01/Makefile
133mrfs_fssymlink/Makefile
134mrfs_fstime/Makefile
135])
136AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.