Commit Graph

20 Commits

Author SHA1 Message Date
Chris Johns
bcd0c06c9b tests: Use rtems_test_begin and rtems_test_end.
Add a tests enum and move all test banner test to the library in libmisc.

Update #3199.
2017-11-11 16:14:59 +11:00
Sebastian Huber
7e1029158e tests: Use rtems_test_printer in general
Update #3170.
Update #3199.
2017-10-28 13:33:55 +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
533ac1126c tests: Use more integer print functions
This avoids an unnecessary use of the floating point unit.

Update #3076.
2017-07-18 14:13:47 +02:00
Chris Johns
258bda306b testsuite: Add a common test configuration. Fix configure.ac and Makefile.am errors.
- Add a top level test configuration file for test states that are common
  to all BSPs. This saves adding a test configuration (tcfg) file for
  every BSP.

- Add the test states 'user-input' and 'benchmark'. This
  lets 'rtems-test' stop the test rather than waiting for a timeout or
  letting a benchmark run without the user asking for it to run.

- Implement rtems-test-check in Python to make it faster. The shell script
  had grown to a point it was noticably slowing the build down.

- Fix the configure.ac and Makefile.am files for a number of the
  test directories. The files are difficiult to keep in sync with the
  number of tests and mistakes can happen such as tests being left
  out of the build. The test fsrofs01 is an example. Also a there was
  a mix of SUBDIRS and _SUBDIRS being used and only _SUBDIRS should be
  used.

- Fix the test fsrofs01 so it compiles.

Closes #2963.
2017-04-04 08:24:22 +10:00
Chris Johns
28fda6279b testsuite: Add test states to the testsuit configuration files.
Change the testsuite configuration files to hold state information about
a test. The states are:

 exclude        - Do not build the test
 expected-fail  - The test is expected to fail
 indeterminate  - The test may pass or may fail

A message is printed just after the test's BEGIN message to indicate
there is a special state for the test. No state message means the test
is expected to pass.

This support requires tests are correctly written to the use standard
support to begin and end a test.
2016-12-07 17:22:41 +11:00
Sebastian Huber
ede1a4182d Make rtems/print.h independent of rtems/bspIo.h 2016-06-22 07:29:26 +02:00
Chris Johns
24d0ee57a4 cpukit, testsuite: Add rtems_printf and rtems_printer support.
This change adds rtems_printf and related functions and wraps the
RTEMS print plugin support into a user API. All references to the
plugin are removed and replaced with the rtems_printer interface.

Printk and related functions are made to return a valid number of
characters formatted and output.

The function attribute to check printf functions has been added
to rtems_printf and printk. No changes to remove warrnings are part
of this patch set.

The testsuite has been moved over to the rtems_printer. The testsuite
has a mix of rtems_printer access and direct print control via the
tmacros.h header file. The support for begink/endk has been removed
as it served no purpose and only confused the code base. The testsuite
has not been refactored to use rtems_printf. This is future work.
2016-05-25 15:47:34 +10:00
Joel Sherrill
15068f4c9a Remove AVR port
closes #2443.
2016-01-19 19:40:42 -06:00
Sebastian Huber
840ae715a9 sapi: Add <rtems/test.h>
Provide support functions to print the begin/end of test message.
Provide a test fatal extension to print out profiling reports in the
future.
2014-03-17 09:17:36 +01:00
Sebastian Huber
e11d9287cf testsuites: Add TESTS_USE_PRINTF
Make it possible to use normal printf() if requested to allow output of
floating point numbers.
2014-02-12 09:18:00 +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
cba16514b6 2009-08-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/buffer_test_io.h: Use printk on AVR by default.
2009-08-06 15:39:09 +00:00
Joel Sherrill
71531a6fa0 2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* support/include/buffer_test_io.h: Add support for using printk for
	output in tests. This should be followed up by disabling the console
	driver and other support when the tests are using printk.
2007-05-11 19:53:29 +00:00
Ralf Corsepius
51dc9b5116 2004-11-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* include/buffer_test_io.h: Use iprintf iff _NEWLIB_VERSION is
	defined.
2004-11-22 16:07:01 +00:00
Ralf Corsepius
8f71a36f71 Remove stray white spaces. 2004-04-20 07:09:31 +00:00
Joel Sherrill
b16bdbf71e 2004-03-03 Joel Sherrill <joel@OARcorp.com>
* include/buffer_test_io.h: Correct typo.
2004-03-03 14:23:05 +00:00
Joel Sherrill
6ccb466d61 2004-02-03 Joel Sherrill <joel@OARcorp.com>
* include/buffer_test_io.h: Do not use iprintf() if in ANSI compiler
	mode.
2004-02-04 00:40:24 +00:00
Joel Sherrill
13c8768132 2003-12-16 Joel Sherrill <joel@OARcorp.com>
PR 544/tests
	* include/buffer_test_io.h: Various modifications to make tests account
	for resources and not print at inappropriate times.
2003-12-16 23:36:06 +00:00
Joel Sherrill
cd9396e7d0 2002-08-01 Joel Sherrill <joel@OARcorp.com>
* Per PR47 add support for buffered test output.  This involved
	adding defines to redirect output to a buffer and dump it when
	full, at "test pause", and at exit.  To avoid problems when redefining
	exit(), all tests were modified to call rtems_test_exit().
	Some tests, notable psxtests, had to be modified to include
	the standard test macro .h file (pmacros.h or tmacros.h) to
	enable this support.
	* include/buffer_test_io.h: New file.
2002-08-02 00:51:52 +00:00