forked from Imagelibrary/rtems
- 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.
137 lines
4.0 KiB
Plaintext
137 lines
4.0 KiB
Plaintext
## Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.69])
|
|
AC_INIT([rtems-c-src-tests-fstests],
|
|
[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
|
|
AC_CONFIG_SRCDIR([imfs_support])
|
|
RTEMS_TOP([../..],[..])
|
|
|
|
RTEMS_CANONICAL_TARGET_CPU
|
|
|
|
AM_INIT_AUTOMAKE([no-define foreign 1.12.2])
|
|
AM_MAINTAINER_MODE
|
|
|
|
RTEMS_ENV_RTEMSBSP
|
|
|
|
RTEMS_PROJECT_ROOT
|
|
|
|
RTEMS_PROG_CC_FOR_TARGET
|
|
|
|
RTEMS_CANONICALIZE_TOOLS
|
|
|
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
|
AC_CONFIG_HEADER([config.h])
|
|
|
|
RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
|
|
AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
|
|
|
|
# but newlib doesn't have sys/mman.h
|
|
AC_CHECK_HEADERS([sys/mman.h])
|
|
|
|
# FIXME: newlib should supply declaration of pthread_rwlock_unlock()
|
|
AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]])
|
|
|
|
# FIXME: newlib should supply declaration of pthread_atfork()
|
|
AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]])
|
|
|
|
# FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1
|
|
# Likely an anachronism in RTEMS.
|
|
AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]])
|
|
|
|
# FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1
|
|
# Likely an anachronism in RTEMS.
|
|
AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]])
|
|
|
|
# FIXME: RTEMS presumes pthread_attr_setcputime to be IEEE Std 1003.1
|
|
# Likely an anachronism in RTEMS.
|
|
AC_CHECK_DECLS([pthread_attr_setcputime],[],[],[[#include <pthread.h>]])
|
|
|
|
# Added to pthreads after initial revision. May not be in toolset
|
|
AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])
|
|
|
|
# Added to pthreads after initial revision. May not be in toolset
|
|
AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])
|
|
|
|
# Added to pthreads after initial revision. May not be in toolset
|
|
AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
|
|
|
|
# Added to pthreads after initial revision. May not be in toolset
|
|
AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
|
|
|
|
# FIXME: adjtime is a non-standardized BSD/Linux extension
|
|
# RTEMS should not rely on adjtime
|
|
AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])
|
|
|
|
# FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h,
|
|
# RTEMS provides a stub, despite newlib doesn't have sys/mman.h
|
|
AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
|
|
|
|
# FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h
|
|
# RTEMS provides it, despite newlib doesn't declare it.
|
|
AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>])
|
|
|
|
# FIXME: We should get rid of this. It's a cludge.
|
|
AC_CHECK_SIZEOF([off_t])
|
|
AC_CHECK_SIZEOF([blksize_t])
|
|
AC_CHECK_SIZEOF([blkcnt_t])
|
|
|
|
# Explicitly list all Makefiles here
|
|
AC_CONFIG_FILES([Makefile
|
|
fsbdpart01/Makefile
|
|
fsdosfsformat01/Makefile
|
|
fsdosfsname01/Makefile
|
|
fsdosfsname02/Makefile
|
|
fsdosfssync01/Makefile
|
|
fsdosfswrite01/Makefile
|
|
fsfseeko01/Makefile
|
|
fsimfsconfig01/Makefile
|
|
fsimfsconfig02/Makefile
|
|
fsimfsconfig03/Makefile
|
|
fsimfsgeneric01/Makefile
|
|
fsjffs2gc01/Makefile
|
|
fsnofs01/Makefile
|
|
fsrfsbitmap01/Makefile
|
|
fsrofs01/Makefile
|
|
imfs_fserror/Makefile
|
|
imfs_fslink/Makefile
|
|
imfs_fspatheval/Makefile
|
|
imfs_fspermission/Makefile
|
|
imfs_fsrdwr/Makefile
|
|
imfs_fsscandir01/Makefile
|
|
imfs_fssymlink/Makefile
|
|
imfs_fstime/Makefile
|
|
jffs2_fserror/Makefile
|
|
jffs2_fslink/Makefile
|
|
jffs2_fspatheval/Makefile
|
|
jffs2_fspermission/Makefile
|
|
jffs2_fsrdwr/Makefile
|
|
jffs2_fsscandir01/Makefile
|
|
jffs2_fssymlink/Makefile
|
|
jffs2_fstime/Makefile
|
|
mdosfs_fserror/Makefile
|
|
mdosfs_fspatheval/Makefile
|
|
mdosfs_fsrdwr/Makefile
|
|
mdosfs_fsscandir01/Makefile
|
|
mdosfs_fsstatvfs/Makefile
|
|
mdosfs_fstime/Makefile
|
|
mimfs_fserror/Makefile
|
|
mimfs_fslink/Makefile
|
|
mimfs_fspatheval/Makefile
|
|
mimfs_fspermission/Makefile
|
|
mimfs_fsrdwr/Makefile
|
|
mimfs_fsrename/Makefile
|
|
mimfs_fsscandir01/Makefile
|
|
mimfs_fssymlink/Makefile
|
|
mimfs_fstime/Makefile
|
|
mrfs_fserror/Makefile
|
|
mrfs_fsfpathconf/Makefile
|
|
mrfs_fslink/Makefile
|
|
mrfs_fspatheval/Makefile
|
|
mrfs_fspermission/Makefile
|
|
mrfs_fsrdwr/Makefile
|
|
mrfs_fsscandir01/Makefile
|
|
mrfs_fssymlink/Makefile
|
|
mrfs_fstime/Makefile
|
|
])
|
|
AC_OUTPUT
|