Commit Graph

67 Commits

Author SHA1 Message Date
Joel Sherrill
acceb478ec testsuites/libtests/[p-z]*: Change license to BSD-2
Updates #3053.
2022-04-07 08:38:56 -05:00
Sebastian Huber
c7f748a100 config: Remove CONFIGURE_DISABLE_SMP_CONFIGURATION
The CONFIGURE_DISABLE_SMP_CONFIGURATION configuration option and
rtems_configuration_is_smp_enabled() were added during the SMP support
development cycle as a workaround to fix some testsuite failures in SMP
configurations.  All use cases were replaced with tests for specific
conditions.  The configuration option and test macro were undocumented.

Close #3876.
2020-02-25 07:18:36 +01:00
Chris Johns
5c65b9881b testsuite/libtests: 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
e6df806a3f tests: Use ld to map (wrap) printf, puts and putchar to tester functions.
- Remove the macro defines and the need for tmacro.h by remapping the
  symbols using ld's wrap option.
- Remove FLUSH_OUTPUT, it was empty.
- Move rtems_test_exit to libmisc/testsupport as a function.

Update #3199.
2017-11-11 16:14:59 +11: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
Sebastian Huber
6bc63df199 confdefs.h: Add SMP enabled field to configuration
Do not use the processor count to determine if SMP is enabled.  Instead
use a dedicated configuration option.  Enable SMP by default in SMP
configurations.

Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail
otherwise.

Update #3001.
2017-05-16 09:48:32 +02:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
f8b2eb03f7 tests/libtests: Use <rtems/test.h> 2014-03-20 09:10:26 +01: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
820d82ed8a 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
6f9ce8f4c6 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1589/build
	* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
	block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
	block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
	block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
	devfs01/Makefile.am, devfs02/Makefile.am, devfs03/Makefile.am,
	devfs04/Makefile.am, deviceio01/Makefile.am,
	devnullfatal01/Makefile.am, dumpbuf01/Makefile.am, ftp01/Makefile.am,
	gxx01/Makefile.am, heapwalk/Makefile.am, malloc02/Makefile.am,
	malloc03/Makefile.am, malloc04/Makefile.am, malloc05/Makefile.am,
	malloctest/Makefile.am, monitor/Makefile.am, monitor02/Makefile.am,
	mouse01/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
	stringto01/Makefile.am, tar01/Makefile.am, tar02/Makefile.am,
	tar03/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
	termios02/Makefile.am, termios03/Makefile.am, termios04/Makefile.am,
	termios05/Makefile.am, termios06/Makefile.am, termios07/Makefile.am,
	termios08/Makefile.am, tztest/Makefile.am: Remove obsolete optional
	manager capability.
2011-12-08 21:38:12 +00:00
Ralf Corsepius
7d3f9c646a Add HAVE_CONFIG_H. 2011-02-22 07:37:03 +00:00
Joel Sherrill
ef08dc1f8a 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
	block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
	block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
	block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
	heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am,
	monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
	stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
	termios02/Makefile.am: Revert.
2010-06-23 23:26:08 +00:00
Joel Sherrill
ab59de4542 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
	block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
	block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
	block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
	heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am,
	monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
	stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
	termios01/init.c, termios02/Makefile.am: Fix bug so existing test
	code for rtems_termios_baud_to_index() is executed.
2010-06-23 23:24:11 +00:00
Ralf Corsepius
ee875ad3a5 Use PRIu32 to print uint32_t's. 2009-10-26 13:36:07 +00:00
Ralf Corsepius
73ae9de87c Use PRIxrtems_id to print rtems_ids. 2009-10-26 11:36:09 +00:00
Joel Sherrill
5b469b7387 2009-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtmonuse/init.c: Do not use Task_name array before initialized.
2009-05-17 17:22:21 +00:00
Ralf Corsepius
3d5483771c Eliminate _exe_/.exe. 2009-04-03 12:55:13 +00:00
Joel Sherrill
5a8e7503a0 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpuuse/init.c, malloctest/init.c, monitor/init.c, monitor02/init.c,
	putenvtest/init.c, rtems++/Init.cc, rtmonuse/init.c, stackchk/init.c:
	Change TEST_INIT to CONFIGURE_INIT. Make tmacros.h available to all
	POSIX tests. Add a clock_settime case for < 1988.
2008-02-01 00:45:04 +00:00
Joel Sherrill
fbea3dfbb1 2007-12-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtmonuse/init.c, rtmonuse/task1.c: Add period which is unused to
	exericise another path in the period statistics code.
2007-12-14 17:46:08 +00:00
Glenn Humphrey
43e3429260 2007-10-26 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* cpuuse/task2.c, rtmonuse/rtmonuse.scn, rtmonuse/task1.c: Add new
	cases for untested routines.
2007-10-26 21:31:48 +00:00
Joel Sherrill
838167e630 2007-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, rtmonuse/task1.c: Clean up output and use FLUSH_OUTPUT()
	macro instead of fflush() directly.
2007-05-17 22:47:32 +00:00
Joel Sherrill
81ee994488 2007-05-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtmonuse/init.c, rtmonuse/task1.c: Integrate Rate Monotonic
	Statistics and Period Usage into Rate Monotonic Manager. Added the
	following directives: rtems_rate_monotonic_get_statistics,
	rtems_rate_monotonic_reset_statistics,
	rtems_rate_montonic_reset_all_statistics,
	rtems_rate_montonic_report_statistics, and rtems_object_get_name.
	Obsoleted the rtems/rtmonuse.h file as a public interface.
2007-05-15 20:17:39 +00:00
Joel Sherrill
9de4e5be47 2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpuuse/Makefile.am, malloctest/Makefile.am, putenvtest/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, termios/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.
2007-05-11 19:46:02 +00:00
Ralf Corsepius
90721670a8 Use rtems_task_argument. 2007-03-29 16:56:47 +00:00
Joel Sherrill
3c6c9b0eb8 *** empty log message *** 2006-09-14 16:32:17 +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
ca845309d2 Expand libtests.am. 2005-11-11 07:39:49 +00:00
Ralf Corsepius
cb2818800d Eliminate DOCTYPES. 2005-11-10 22:21:20 +00:00
Ralf Corsepius
d65005e414 AM_CPPFLAGS += -I..../support/include. 2005-11-09 12:44:35 +00:00
Ralf Corsepius
39767d0c6b Remove SRC, PRINT_SRC. 2005-11-07 09:43:59 +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
0acb58f764 Partial conversion to automake. 2005-11-07 07:36:35 +00:00
Ralf Corsepius
8f71a36f71 Remove stray white spaces. 2004-04-20 07:09:31 +00:00
Ralf Corsepius
1b2203001f * cpuuse/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
* malloctest/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* monitor/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* putenvtest/init.c: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* rtems++/System.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* rtmonuse/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* stackchk/system.h: Include <rtems/confdefs.h> instead of <confdefs.h>.
	* termios/init.c: Include <rtems/confdefs.h> instead of <confdefs.h>.
2004-04-01 15:16:12 +00:00
Ralf Corsepius
9919946a82 2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
* cpuuse/system.h, cpuuse/task1.c, cpuuse/tswitch.c, monitor/init.c,
	monitor/system.h, rtems++/System.h, rtems++/Task1.cc,
	rtems++/Task2.cc, rtems++/Task3.cc, rtmonuse/init.c,
	rtmonuse/system.h, rtmonuse/task1.c, stackchk/blow.c: Convert to
	using c99 fixed size types.
2004-03-30 11:12:47 +00:00
Ralf Corsepius
08bfed20d0 2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* cpuuse/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
	Add PRE/TMPINSTALL_FILES to CLEANFILES.
	* malloctest/Makefile.am: Ditto.
	* monitor/Makefile.am: Ditto.
	* putenvtest/Makefile.am: Ditto.
	* rtems++/Makefile.am: Ditto.
	* rtmonuse/Makefile.am: Ditto.
	* stackchk/Makefile.am: Ditto.
	* termios/Makefile.am: Ditto.
2004-01-14 07:49:06 +00:00
Joel Sherrill
4dbd85e858 2003-12-16 Joel Sherrill <joel@OARcorp.com>
PR 544/tests
	* malloctest/system.h, rtmonuse/system.h: Various modifications to make
	tests account for resources and not print at inappropriate times.
2003-12-16 23:35:20 +00:00
Ralf Corsepius
6895c06855 2003-12-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* cpuuse/Makefile.am: Remove all-local: $(ARCH).
	* malloctest/Makefile.am: Remove all-local: $(ARCH).
	* monitor/Makefile.am: Remove all-local: $(ARCH).
	* putenvtest/Makefile.am: Remove all-local: $(ARCH).
	* rtems++/Makefile.am: Remove all-local: $(ARCH).
	* rtmonuse/Makefile.am: Remove all-local: $(ARCH).
	* stackchk/Makefile.am: Remove all-local: $(ARCH).
	* termios/Makefile.am: Remove all-local: $(ARCH).
2003-12-01 21:25:08 +00:00
Joel Sherrill
2abdd87b91 2003-09-04 Joel Sherrill <joel@OARcorp.com>
* cpuuse/init.c, cpuuse/system.h, cpuuse/task1.c, cpuuse/task2.c,
	cpuuse/task3.c, cpuuse/tswitch.c, malloctest/init.c,
	malloctest/system.h, malloctest/task1.c, monitor/init.c,
	monitor/system.h, putenvtest/init.c, rtems++/Init.cc,
	rtems++/System.h, rtems++/Task1.cc, rtems++/Task2.cc,
	rtems++/Task3.cc, rtems++/rtems++.doc, rtmonuse/getall.c,
	rtmonuse/init.c, rtmonuse/system.h, rtmonuse/task1.c,
	stackchk/blow.c, stackchk/init.c, stackchk/system.h,
	stackchk/task1.c: URL for license changed.
2003-09-04 18:53:27 +00:00
Ralf Corsepius
1053dcdce7 2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Makefile.am: Reflect having moved automake.
	cpuuse/Makefile.am: Reflect having moved automake.
	malloctest/Makefile.am: Reflect having moved automake.
	monitor/Makefile.am: Reflect having moved automake.
	putenvtest/Makefile.am: Reflect having moved automake.
	rtems++/Makefile.am: Reflect having moved automake.
	rtmonuse/Makefile.am: Reflect having moved automake.
	stackchk/Makefile.am: Reflect having moved automake.
	termios/Makefile.am: Reflect having moved automake.
2003-08-16 16:26:59 +00:00
Ralf Corsepius
9f33e26163 2002-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* cpuuse/Makefile.am: Use $(OBJEXT) instead of .o.
	* malloctest/Makefile.am: Use $(OBJEXT) instead of .o.
	* monitor/Makefile.am: Use $(OBJEXT) instead of .o.
	* putenvtest/Makefile.am: Use $(OBJEXT) instead of .o.
	* rtems++/Makefile.am: Use $(OBJEXT) instead of .o.
	* rtmonuse/Makefile.am: Use $(OBJEXT) instead of .o.
	* stackchk/Makefile.am: Use $(OBJEXT) instead of .o.
	* termios/Makefile.am: Use $(OBJEXT) instead of .o.
2002-08-11 04:56:59 +00:00