Commit Graph

34 Commits

Author SHA1 Message Date
Joel Sherrill
b7ec902ea8 sptests/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:35:12 +00:00
mez3n
528095cd24 cpukit/rtems: add rtems_barrier_get_number_waiting()
Closes rtems/programs/gsoc#9
Added rtems_get_number_waiting according to the issue
rtems/programs/gsoc#9, including tests and documentation.
2025-05-12 17:00:14 +00:00
Joel Sherrill
ce8d47be72 testsuites/sptests/sp[0-7]*/*.doc: Change license to BSD-2
Updates #3053.
2022-04-05 13:14:14 -05:00
Joel Sherrill
d987a57be4 testsuites/sptests/sp[2-3]*: Change license to BSD-2
Updates #3053.
2022-04-05 13:14:14 -05:00
Sebastian Huber
51b3cbca11 tests: Use rtems_task_exit()
Update #3533.
2018-10-05 13:41:07 +02:00
Chris Johns
bc0675393d testsuite/sptests: 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
Joel Sherrill
6c1aff6633 sptests/sp33/init.c: Correct printf() warning 2015-03-24 08:16:33 -05:00
Sebastian Huber
6c0301daad tests/sptests: Use <rtems/test.h> 2014-03-25 08:06:21 +01:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11: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
70f3719807 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
d13eb6bf2c 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1589/build
	* sp01/Makefile.am, sp02/Makefile.am, sp03/Makefile.am,
	sp04/Makefile.am, sp05/Makefile.am, sp06/Makefile.am,
	sp07/Makefile.am, sp08/Makefile.am, sp09/Makefile.am,
	sp10/Makefile.am, sp11/Makefile.am, sp12/Makefile.am,
	sp13/Makefile.am, sp14/Makefile.am, sp15/Makefile.am,
	sp16/Makefile.am, sp17/Makefile.am, sp18/Makefile.am,
	sp19/Makefile.am, sp20/Makefile.am, sp2038/Makefile.am,
	sp21/Makefile.am, sp22/Makefile.am, sp23/Makefile.am,
	sp24/Makefile.am, sp25/Makefile.am, sp26/Makefile.am,
	sp27/Makefile.am, sp27a/Makefile.am, sp28/Makefile.am,
	sp29/Makefile.am, sp30/Makefile.am, sp31/Makefile.am,
	sp32/Makefile.am, sp33/Makefile.am, sp34/Makefile.am,
	sp35/Makefile.am, sp36/Makefile.am, sp37/Makefile.am,
	sp38/Makefile.am, sp39/Makefile.am, sp40/Makefile.am,
	sp41/Makefile.am, sp42/Makefile.am, sp43/Makefile.am,
	sp44/Makefile.am, sp45/Makefile.am, sp46/Makefile.am,
	sp47/Makefile.am, sp48/Makefile.am, sp49/Makefile.am,
	sp50/Makefile.am, sp51/Makefile.am, sp52/Makefile.am,
	sp53/Makefile.am, sp54/Makefile.am, sp55/Makefile.am,
	sp56/Makefile.am, sp57/Makefile.am, sp58/Makefile.am,
	sp59/Makefile.am, sp60/Makefile.am, sp62/Makefile.am,
	sp63/Makefile.am, sp64/Makefile.am, sp65/Makefile.am,
	sp66/Makefile.am, sp67/Makefile.am, sp68/Makefile.am,
	sp69/Makefile.am, sp70/Makefile.am, sp71/Makefile.am,
	sp72/Makefile.am, sp73/Makefile.am, sp74/Makefile.am,
	sp75/Makefile.am, sp76/Makefile.am, spassoc01/Makefile.am,
	spcbssched01/Makefile.am, spcbssched02/Makefile.am,
	spcbssched03/Makefile.am, spchain/Makefile.am,
	spclockget/Makefile.am, spcoverage/Makefile.am,
	spedfsched01/Makefile.am, spedfsched02/Makefile.am,
	spedfsched03/Makefile.am, sperror01/Makefile.am,
	sperror02/Makefile.am, sperror03/Makefile.am, spfatal01/Makefile.am,
	spfatal02/Makefile.am, spfatal03/Makefile.am, spfatal04/Makefile.am,
	spfatal05/Makefile.am, spfatal06/Makefile.am, spfatal07/Makefile.am,
	spfatal08/Makefile.am, spfatal09/Makefile.am, spfatal10/Makefile.am,
	spfatal11/Makefile.am, spfatal12/Makefile.am, spfatal13/Makefile.am,
	spfatal14/Makefile.am, spfatal15/Makefile.am, spfatal16/Makefile.am,
	spfatal17/Makefile.am, spfatal18/Makefile.am, spfatal19/Makefile.am,
	spfatal20/Makefile.am, spfatal21/Makefile.am, spfatal22/Makefile.am,
	spfatal23/Makefile.am, spfatal24/Makefile.am, spfatal25/Makefile.am,
	spfifo01/Makefile.am, spfifo02/Makefile.am, spfifo03/Makefile.am,
	spfifo04/Makefile.am, spfifo05/Makefile.am, spheapprot/Makefile.am,
	spintrcritical01/Makefile.am, spintrcritical02/Makefile.am,
	spintrcritical03/Makefile.am, spintrcritical04/Makefile.am,
	spintrcritical05/Makefile.am, spintrcritical06/Makefile.am,
	spintrcritical07/Makefile.am, spintrcritical08/Makefile.am,
	spintrcritical09/Makefile.am, spintrcritical10/Makefile.am,
	spintrcritical11/Makefile.am, spintrcritical12/Makefile.am,
	spintrcritical13/Makefile.am, spintrcritical14/Makefile.am,
	spintrcritical15/Makefile.am, spintrcritical16/Makefile.am,
	spintrcritical17/Makefile.am, spmkdir/Makefile.am,
	spmountmgr01/Makefile.am, spnotepad01/Makefile.am,
	spnsext01/Makefile.am, spobjgetnext/Makefile.am,
	spprintk/Makefile.am, spprivenv01/Makefile.am,
	sprbtree01/Makefile.am, spsimplesched01/Makefile.am,
	spsimplesched02/Makefile.am, spsimplesched03/Makefile.am,
	spsize/Makefile.am, spstkalloc/Makefile.am, spthreadq01/Makefile.am,
	spwatchdog/Makefile.am, spwkspace/Makefile.am: Remove obsolete
	optional manager capability.
2011-12-08 21:38:41 +00:00
Joel Sherrill
9e15e9bfba 2011-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp04/tswitch.c, sp07/task1.c, sp07/task2.c, sp09/screen07.c,
	sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c,
	sp13/task1.c, sp14/asr.c, sp14/task1.c, sp19/first.c, sp19/fptask.c,
	sp19/inttest.h, sp19/task1.c, sp20/task1.c, sp25/task1.c,
	sp26/task1.c, sp28/init.c, sp29/init.c, sp31/task1.c, sp32/init.c,
	sp33/init.c, sp34/changepri.c, sp36/strict_order_mut.c, sp37/init.c,
	sp43/init.c, sp44/init.c, sp48/init.c, sp54/init.c, sp59/init.c,
	sp65/init.c, sp68/init.c, spchain/init.c, spclockget/init.c,
	spfatal03/testcase.h, spfatal07/testcase.h, spfatal_support/init.c:
	Do not line length exceed 80 columns.
2011-07-24 22:10:20 +00:00
Ralf Corsepius
90a8147d1f 2011-06-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* sp33/Makefile.am: Eliminate scndir.
2011-06-20 06:25:14 +00:00
Ralf Corsepius
7d3f9c646a Add HAVE_CONFIG_H. 2011-02-22 07:37:03 +00:00
Ralf Corsepius
b1274bd94c Whitespace removal. 2009-11-30 03:33:25 +00:00
Joel Sherrill
380c61ac67 2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp32/Makefile.am, sp33/Makefile.am, sp37/Makefile.am,
	sp38/Makefile.am, sp39/Makefile.am, sp43/Makefile.am,
	sp44/Makefile.am, spfatal01/Makefile.am, spfatal02/Makefile.am,
	spfatal03/Makefile.am, spfatal04/Makefile.am, spfatal05/Makefile.am,
	spfatal06/Makefile.am, spfatal07/Makefile.am, spfatal08/Makefile.am,
	spfatal09/Makefile.am, spobjgetnext/Makefile.am,
	spprintk/Makefile.am, spsize/Makefile.am, spwatchdog/Makefile.am,
	spwkspace/Makefile.am: Add documentation files for multiple tests.
	* sp32/sp32.doc, sp33/sp33.doc, sp37/sp37.doc, sp38/sp38.doc,
	sp39/sp39.doc, sp43/sp43.doc, sp44/sp44.doc, spfatal01/spfatal01.doc,
	spfatal02/spfatal02.doc, spfatal03/spfatal03.doc,
	spfatal04/spfatal04.doc, spfatal05/spfatal05.doc,
	spfatal06/spfatal06.doc, spfatal07/spfatal07.doc,
	spfatal08/spfatal08.doc, spfatal09/spfatal09.doc,
	spobjgetnext/spobjgetnext.doc, spprintk/spprintk.doc,
	spsize/spsize.doc, spwatchdog/spwatchdog.doc,
	spwkspace/spwkspace.doc: New files.
2009-11-09 14:25:28 +00:00
Ralf Corsepius
073dff354d Use PRIdrtems_task_argument to print rtems_task_argument's. 2009-10-27 06:59:20 +00:00
Ralf Corsepius
d23649d2c3 Use PRIu32 to print uint32_t's. 2009-10-27 04:03:41 +00:00
Joel Sherrill
a611d80b75 2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp33/init.c, sp33/sp33.scn: Add some barrier error cases uncovered by
	uC5282 coverage runs.
2009-09-28 18:10:52 +00:00
Joel Sherrill
1f7ee0275b 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp02/task1.c, sp02/task2.c, sp02/task3.c, sp03/task2.c, sp05/task1.c,
	sp05/task2.c, sp05/task3.c, sp06/task1.c, sp06/task2.c,
	sp09/screen02.c, sp09/screen04.c, sp09/screen06.c, sp09/screen07.c,
	sp09/screen10.c, sp09/screen12.c, sp09/screen13.c, sp09/screen14.c,
	sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c,
	sp12/task1.c, sp13/task1.c, sp13/task2.c, sp14/task1.c, sp16/task1.c,
	sp16/task4.c, sp19/fptask.c, sp19/task1.c, sp22/task1.c,
	sp24/task1.c, sp26/task1.c, sp29/init.c, sp30/task1.c, sp31/task1.c,
	sp33/init.c, sp45/init.c, sp46/init.c, sp50/init.c,
	spintrcritical06/init.c, spwatchdog/task1.c: Eliminate test routines
	TICKS_PER_SECOND and get_ticks_per_second() in favor of new
	rtems_clock_get_ticks_per_second().
2009-08-12 20:50:43 +00:00
Joel Sherrill
b84f1fdc0d 2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp04/system.h, sp04/task1.c, sp04/tswitch.c, sp07/init.c,
	sp12/init.c, sp13/putbuff.c, sp13/system.h, sp13/task1.c,
	sp15/init.c, sp16/system.h, sp19/fptask.c, sp25/system.h,
	sp26/task1.c, sp27/init.c, sp28/init.c, sp29/init.c, sp31/task1.c,
	sp33/init.c, sp34/changepri.c, sp35/priinv.c, sp37/init.c,
	sp38/init.c, sp39/init.c, sp41/init.c, sp42/init.c, sp43/init.c,
	sp44/init.c, sp45/init.c, sp46/init.c, sp47/init.c, sp48/init.c,
	spfatal03/testcase.h, spfatal05/testcase.h, spfatal06/testcase.h,
	spfatal_support/system.h, spobjgetnext/init.c, spsize/getint.c,
	spsize/size.c: Fix warnings.
2009-05-10 14:39:46 +00:00
Ralf Corsepius
3d5483771c Eliminate _exe_/.exe. 2009-04-03 12:55:13 +00:00
Joel Sherrill
2186ba8064 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp01/init.c, sp02/init.c, sp03/init.c, sp04/init.c, sp05/init.c,
	sp06/init.c, sp07/init.c, sp08/init.c, sp09/init.c, sp11/init.c,
	sp12/init.c, sp13/init.c, sp14/init.c, sp15/init.c, sp16/init.c,
	sp17/init.c, sp19/init.c, sp20/init.c, sp21/init.c, sp22/init.c,
	sp23/init.c, sp24/init.c, sp25/init.c, sp26/init.c, sp28/init.c,
	sp30/init.c, sp31/init.c, sp32/init.c, sp33/init.c, sp37/init.c,
	sp38/init.c, sp39/init.c, sp40/init.c, sp41/init.c, sp43/init.c,
	spfatal/init.c, spfatal_support/init.c, spsize/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:11 +00:00
Joel Sherrill
90f6ea620d 2008-01-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp28/init.c, sp28/sp28.scn, sp29/init.c, sp29/sp29.scn, sp32/init.c,
	sp32/sp32.scn, sp33/init.c, sp33/sp33.scn, sp42/init.c: Fix end of
	test messages.
2008-01-24 15:12:30 +00:00
Glenn Humphrey
4d7ae31248 2007-11-27 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* sp33/init.c, sp33/sp33.scn: Added several test cases to improve test
	coverage.
2007-11-27 20:42:06 +00:00
Joel Sherrill
e58077cb55 2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp01/Makefile.am, sp02/Makefile.am, sp03/Makefile.am,
	sp04/Makefile.am, sp05/Makefile.am, sp06/Makefile.am,
	sp07/Makefile.am, sp07/tdelete.c, sp08/Makefile.am, sp09/Makefile.am,
	sp11/Makefile.am, sp12/Makefile.am, sp13/Makefile.am,
	sp14/Makefile.am, sp15/Makefile.am, sp16/Makefile.am,
	sp17/Makefile.am, sp19/Makefile.am, sp20/Makefile.am,
	sp21/Makefile.am, sp22/Makefile.am, sp23/Makefile.am,
	sp24/Makefile.am, sp25/Makefile.am, sp26/Makefile.am,
	sp32/Makefile.am, sp33/Makefile.am, sp34/Makefile.am,
	sp35/Makefile.am, spfatal/Makefile.am, spsize/Makefile.am,
	spsize/size.c: 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:44:27 +00:00
Joel Sherrill
a27fa6d543 2006-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp33/init.c: Improve barrier test to include normal blocking with
	manual release and unblocking in barrier deletion.
2006-12-04 14:10:48 +00:00
Joel Sherrill
47c9f44a01 2006-11-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Adding Classic API Barriers.
	* sp33/.cvsignore, sp33/Makefile.am, sp33/init.c, sp33/sp33.scn:
	New files.
2006-11-15 14:11:14 +00:00