Commit Graph

13 Commits

Author SHA1 Message Date
Sebastian Huber
754f78faa8 libtest: Fix T_check_task_context()
Fix T_check_task_context() in RTEMS_SMP with RTEMS_DEBUG configurations.
2020-01-28 15:09:58 +01:00
Sebastian Huber
556e45f24b libtest: Add T_check_task_context() action 2019-12-20 11:06:13 +01:00
Sebastian Huber
77ac1519e8 libtest: Use test configuration in T_now()
Use the user provided now handler of the test configuration to get the
time in T_now().
2019-12-20 11:06:13 +01:00
Sebastian Huber
8c3b0d7445 libtest: Fix use of T_check_true() 2019-12-20 10:27:13 +01:00
Sebastian Huber
d0b704b09c libtest: Change expected pass state string
Use separator character '_' for all test states.
2019-12-05 07:10:59 +01:00
Sebastian Huber
9c29cb56ad libtest: Change expected fail state string
Use the value expected by the RTEMS Tester.  There are two separator
characters used ('-' and '_') for the states.  This is a bit
inconsistent.
2019-12-04 07:40:31 +01:00
Sebastian Huber
a0304e8d62 libtest: Output basename of source files
Output only the basename of source files to be independent of the build
system source paths.

In the future it may be better to use the GCC -fmacro-prefix-map option.
This option is available in GCC 8 and later.  It is not yet available in
clang.

Update #3818.
2019-11-25 11:32:19 +01:00
Sebastian Huber
b5e61f95ac libtest: Add more action events
This allows more control over the initialization and finalization run.

Update #3199.
2019-10-11 08:55:53 +02:00
Sebastian Huber
b406d071ec libtest: Do all output in test runner
This ensures that lines are output atomically if they are produced by
different other contexts, e.g. interrupts, other processors, other
threads.

Update #3199.
2019-10-11 08:55:49 +02:00
Sebastian Huber
f9219db2a9 rtems: Add rtems_scheduler_get_processor_maximum()
Add rtems_scheduler_get_processor_maximum() as a replacement for
rtems_get_processor_count(). The rtems_get_processor_count() is a bit
orphaned. Adopt it by the Scheduler Manager. The count is also
misleading, since the processor set may have gaps and the actual count
of online processors may be less than the value returned by
rtems_get_processor_count().

Update #3732.
2019-04-09 08:06:46 +02:00
Sebastian Huber
03c9f24061 rtems: Add rtems_scheduler_get_processor()
Add rtems_scheduler_get_processor() as a replacement for
rtems_get_current_processor(). The rtems_get_current_processor() is a
bit orphaned. Adopt it by the Scheduler Manager. This is in line with
the glibc sched_getcpu() function.

Deprecate rtems_get_current_processor().

Update #3731.
2019-04-09 08:06:46 +02:00
Sebastian Huber
cfcc2cbf7a Add RTEMS Test Framework
Update #3199.
2019-03-27 07:15:55 +01:00
Sebastian Huber
6fe01e4b3d build: Move test support to librtemstest.a
One reason to move the test support into a dedicated library are the
standard output __wrap_*() functions.  They may conflict with
application level wrappers.

Update #3199.
2019-03-26 11:29:58 +01:00