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
Sebastian Huber
cb406870aa
Change RTEMS_API from 5.0 to 5
...
This fixes the legacy Makefile based build system which expects
RTEMS_API to be identical to the tool chain version.
Update #3220 .
2017-11-13 08:39:54 +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
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
Chris Johns
6f3fb8a547
cpukit: Add a Version API.
...
Provide functions to get the version string, major, minor and revision
numbers and the version control identifer that is a unique tag for
the version control system.
Update #3199 .
2017-11-10 13:34:06 +11:00
Joel Sherrill
748a12629a
pppd/Makefile.am: Add support/include
2017-11-09 15:06:19 -06:00
Sebastian Huber
4a14751879
Upgrade to 5.0.0
...
Tool name will be "rtems5", e.g. arm-rtems5-gcc.
Next release will 5.1.0. Branch version after release will be 5.1.1.
Next master will be 6.0.0.
2017-11-09 08:12:11 +01:00
Sebastian Huber
64ba1a9606
posix: Change created_with_explicit_scheduler
...
Remove POSIX_API_Control::created_with_explicit_scheduler. Add
Thread_Control::was_created_with_inherited_scheduler. This fixes also
pthread_getattr_np() for Classic tasks.
Update #2514 .
2017-11-09 08:12:11 +01:00
Sebastian Huber
7147dc43b8
posix: Remove POSIX_API_Control::schedpolicy
...
Use the thread CPU budget algorithm to determine the scheduler policy.
This fixes also pthread_getschedparam() for Classic tasks.
Update #2514 .
2017-11-09 08:12:11 +01:00
Sebastian Huber
8d0a0aa448
sptests/spconsole01: New test
2017-11-08 13:14:31 +01: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
0c286e3d7c
score: _Chain_Insert_ordered_unprotected()
...
Change the chain order relation to use a directly specified left hand
side value. This is similar to _RBTree_Insert_inline() and helps the
compiler to better optimize the code.
2017-11-06 09:06:21 +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
d71542c8be
fsjffs2gc01: Fix sporadic test failures
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
10827984c2
score: Add _IO_Printf() and _IO_Vprintf()
...
The previous vprintk() implementation had a questionable licence header,
lacks support for the 'z' and 'j' format specifiers, is not robust
against invalid format specifiers, uses a global variable for output.
Replace it with a stripped down version of the FreeBSD kernel kvprintf()
function.
The new implementation allows a low overhead rtems_snprintf() if
necessary.
Update #3199 .
Close #3216 .
2017-11-06 07:25:51 +01:00
Sebastian Huber
a54d10d177
smpscheduler02: Avoid sporadic test failures
2017-11-03 12:58:58 +01:00
Sebastian Huber
3e81d52e27
posix: Use far future for very long timeouts
...
Close #3205 .
2017-11-02 14:08:32 +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
81fd79daf0
smppsxaffinity02: Fix thread attribute usage
...
The pthread_getattr_np() returns now the stack address and size. Do not
use this stack for the new threads.
Update #2514 .
Update #3145 .
Update #3168 .
2017-11-02 11:23:17 +01:00
Chris Johns
2126438a07
testsuite: Add bspIo for a local printk.
...
Update #3170 .
Update #3199 .
2017-10-30 16:30:11 +11: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
Sebastian Huber
0719fc6ec7
sptests/spscheduler01: Test POSIX set/get affinity
2017-10-28 13:13:09 +02:00
Sebastian Huber
8744498752
score: Fix _Scheduler_Set_affinity()
2017-10-28 13:10:47 +02:00
Sebastian Huber
0f1fa19882
smptests: Fix format warnings
2017-10-26 13:23:10 +02:00
Sebastian Huber
1510ce4959
psxtests/psxstat: Fix format warnings
2017-10-26 13:23:10 +02:00
Sebastian Huber
b31ccb5563
psxtests/psxclockrealtime01: Fix warnings
...
Update #3182 .
2017-10-26 13:23:10 +02:00
Sebastian Huber
e3ef14b1a6
smptests: Remove duplicate Makefile targets
...
Close #3187 .
2017-10-25 07:59:20 +02:00
Sebastian Huber
34799c3bc1
rtems: rtems_clock_get_ticks_per_second()
...
Add macro implementation for rtems_clock_get_ticks_per_second() for
C/C++ to avoid the function call overhead. A
rtems_clock_get_ticks_per_second() is still provided for language
bindings (e.g. Ada).
2017-10-25 07:26:37 +02:00
Chris Johns
4c701106fa
testsuite: Fix build
...
Updates #3170 .
2017-10-25 08:32:53 +11:00
Sebastian Huber
c310589474
score: Move thread queue timeout handling
...
Update #3117 .
Update #3182 .
2017-10-24 10:19:05 +02:00
Sebastian Huber
cea5ff7001
score: Add _Watchdog_Nanoseconds_per_tick
...
Move it from the configuration to a separate variable.
Update #3117 .
Update #3182 .
2017-10-24 09:37:28 +02:00
Sebastian Huber
7ed377bc69
score: _Watchdog_Is_far_future_monotonic_timespec
...
Update #3117 .
Update #3182 .
2017-10-24 09:37:28 +02:00
Sebastian Huber
27cfe7c86b
score: Add _Watchdog_Ticks_per_second
...
This value is frequently used. Avoid the function call overhead and the
integer division at run-time.
Update #3117 .
Update #3182 .
2017-10-24 09:37:22 +02:00
Sebastian Huber
d85c94c0d2
psxclockrealtime01: New test
...
Update #3182 .
2017-10-24 09:29:59 +02:00
Sebastian Huber
0e1ad7fa58
tmtests/tmfine01: Reduce test context size
...
Reduce test context size in non-SMP configurations.
Close #3200 .
2017-10-24 09:27:06 +02:00
Sebastian Huber
88e84c2236
testsuite: Fix build
...
Updates #3170 .
2017-10-23 13:49:22 +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
Christian Mauderer
205d8d71a6
sptests/sptimecounter04: New test
...
Ensure that the time flow of CLOCK_REALTIME and CLOCK_MONOTONIC is close to
the clock driver ticks time flow.
2017-10-18 09:01:57 +02:00
Sebastian Huber
6087f33e31
tmtests/tmfine01: Add test cases
...
Update #2674 .
Update #3112 .
Update #3113 .
Update #3114 .
Update #3115 .
2017-10-18 08:50:17 +02:00