Commit Graph

668 Commits

Author SHA1 Message Date
Joel Sherrill
d6c5a97896 block06/init.c: Fix printf() format warning 2017-11-29 13:03:40 -06:00
Sebastian Huber
57f96b999d libtests/malloctest: Fix 64-bit targets
Update #3082.
2017-11-24 15:27:01 +01:00
Sebastian Huber
54e7b81b98 libtests/stringto01: Fix 64-bit targets
Update #3082.
2017-11-24 15:18:43 +01:00
Christian Mauderer
1358d4c824 getentropy: Add test.
Update #3239.
2017-11-17 07:26:55 +01:00
Sebastian Huber
62119d21da dl01, dl02, dl05: Fix unresolved printf symbol
The link time wrap of printf leads to unresolved symbols in the loadable
modules.  This resulted in infinite loops and test timeouts.  Use
rtems_printf() for output.

Update #3199.
2017-11-15 08:10:20 +01: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
791469bd4f termios: Fix canonical mode
In canonical mode, input is made available line by line.  We must stop
the canonical buffer filling upon reception of an end-of-line character.

Close #3218.
2017-11-07 08:31:40 +01:00
Sebastian Huber
1055ff2020 tests: Use normal console for user input tests 2017-11-07 08:31:40 +01:00
Sebastian Huber
32ceb38513 tests: Use <tmacros.h>
Update #3170.
Update #3199.
2017-11-07 08:31:40 +01:00
Sebastian Huber
7b00c2fac5 tests: Use <tmacros.h> in all tests
Update #3170.
Update #3199.
2017-11-06 09:06:20 +01:00
Sebastian Huber
c4b8b147dd tests: Use simple console driver
Update #3170.
Update #3199.
2017-11-06 07:26:42 +01:00
Sebastian Huber
8c1f4064ad tests: Use printf() instead of fprintf()
Update #3170.
Update #3199.
2017-11-02 14:08:32 +01:00
Sebastian Huber
0d796d6dc7 tests: Delete obsolete TESTS_USE_PRINTF
Update #3170.
Update #3199.
2017-11-02 14:08:32 +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
Sebastian Huber
acc9d06468 tests: Remove obsolete TESTS_USE_PRINTK
Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
7e1029158e tests: Use rtems_test_printer in general
Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
46ddc3c5da tests: Use rtems_print_printer_fprintf_putc()
Use rtems_print_printer_fprintf_putc() instead of
rtems_print_printer_printf() to output via rtems_putc().

Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
73d892d8a8 tests: Use rtems_test_printer
Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
f703e7f5c7 tests: Move rtems_test_printer definition
Statically initialize it to use printk().

Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Chris Johns
36d974ba4e testsuite: Remove warnings. 2017-10-23 16:25:45 +11: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
a05861d471 libtests/tar01: Fix build dependencies 2017-10-21 12:17:23 +02:00
Sebastian Huber
ac741625b0 libio: Use FIFO for iop free list
Update #3136.
2017-09-15 10:55:38 +02:00
Sebastian Huber
9d1522ed32 Fix IO control request type 2017-07-28 13:28:11 +02:00
Sebastian Huber
7f1e6fa369 libtests/block08: Fix format warning 2017-07-28 12:19:05 +02:00
Sebastian Huber
6f46848079 tests: Use floating point task
These tests directly or indirectly use fprintf(), etc. which may use the
floating point unit.

Update #3076.
2017-07-19 11:57:01 +02:00
Sebastian Huber
07e178005a tests: Use floating point task
These tests directly or indirectly use fprintf(), etc. which may use the
floating point unit.

Update #3076.
2017-07-18 14:14:34 +02:00
Sebastian Huber
9b07f5efe3 newlib01: Use fopen() instead of freopen()
With global stdio streams, a freopen() would close the global stream
object.

Update #3012.
2017-06-30 14:57:25 +02:00
Joel Sherrill
d6cb813d33 dl03/dl-cache.c: Fix duplicate const warning 2017-06-21 12:50:31 -05:00
Joel Sherrill
d93181a059 malloctest/init.c: Disable check maximum size warning to allow error test case 2017-06-21 12:50:30 -05:00
Joel Sherrill
5700d8ba52 top/task1.c: Fix sprintf() buffer overflow 2017-06-21 12:50:30 -05:00
Joel Sherrill
a5d31fe642 rbheap01/init.c: Fix PAGE_SIZE redefined warning 2017-06-21 12:50:29 -05:00
Sebastian Huber
4000836c03 tests: Fix build dependencies
See also:

https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html
2017-06-13 13:01:03 +02:00
Sebastian Huber
93531e9b08 Move RTEMS-specific Termios API content
Remove obsolete support for OFILL, OFDEL, NLDLY, CRDLY, BSDLY, VTDLY,
and FFDLY which is not present on FreeBSD and not implemented in Linux.

Update #2833.
2017-06-07 12:57:39 +02: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
1309718114 confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATION
Enable the SMP configuration by default in case SMP is enabled.  Add
configuration option CONFIGURE_DISABLE_SMP_CONFIGURATION to disable it
explicitly.

Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail
otherwise.

Update #3001.
2017-05-11 11:40:44 +02:00
Chris Johns
6130a47e72 testsuites: Fix build dependences for generated files. 2017-05-11 08:09:43 +10:00
Joel Sherrill
b73b9522d6 block08/bdbuf_tests.c: Add include of <rtems/inttypes.h> 2017-04-25 22:11:55 -05:00
Joel Sherrill
9e6ef361cf rtems/inttypes.h, block08: Add and use PRIdrtems_blkdev_bnum 2017-04-25 20:14:28 -05:00
Joel Sherrill
55b967ab0c devnullfatal01/testcase.h: Avoid redefinition of TESTS_USE_PRINTK 2017-04-25 11:22:25 -05: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
bba48d90bc libdl: Support link ordered loading of ELF sections.
The ARM C++ exception ABI uses an address ordered index table to
locate the correct frame data and this requires the EXIDX sections are
loaded in the order the order the matching text is loaded.

The EXIDX sections set the SHF_LINK_ORDER flag and link field. This patch
adds support to load those flagged sections in the linked-to section
order.

Updates #2955.
Closes #2959
2017-03-31 09:00:14 +11:00
Kevin Kirspel
1c6926c11f termios: Synchronize with latest FreeBSD headers
Adding modified FreeBSD headers to synchronize RTEMS termios with
FreeBSD.  Modify termios to support dedicated input and output baud for
termios structure.  Updated BSPs to use dedicated input and output baud
in termios structure.  Updated tools to use dedicated input and output
baud in termios structure.  Updated termios testsuites to use dedicated
input and output baud in termios structure.

Close #2897.
2017-03-22 11:55:04 +01:00
Sebastian Huber
902ffeddb5 termios09: Test send callback 2017-02-28 09:09:23 +01:00
Sebastian Huber
3663543392 termios: Implement non-blocking write 2017-02-28 09:09:23 +01:00
Sebastian Huber
a165a9607a termios: Make write POSIX compatible
Currently only blocking read/write operations are implemented.  A
blocking write must transfer at least one character.  It should not wait
for the device for the second character and so on.

Close #2917.
2017-02-28 09:09:19 +01:00
Sebastian Huber
5244d31ef7 termios: Simplify oproc()
Call rtems_termios_puts() only once.  Adjust column in one place.
2017-02-28 09:05:47 +01:00
Sebastian Huber
06d14667f7 termios09: Test output post processing 2017-02-28 09:05:47 +01:00
Sebastian Huber
c80f6aa916 termios: Fix infinite loop in receive path
In canonical mode, the raw input buffer or the canonical buffer may
overflow without an end of line.  Avoid an infinite loop in this case.

Close #2915.
2017-02-28 09:05:47 +01:00
Sebastian Huber
9fa0f543ec termios: Change receive callback invocation
Call the receive callback in case a read will succeed without to block.
This enables the use of the receive callback for a poll() and select()
support.  Increase raw input buffer size to allow buffering of one line.

Close #2916.
2017-02-28 09:05:42 +01:00