Commit Graph

29 Commits

Author SHA1 Message Date
Sebastian Huber
ae716da79f ada/sp19: Add m4 generated sptest.adb
Update #3818.
2019-11-29 19:12:45 +01:00
Sebastian Huber
1fca166597 testsuites/ada: Introduce init.c files
Provide an init.c for each Ada test instead of the #include <config.h>
magic which works only due to hand crafted include paths.

Update #3818.
2019-11-27 11:50:09 +01:00
Sebastian Huber
f51594897c ada/mptests: Make them compile clean
Fix all warnings.

Update #3818.
2019-11-12 09:47:20 +01:00
Sebastian Huber
786ae3f7df ada/samples: Avoid build system defined defines
Update #3818.
2019-11-12 09:36:20 +01:00
Sebastian Huber
6fe01e4b3d build: Move test support to librtemstest.a
One reason to move the test support into a dedicated library are the
standard output __wrap_*() functions.  They may conflict with
application level wrappers.

Update #3199.
2019-03-26 11:29:58 +01:00
Sebastian Huber
477bca2d61 build: Remove local.am 2018-10-10 07:57:47 +02:00
Sebastian Huber
234f0a2d18 build: Remove subdir-objects from Ada tests
Somehow it does not work.  With this Automake option you get:

gmake[6]: Entering directory '/build/sparc-rtems5/c/erc32/testsuites/ada/sptests'
Making all-am in sp01
gmake[7]: Entering directory '/build/sparc-rtems5/c/erc32/testsuites/ada/sptests/sp01'
gmake[7]: *** No rule to make target 'init.o', needed by 'ada_sp01.exe'.  Stop.

Update #3387.
2018-04-20 14:41:05 +02:00
Chris Johns
aa567bc1cc configure: Add subdir-objects to all automake flags.
This option silences warning with automake-1.16.1 allowing us to
upgrade to that version.

This change has been tested with automake-1.12.6 and automake-1.16.1.
It seems version 1.16.1 configures slower than 1.12.6 for the same
source and BSP. The newer versions is 6 second slower.

Close #3387.
2018-04-11 11:52:29 +10:00
Sebastian Huber
2d0bc839ed build: Remove EXTRA_DIST
A "make dist" is not supported. So, it makes no sense to have pure "make
dist" related stuff in the Makefile.am.
2018-04-04 10:09:04 +02:00
Sebastian Huber
337a186909 Add a simple task console driver
Close #3320.
2018-03-06 12:32:09 +01:00
Sebastian Huber
0d44e251d9 ada/sp04: Fix test failure due to compiler opti
The SPTEST.RUN_COUNT must be volatile since it is changed outside of the
procedure scope by the thread switch extension.
2018-02-22 16:40:16 +01:00
Sebastian Huber
bc96f3b4b8 ada: Introduce RTEMS.Size type
Some time ago the Classic API object size related parameters were
changed to use size_t.  Reflect this in the Ada bindings.

Update #3082.
2018-01-29 06:58:28 +01:00
Chris Johns
2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00
Sebastian Huber
fd5471b6b7 ada: Check C and POSIX types
Update #3256.
2017-12-04 14:15:18 +01:00
Sebastian Huber
3d7d2a37e6 ada/sp09: Fix timer server test case
A priority of zero is valid for the timer server.
2017-12-04 10:53:38 +01:00
Sebastian Huber
535d0183d8 ada/sp09: Fix region test cases 2017-12-04 10:53:38 +01:00
Sebastian Huber
6e05265f22 ada: Fix work_space_size() test support 2017-12-04 10:53:37 +01:00
Sebastian Huber
215fa23177 ada/tm04: Account for task delete behaviour change 2017-12-04 09:39:35 +01:00
Sebastian Huber
76bd25e908 ada/sp19: Add missing FP attribute 2017-12-02 20:33:15 +01:00
Sebastian Huber
dda8142f27 ada/sp07: Fix uninitialized variable
Bug was introduced by d5154d0f6a.

Updates #2493.
2017-12-01 15:22:52 +01:00
Sebastian Huber
5e05fa0f7b ada: Fix user extension support 2017-12-01 15:21:34 +01:00
Sebastian Huber
c589775aea ada: Use CONFIGURE_DISABLE_SMP_CONFIGURATION
Most Ada tests fail otherwise.

Update #3020.
2017-12-01 13:58:22 +01:00
Sebastian Huber
2178978ad4 ada/tm20: Account for optional heap protection
Reduce size of the big allocation block to account for the optional heap
protection (RTEMS_DEBUG).
2017-12-01 13:19:48 +01:00
Sebastian Huber
a01e169fd3 ada/spname01: Fix several issues 2017-12-01 13:19:48 +01:00
Sebastian Huber
f6c9334d9b ada: Add standard test begin/end message 2017-12-01 09:52:41 +01:00
Sebastian Huber
6899a8d79d ada: Delete superfluous CONFIGURE_SPTEST 2017-12-01 09:52:17 +01:00
Sebastian Huber
83ad1c5640 ada/sp04: Fix clock get
Update #2676.
2017-11-24 13:51:37 +01:00
Sebastian Huber
c4b8b147dd tests: Use simple console driver
Update #3170.
Update #3199.
2017-11-06 07:26:42 +01:00
Sebastian Huber
ee537ea3dd ada-tests: Move to testsuites/ada
This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.
2017-10-12 10:53:16 +02:00