Commit Graph

50 Commits

Author SHA1 Message Date
Sebastian Huber
51b3cbca11 tests: Use rtems_task_exit()
Update #3533.
2018-10-05 13:41:07 +02:00
Sebastian Huber
c192109f72 samples: Fix warnings 2018-07-24 10:06:49 +02:00
Chris Johns
d027e6bb8e testsuite/samples: 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
7b00c2fac5 tests: Use <tmacros.h> in all tests
Update #3170.
Update #3199.
2017-11-06 09:06:20 +01:00
Sebastian Huber
c4b8b147dd tests: Use simple console driver
Update #3170.
Update #3199.
2017-11-06 07:26:42 +01:00
Sebastian Huber
46ddc3c5da tests: Use rtems_print_printer_fprintf_putc()
Use rtems_print_printer_fprintf_putc() instead of
rtems_print_printer_printf() to output via rtems_putc().

Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
f703e7f5c7 tests: Move rtems_test_printer definition
Statically initialize it to use printk().

Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
07e178005a tests: Use floating point task
These tests directly or indirectly use fprintf(), etc. which may use the
floating point unit.

Update #3076.
2017-07-18 14:14:34 +02:00
Chris Johns
3039e1840c testsuite: Fix networking samples to use the RTEMS printer. 2016-05-26 15:52:19 +10:00
Sebastian Huber
f87ede57a2 libnetworking: Fix close of active sockets
Send a special event to notify tasks waiting for a socket state change
in case this socket gets closed.  This prevents a use after free.

Close #785.
2015-01-20 07:11:58 +01:00
Sebastian Huber
a0b1b5edb8 Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
This define was superfluous, undocumented and used inconsistently.
2014-12-16 11:34:38 +01:00
Joel Sherrill
3324383ce0 testsuites: Remove BSP_SMALL_MEMORY 2014-05-06 18:31:00 -05:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
9391f6d663 tests/samples: Use <rtems/test.h> 2014-03-17 09:17:36 +01:00
Joel Sherrill
5f0cd3499c samples - Eliminate missing prototype warnings 2012-05-31 10:06:16 -05: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
Ralf Corsépius
4dec3529a1 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
cd06294a08 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1589/build
	* base_mp/node1/Makefile.am, base_mp/node2/Makefile.am,
	base_sp/Makefile.am, capture/Makefile.am, cdtest/Makefile.am,
	fileio/Makefile.am, hello/Makefile.am, iostream/Makefile.am,
	loopback/Makefile.am, minimum/Makefile.am, nsecs/Makefile.am,
	paranoia/Makefile.am, pppd/Makefile.am, ticker/Makefile.am,
	unlimited/Makefile.am: Remove obsolete optional manager capability.
2011-12-08 21:38:29 +00:00
Ralf Corsepius
e3135514a8 Add HAVE_CONFIG_H. 2011-02-22 10:58:44 +00:00
Sebastian Huber
f4e67ff72e 2010-12-08 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* loopback/init.c: Loop back interface will be initialized now during
	normal initialization via rtems_bsdnet_initialize_network().
2010-12-08 10:32:05 +00:00
Ralf Corsepius
1901ba4746 Adjust return-type of rtems_bsdnet_loopattach to int to match with rtems/rtems_bsdnet.h. 2009-11-02 04:24:14 +00:00
Ralf Corsepius
aa67da0998 Add prototype for rtems_bsdnet_loopattach.
Remove evil type-cast.
2009-10-26 09:16:12 +00:00
Ralf Corsepius
efb0cf6947 2009-06-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* loopback/init.c: Add missing initializers.
2009-06-04 06:50:04 +00:00
Chris Johns
c0ec0d82d3 2009-04-28 Chris Johns <chrisj@rtems.org>
* fileio/init.c, fileio/system.h, iostream/init.cc,
        loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if
        BSP_SMALL_MEMORY is defined. Remove this code once a better way is
        supported by the build system.
2009-04-28 05:04:11 +00:00
Ralf Corsepius
3d5483771c Eliminate _exe_/.exe. 2009-04-03 12:55:13 +00:00
Joel Sherrill
dd61160701 2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* base_sp/Makefile.am, hello/Makefile.am, iostream/Makefile.am,
	loopback/Makefile.am, nsecs/Makefile.am,
	pppd/Makefile.am, ticker/Makefile.am, ticker/system.h,
	unlimited/Makefile.am: Add optional managers to Makefiles. Clean up
	test cases so last output line follows END OF pattern. Make sure test
	case all run. All tests appeared ok on sis.
	* nsecs/init.c: Commit hack so test will compile when POSIX is
	disabled.  Remove hack when clock_gettime() is present even when
	--disable-posix.
2007-05-11 19:45:50 +00:00
Joel Sherrill
b9bea9f74d 2007-04-05 Joel Sherrill <joel@OARcorp.com>
* loopback/init.c: Change all obsoleted CONFIGURE_TEST_NEEDS_XXX
	configuration constants to CONFIGURE_APPLICATION_NEEDS_XXX.
2007-04-05 15:22:58 +00:00
Joel Sherrill
4116e57e75 2007-03-26 Joel Sherrill <joel@OARcorp.com>
* loopback/init.c: Add CVS Id.
2007-03-26 22:22:37 +00:00
Joel Sherrill
b767f96678 2007-02-21 Joel Sherrill <joel@OARcorp.com>
* loopback/init.c: Fix exit paths in client thread and main test
	thread.
2007-02-21 23:44:03 +00:00
Ralf Corsepius
d4f5ddcb85 Eliminate scndir, docdir. Use rtems_testsdir instead. 2006-07-11 04:54:10 +00:00
Ralf Corsepius
a6b588d649 Convert to using *_PROGRAMS. 2005-11-13 06:46:05 +00:00
Ralf Corsepius
3bb5d94490 Rework. 2005-11-11 14:33:33 +00:00
Ralf Corsepius
4024e57803 Cosmetics. 2005-11-11 10:26:50 +00:00
Ralf Corsepius
7e3887773a Eliminate TEST. 2005-11-11 09:03:24 +00:00
Ralf Corsepius
b669ec7ba5 Expand sample.am. 2005-11-11 07:36:47 +00:00
Ralf Corsepius
cb2818800d Eliminate DOCTYPES. 2005-11-10 22:21:20 +00:00
Ralf Corsepius
0ca5cba879 s/SAMPLE/TEST/ for improved consistency with other tests. 2005-11-10 14:52:28 +00:00
Ralf Corsepius
c4b6f76677 Remove SRCS, PRINT_SRCS. 2005-11-07 09:27:48 +00:00
Ralf Corsepius
d66557fac4 Switch back to include compile.am instead of amcompile.am 2005-11-07 09:09:26 +00:00
Ralf Corsepius
b98d0013c1 Partial conversion to automake. 2005-11-07 07:30:36 +00:00
Ralf Corsepius
91435e6bd0 2005-05-10 Ralf Corsepius <ralf.corsepius@rtems.org>
* loopback/init.c: socklen_t.
2005-05-10 08:45:23 +00:00
Ralf Corsepius
51ca358ac7 2004-05-10 Ralf Corsepius <ralf_corsepius@rtems.org>
* configure.ac: Add CXX-checks. New conditionals CXXTESTS, MPTESTS,
	NETTESTS. Add iostream/.
	* Makefile.am, base_mp/node1/Makefile.am, base_mp/node2/Makefile.am
	cdtest/Makefile.am, loopback/Makefile.am, pppd/Makefile.am:
	Reflect changes above.
	* cdtest/main.cc: Adaptation to new C++ standards.
2004-05-10 16:02:11 +00:00
Ralf Corsepius
c8fea7a402 * base_mp/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
* base_sp/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* cdtest/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* fileio/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* hello/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* loopback/init.c: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* minimum/init.c: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* paranoia/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* pppd/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* ticker/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* unlimited/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
2004-04-01 15:16:23 +00:00
Ralf Corsepius
a00ee402bf 2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* base_mp/node1/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
	Add PRE/TMPINSTALL_FILES to CLEANFILES.
	* base_mp/node2/Makefile.am: Ditto.
	* base_sp/Makefile.am: Ditto.
	* cdtest/Makefile.am: Ditto.
	* fileio/Makefile.am: Ditto.
	* hello/Makefile.am: Ditto.
	* loopback/Makefile.am: Ditto.
	* minimum/Makefile.am: Ditto.
	* paranoia/Makefile.am: Ditto.
	* pppd/Makefile.am: Ditto.
	* ticker/Makefile.am: Ditto.
	* unlimited/Makefile.am: Ditto.
2004-01-14 07:49:37 +00:00
Ralf Corsepius
9fa380ef52 2003-12-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* base_mp/Makefile.am: Reformat.
	* base_mp/node1/Makefile.am: Remove all-local: $(ARCH).
	* base_mp/node2/Makefile.am: Remove all-local: $(ARCH).
	* base_sp/Makefile.am: Remove all-local: $(ARCH).
	* cdtest/Makefile.am: Remove all-local: $(ARCH).
	* fileio/Makefile.am: Remove all-local: $(ARCH).
	* hello/Makefile.am: Remove all-local: $(ARCH).
	* loopback/Makefile.am: Remove all-local: $(ARCH).
	* minimum/Makefile.am: Remove all-local: $(ARCH).
	* paranoia/Makefile.am: Remove all-local: $(ARCH).
	* pppd/Makefile.am: Remove all-local: $(ARCH).
	* ticker/Makefile.am: Remove all-local: $(ARCH).
	* unlimited/Makefile.am: Remove all-local: $(ARCH).
2003-12-01 21:21:38 +00:00
Ralf Corsepius
ebb7d37156 2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Makefile.am: Reflect having moved automake.
	base_mp/Makefile.am: Reflect having moved automake.
	base_mp/node1/Makefile.am: Reflect having moved automake.
	base_mp/node2/Makefile.am: Reflect having moved automake.
	base_sp/Makefile.am: Reflect having moved automake.
	cdtest/Makefile.am: Reflect having moved automake.
	fileio/Makefile.am: Reflect having moved automake.
	hello/Makefile.am: Reflect having moved automake.
	loopback/Makefile.am: Reflect having moved automake.
	minimum/Makefile.am: Reflect having moved automake.
	paranoia/Makefile.am: Reflect having moved automake.
	pppd/Makefile.am: Reflect having moved automake.
	ticker/Makefile.am: Reflect having moved automake.
	unlimited/Makefile.am: Reflect having moved automake.
2003-08-16 16:27:32 +00:00
Joel Sherrill
25b957c10a 2003-01-27 Joel Sherrill <joel@OARcorp.com>
* Makefile.am, configure.ac: Added new test loopback which shows how to
	use the loopback interface. Thank you Eric Norum for a portable
	target independent test which exercises the TCP/IP. This should
	prevent massive failures in the TCP/IP stack from reaching the
	street.
	* loopback/.cvsignore, loopback/Makefile.am, loopback/README,
	loopback/init.c, loopback/loopback.scn: New files.
2003-01-27 23:30:53 +00:00