Commit Graph
69 Commits
Author SHA1 Message Date
Joel Sherrill 85cc173d6e testsuites/libtests/[a-c]*: 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
Sebastian Huber 51b3cbca11 tests: Use rtems_task_exit()
Update #3533.
2018-10-05 13:41:07 +02: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
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
Sebastian Huber 46b534388f libtests/cpuuse: Check status only
We may own the allocator mutex during context switches.
2016-11-23 12:52:05 +01: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 721fe34aae Fix C files which had two semi-colons at EOL 2012-05-31 15:34:36 -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 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 e6e9cbe050 2011-02-02 Joel Sherrill <joel.sherrilL@OARcorp.com>
* cpuuse/tswitch.c: Shrink memory requirements.
2011-02-02 18:52:50 +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
Joel Sherrill bff419ffc2 2009-10-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpuuse/init.c, cpuuse/system.h: Use minimum stack size.
2009-10-12 13:31:01 +00:00
Joel Sherrill 0d1e5fd33a 2009-09-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/tswitch.c: Eliminate use of deprecated rtems_extension.
2009-09-26 15:46:34 +00:00
Joel Sherrill 1875546d63 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/task1.c, termios/init.c: Convert calls to legacy routine
	rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to rtems_clock_get_xxx().
2009-08-10 16:04:57 +00:00
Joel Sherrill cd49fdcdcb 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/task1.c, cpuuse/tswitch.c, malloctest/task1.c,
	stackchk/task1.c: Convert calls to legacy routine rtems_clock_get(
	RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
2009-08-10 14:50:24 +00:00
Chris Johns 9c22907122 2009-05-19 Chris Johns <chrisj@rtems.org>
* cpuuse/tswitch.c: Lower sample count for small memory targets.
        * cpuuse/system.h: Smaller stack size for small memory targets.
        * monitor02/init.c: Cannot run on small memory targets.
2009-05-18 23:50:10 +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
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 6db3522085 2007-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/init.c: Do not delete the Init task. Leaving it suspended lets
	the CPU Usage Report include it. If it is deleted, the CPU time it
	had consumed is not listed later in the report.
2007-07-24 21:36:45 +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
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
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