Commit Graph

180 Commits

Author SHA1 Message Date
Joel Sherrill
7c6ff958e9 mptests/*/*.doc: Change license to BSD-2
Updates #3053.
2022-06-14 10:31:39 -05:00
Ryan Long
d036f373b9 mptests: Manually adding file headers and licenses
These files had no file header, copyright, or license. Based on git
history, added appropriate copyrights and licenses.
2022-04-27 15:19:23 -05:00
Joel Sherrill
42d4ebe1a5 testsuites/mptests/*: Change license to BSD-2.
Updates #3053.
2022-04-07 08:38:56 -05:00
Sebastian Huber
9b6362da71 rtems: Use RTEMS_WHO_AM_I for rtems_task_ident() 2021-11-18 19:59:14 +01:00
Sebastian Huber
db8f598d56 build: Remove old build system
Close #3250.
Close #4081.
2021-09-21 07:39:09 +02:00
Sebastian Huber
4a4f41ed64 rtems: Add rtems_message_queue_construct()
In contrast to message queues created by rtems_message_queue_create(), the
message queues constructed by this directive use a user-provided message buffer
storage area.

Add RTEMS_MESSAGE_QUEUE_BUFFER() to define a message buffer type for message
buffer storage areas.

Update #4007.
2020-09-28 07:16:01 +02:00
Sebastian Huber
1bb2800102 mp03: Include missing header file 2020-08-21 09:18:29 +02:00
Sebastian Huber
f6fcfea12f mptests/mp14: Include missing header file
Include <mpci.h> for MPCI_Print_statistics().

Update #3875.
2020-02-25 07:01:31 +01:00
Sebastian Huber
a00dff42cf rtems: Add and use rtems_object_get_local_node()
Update #3841.
2019-12-13 08:22:58 +01:00
Sebastian Huber
f30dd1f13b mptests: Fix configuration
Update #3818.
2019-12-13 08:22:58 +01:00
Sebastian Huber
0b520cb718 mptests: Avoid build system defined defines
Update #3818.
2019-11-12 09:36:21 +01:00
Sebastian Huber
eae263c609 mptests/mp14: Make MAX_LONG_TEST_DURATION constant
If there is a real need, it can be made a configuration option again.

Update #3818.
2019-11-12 09:36:20 +01:00
Sebastian Huber
b015c01443 build: Do not install test programs 2019-01-30 09:46:35 +01:00
Sebastian Huber
477bca2d61 build: Remove local.am 2018-10-10 07:57:47 +02:00
Sebastian Huber
51b3cbca11 tests: Use rtems_task_exit()
Update #3533.
2018-10-05 13:41:07 +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
3206879f06 testsuite/mptests: 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
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
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
Joel Sherrill
018cf74fda mptests/mp03/task1.c: Make method static to fix warning 2016-06-16 09:03:23 -05:00
Sebastian Huber
d4771e615c mptests: Fix message queue configuration 2016-03-29 13:21:32 +02:00
Joel Sherrill
596bfe3b41 mptests/*/*.c: Fix warnings 2016-03-24 11:41:22 -05:00
Aun-Ali Zaidi
d5154d0f6a api: Remove deprecated Notepads
Notepads where a feature of RTEMS' tasks that simply functioned in
the same way as POSIX keys or threaded local storage (TLS). They were
introduced well before per task variables, which are also deprecated,
and were barely used in favor of their POSIX alternatives.

In addition to their scarce usage, Notepads took up unnecessary memory.
For each task:

 - 16 32-bit integers were allocated.
 - A total of 64 bytes per task per thread.

This is especially critical in low memory and safety-critical applications.

They are also defined as uint32_t, and therefore are not guaranteed to
hold a pointer.

Lastly, they are not portable solutions for SMP and uniprocessor systems,
like POSIX keys and TLS.

updates #2493.
2015-12-24 16:52:34 -06:00
Gedare Bloom
3ac681191e cpukit: deprecate notepads
Deprecate Classic API Notepads. Mark task_set/get_note() with
the deprecated attribute, and also mark the notepads field.

Replace disable with enable option for notepads in confdefs.h,
and make notepads disabled by default. The previous option
CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is now unused and
will emit a compile-time warning. A new option
CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is available to turn
on notepads, but it also will emit a compile-time warning
to indicate that notepads are deprecated.

Closes #2265
2015-03-10 12:53:07 -04:00
Sebastian Huber
1207288022 Update bug report URL 2014-12-05 07:47:32 +01:00
Joel Sherrill
78a38fa2ae Eliminate use of /*PAGE and clean up formatting 2014-10-09 10:11:58 -05:00
Chris Johns
1461b648b7 testsuite: Add a per BSP test check for tests not to build.
Provide a file per BSP to list tests that do not build for a BSP. This change
removes the BSP_SMALL_MEMORY hack from the code. That hack was a
mistake.

Provide configuration files for each BSP with tests that cannot build.
2014-05-05 10:24:41 +10:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Gedare Bloom
fad2d38a9f RTEMS: Delete ChangeLog files.
This commit deletes all RTEMS ChangeLog files. These files have been abandoned
since converting to git version control. The historical data may be recovered
by checking out any commit before this one. Most of the contents of these
ChangeLog files can also be found in the git log.

Two external ChangeLog files, ChangeLog.slac and ChangeLog.zlib, remain.
2013-03-08 15:55:06 -05:00
Gedare Bloom
57e922c799 Revert "Add config.h.in."
This reverts commit cf42a6ea9d.
2012-08-06 13:04:24 -04:00
Ralf Corsépius
bb2b8259ea Require automake-1.12.2. 2012-07-19 15:47:55 +02:00
Ralf Corsépius
0f772813aa Require autoconf-2.69. 2012-07-19 15:44:32 +02:00
Ralf Corsépius
cf42a6ea9d Add config.h.in. 2012-05-24 07:17:05 +02:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Joel Sherrill
33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Joel Sherrill
48e02af9ca mptests - Makefile.am did not set LINK_OBJS
LINK_OBJS =

instead of

LINK_OBJS = $(mp01_node1_OBJECTS)
2012-05-04 14:59:10 -05:00
Ralf Corsépius
27a345bfb8 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Joel Sherrill
61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Joel Sherrill
d056639013 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1589/build
	* mp01/node1/Makefile.am, mp01/node2/Makefile.am,
	mp02/node1/Makefile.am, mp02/node2/Makefile.am,
	mp03/node1/Makefile.am, mp03/node2/Makefile.am,
	mp04/node1/Makefile.am, mp04/node2/Makefile.am,
	mp05/node1/Makefile.am, mp05/node2/Makefile.am,
	mp06/node1/Makefile.am, mp06/node2/Makefile.am,
	mp07/node1/Makefile.am, mp07/node2/Makefile.am,
	mp08/node1/Makefile.am, mp08/node2/Makefile.am,
	mp09/node1/Makefile.am, mp09/node2/Makefile.am,
	mp10/node1/Makefile.am, mp10/node2/Makefile.am,
	mp11/node1/Makefile.am, mp11/node2/Makefile.am,
	mp12/node1/Makefile.am, mp12/node2/Makefile.am,
	mp13/node1/Makefile.am, mp13/node2/Makefile.am,
	mp14/node1/Makefile.am, mp14/node2/Makefile.am: Remove obsolete
	optional manager capability.
2011-12-08 21:38:16 +00:00
Ralf Corsepius
3d5d192477 Add config.h.in 2011-03-01 15:27:02 +00:00
Ralf Corsepius
027e40dc03 2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add AC_CONFIG_HEADER(config.h).
2011-02-22 14:56:36 +00:00
Ralf Corsepius
70f83eb210 2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* mp01/init.c, mp01/task1.c, mp02/init.c, mp02/task1.c, mp03/delay.c,
	mp03/init.c, mp03/task1.c, mp04/init.c, mp04/task1.c, mp05/asr.c,
	mp05/init.c, mp05/task1.c, mp06/init.c, mp06/task1.c, mp07/init.c,
	mp07/task1.c, mp08/init.c, mp08/task1.c, mp09/init.c, mp09/recvmsg.c,
	mp09/sendmsg.c, mp09/task1.c, mp10/init.c, mp10/task1.c, mp10/task2.c,
	mp10/task3.c, mp11/init.c, mp12/init.c, mp13/init.c, mp13/task1.c,
	mp13/task2.c, mp14/delay.c, mp14/evtask1.c, mp14/evtmtask.c,
	mp14/exit.c, mp14/init.c, mp14/msgtask1.c, mp14/pttask1.c,
	mp14/smtask1.c: Add HAVE_CONFIG_H.
2011-02-22 10:00:46 +00:00
Ralf Corsepius
a4bc4d6e29 Add HAVE_CONFIG_H. 2011-02-22 10:00:39 +00:00
Ralf Corsepius
8ee3775f30 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
2011-02-02 15:01:43 +00:00
Joel Sherrill
ef89926a5d 2009-10-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* mp03/task1.c, mp10/init.c, mp13/task1.c: Use
	rtems_clock_get_ticks_per_second() instead of the obsoleted
	TICKS_PER_SECOND.
2009-10-30 17:04:36 +00:00
Ralf Corsepius
b2e122edb2 2009-10-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* mp01/init.c, mp02/init.c, mp02/task1.c, mp03/init.c,
	mp04/init.c, mp05/init.c, mp06/init.c, mp07/init.c,
	mp08/init.c, mp09/init.c, mp09/task1.c, mp10/init.c,
	mp11/init.c, mp12/init.c, mp13/init.c, mp14/init.c:
	Use PRI*32 to print uint32_ts.
2009-10-30 13:18:50 +00:00
Ralf Corsepius
58397d88e0 Use PRI*32 to print uint32_ts. 2009-10-30 13:18:33 +00:00