Commit Graph

22 Commits

Author SHA1 Message Date
Sebastian Huber
b015c01443 build: Do not install test programs 2019-01-30 09:46:35 +01:00
Sebastian Huber
47d5aee5d2 build: Add missing $(LDADD) for dependencies 2019-01-14 09:38:13 +01:00
Sebastian Huber
477bca2d61 build: Remove local.am 2018-10-10 07:57:47 +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
Chris Johns
32f2629bb7 testsuite/benchmarks: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10: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
c4b8b147dd tests: Use simple console driver
Update #3170.
Update #3199.
2017-11-06 07:26:42 +01:00
Sebastian Huber
8c1f4064ad tests: Use printf() instead of fprintf()
Update #3170.
Update #3199.
2017-11-02 14:08:32 +01:00
Sebastian Huber
af4355459e tests: Remove TEST_INIT
The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.

Update #3170.
Update #3199.
2017-10-28 13:33:56 +02:00
Chris Johns
98c6d50145 testsuite: Use printk for all test output where possible.
- Remove the printf support leaving the direct printk support configured
  with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf
  call to printk.
- Control the test's single init for functions and global data with
  TEST_INIT and not CONFIGURE_INIT. They are now separate.

Updates #3170.
2017-10-23 16:25:45 +11:00
Joel Sherrill
78eb6132dd dhrystone/dhry_1.c: Move assignment to before start of timer 2017-04-26 10:54:03 -05:00
Joel Sherrill
e4633241ca linpack/linpack-pc.c: Fix no return statement warning 2017-04-23 11:51:22 -05:00
Joel Sherrill
906e67fe88 dhrystone/dhry_1.c: Fix may be used uninitialized warning 2017-04-23 11:50:46 -05:00
Sebastian Huber
662b301d34 dhrystone: Fix warnings
Close #2977.
2017-04-05 07:23:09 +02:00
Chris Johns
258bda306b 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.
2017-04-04 08:24:22 +10:00
Sebastian Huber
a1c60b5690 benchmarks/whetstone: Port to RTEMS
Update #2958.
2017-03-29 07:42:50 +02:00
Sebastian Huber
3785f93779 benchmarks/whetstone: Import
Import whetstone sources from:

http://www.netlib.org/benchmark/whetstone.c

Update #2958.
2017-03-29 07:42:49 +02:00
Sebastian Huber
0a16d5f4a0 benchmarks/linpack: Port to RTEMS
Close #2958.
2017-03-29 07:42:46 +02:00
Sebastian Huber
8783660741 benchmarks/linpack: Import
Import linpack sources from:

http://www.netlib.org/benchmark/linpack-pc.c

Update #2958.
2017-03-29 07:42:46 +02:00
Sebastian Huber
954ca41055 benchmarks/dhrystone: Port to RTEMS
Update #2958.
2017-03-29 07:42:43 +02:00
Sebastian Huber
317c1f41ea benchmarks/dhrystone: Import
Import dhrystone sources from:

http://www.netlib.org/benchmark/dhry-c

Update #2958.
2017-03-29 07:29:01 +02:00
Sebastian Huber
0027682546 benchmarks: Add benchmark templates
Update #2958.
2017-03-29 07:29:01 +02:00