Commit Graph
42 Commits
Author SHA1 Message Date
Joel Sherrill 731607b3b3 samples/*/*.doc: Change license to BSD-2
Updates #3053.
2022-06-14 10:31:39 -05:00
Ryan Long 187ab79064 samples: 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:24 -05:00
Joel Sherrill e71f09094f testsuites/samples: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Sebastian Huber 9de8d61a9a libtest: <rtems/test.h> to <rtems/test-info.h>
Rename this header file to later move <t.h> to <rtems/test.h>.  The main
feature provided by <rtems/test-info.h> is the output of standard test
information which is consumed by the RTEMS Tester.

Update #3199.
2020-07-23 09:27:10 +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
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 945f31b9a9 nsecs/init.c: Use long to avoid overflow on 16-bit targets 2014-10-13 11:13:11 -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
Sebastian Huber 88c74ab115 score: Merge tod implementation into one file
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().
2013-07-26 11:55:47 +02: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
Ralf Corsépius 99aebcbc86 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/system.h: New (Split out from nsecs/init.c).
	* nsecs/init.c: Reflect nsecs/system.h having been split out.
	* nsecs/empty.c: Include "system.h".
2012-02-22 09:33:10 +01:00
Joel Sherrill 61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Ralf Corsepius 4534ba300e 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/init.c: Comment out setup_nvdisk (Unused).
	Make shell_nvdisk_trace, shell_nvdisk_erase, shell_bdbuf_trace,
	disk_test_set_block_size, disk_test_write_blocks, disk_test_block_sizes,
	parse_size_arg, create_ramdisk, create_nvdisk static.
	* nsecs/init.c: Make my_ctime, subtract_em static.
2011-12-13 09:36:01 +00: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 d44c86b49d 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/init.c: Include "pritime.h".
	Use PRIdtime_t to print time_t.
2011-09-30 02:55:30 +00:00
Joel Sherrill 7c1e69429a 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* base_sp/apptask.c, base_sp/init.c, fileio/init.c, fileio/system.h,
	nsecs/init.c, ticker/init.c, ticker/system.h, ticker/tasks.c: Remove
	warnings.
2011-05-05 16:45:40 +00:00
Ralf Corsepius e3135514a8 Add HAVE_CONFIG_H. 2011-02-22 10:58:44 +00:00
Ralf Corsepius b1274bd94c Whitespace removal. 2009-11-30 03:33:25 +00:00
Ralf Corsepius 15bba619f6 Remove. 2009-10-26 09:14:22 +00:00
Ralf Corsepius 69a71c5f25 Add -I$(top_srcdir)/../support/include. 2009-10-26 09:14:07 +00:00
Ralf Corsepius cf08e7b16f Include "tmacros.h" instead of "rprintf.h" 2009-10-26 09:13:53 +00:00
Ralf Corsepius 53edb3126e Add rprintf.h 2009-10-24 05:53:59 +00:00
Ralf Corsepius 04abc236a6 Printf fixes. 2009-10-24 05:52:02 +00:00
Ralf Corsepius 21d821bea3 New. 2009-10-24 05:51:46 +00:00
Ralf Corsepius 5f4d6cccb5 Add missing prototype. 2009-10-24 05:51:36 +00:00
Ralf Corsepius 3d5483771c Eliminate _exe_/.exe. 2009-04-03 12:55:13 +00:00
Joel Sherrill 68e6f0cc31 2007-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* nsecs/init.c: Add include of unistd.h for sleep() prototype.
2007-07-24 15:45:42 +00:00
Joel Sherrill 40cfd3e9f3 2007-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* nsecs/Makefile.am, nsecs/init.c: Move empty body to another file. The
	loop was being optimized out on the PowerPC.
	* nsecs/empty.c: New file.
2007-07-17 22:32:12 +00:00
Joel Sherrill 2c0f748a4e 2007-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* nsecs/init.c: Change name to avoid any hint of the timer driver.
2007-07-06 21:30:04 +00:00
Joel Sherrill 8bfffd9baf 2007-06-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* nsecs/init.c: Do not make this test depend on the benchmark timer
	driver.
2007-06-22 19:27:35 +00:00
Joel Sherrill d3b057906a 2007-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* nsecs/init.c, nsecs/nsecs.scn: Add set of loops so you can see the
	time varaying in proportion to the length of the loop measured.
2007-06-21 22:44:21 +00:00
Ralf Corsepius f14276370b 2007-05-16 Ralf Corsepius <ralf.corsepius@rtems.org>
* nsecs/init.c: Remove stray "volatile int i".
2007-05-16 06:50:03 +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
Ralf Corsepius 587da8b8e2 2007-04-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/init.c: Remove private decl of _Timespec_Subtract use the
	  version from rtems/score/timespec.h.
2007-04-13 05:12:34 +00:00
Joel Sherrill 8ff5e59dd4 2007-04-05 Joel Sherrill <joel@OARcorp.com>
* nsecs/init.c: Provide timespec manipulation routines in the
	SuperCore. Use them everywhere possible. Perhaps they should be part
	of the public API so this test and others can use them without
	peeking into the bowels.
2007-04-05 21:15:40 +00:00
Joel Sherrill 23a0105a78 2007-04-02 Joel Sherrill <joel@OARcorp.com>
* Makefile.am, configure.ac: Convert from Classic API style TOD_Control
	as fundamental time structure to POSIX struct timespec. Add
	clock_get_uptime().
	* nsecs/.cvsignore, nsecs/Makefile.am, nsecs/init.c, nsecs/nsecs.doc,
	nsecs/nsecs.scn: New files.
2007-04-02 18:24:10 +00:00