summaryrefslogtreecommitdiff
path: root/cpukit/libtest (follow)
AgeCommit message (Collapse)Author
2020-09-24libtest: Remove superfluous assignmentSebastian Huber
Issue found by Coverity (CID 1437643).
2020-09-17libtest: Fix T_thread_switch_record()Sebastian Huber
If RTEMS_DEBUG is not defined, then we have to explicitly set the node off the chain. Update #3199.
2020-08-18libtest: Add T_push_plan() and T_pop_plan()Sebastian Huber
Update #3199.
2020-08-18libtest: Use a destructorSebastian Huber
Do not set up a new test steps environment. Update #3199.
2020-08-18libtest: Change T_step() and T_assert_step()Sebastian Huber
Normally, the expected test step must be a compile time constant. Allow variable expected test steps for the T_step() and T_assert_step(). This can be used for parameterized test loops with individual fixtures. Remove the ability to use custom failure messages due to some implementation constraints. Update #3199.
2020-08-18libtest: Add fixture stepsSebastian Huber
Support a new test plan for each nested fixture. Update #3199.
2020-08-18libtest: Add T_check_steps()Sebastian Huber
Update #3199.
2020-08-18libtest: Use line buffer in T_check()Sebastian Huber
Update #3199.
2020-08-18libtest: Add T_puts()Sebastian Huber
Update #3199.
2020-08-18libtest: Add T_do_is_runner()Sebastian Huber
Update #3199.
2020-08-18libtest: Add output buffer drain and fillSebastian Huber
Update #3199.
2020-08-18libtest: Change fixture scope methodSebastian Huber
Return the produced character count. There is no need for a NUL termination. Update #3199.
2020-08-11libtest: Add T_thread_switch_record()Sebastian Huber
Add support to record thread switch events. This can be used to check that a blocking operation results in the expected sequence of thread switches. Update #3199.
2020-08-10libtest: ConstifySebastian Huber
Update #3199.
2020-08-07libtest: Improve T_check_task_contextSebastian Huber
Update #3199.
2020-08-06libtest: Fix T_interrupt_test() in SMP configsSebastian Huber
Update #3199.
2020-07-23libtest: Add T_interrupt_test()Sebastian Huber
Update #3199.
2020-07-23libtest: Add rtems_test_run()Sebastian Huber
Update #3199.
2020-07-23libtest: Add T_CHECK_FMTSebastian Huber
Rename internal function T_check_true() to T_check() and use the new flag T_CHECK_FMT to indicate if a format string is present. This is a preparation step to make the format string optional. Make the check context the first parameter. The API remains the same. Update #3199.
2020-07-23libtest: Add T_stop()Sebastian Huber
Update #3199.
2020-07-23libtest: Split POSIX Keys supportSebastian Huber
Update #3199.
2020-07-23libtest: Add T_get_scope()Sebastian Huber
Update #3199.
2020-07-23libtest: Add push/pop fixture supportSebastian Huber
Update #3199.
2020-07-23libtest: Support custom scope messages via fixtureSebastian Huber
Update #3199.
2020-07-23libtest: Add T_make_runner()Sebastian Huber
Update #3199.
2020-07-23libtest: Add T_get_one_clock_tick_busy()Sebastian Huber
Update #3199.
2020-07-23libtest: Add T_busy()Sebastian Huber
Update #3199.
2020-07-23libtest: Move <t.h> to <rtems/test.h>Sebastian Huber
Update #3199.
2020-07-23libtest: <rtems/test.h> to <rtems/test-info.h>Sebastian Huber
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-04-16Canonicalize config.h includeSebastian Huber
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2020-01-28libtest: Fix T_check_task_context()Sebastian Huber
Fix T_check_task_context() in RTEMS_SMP with RTEMS_DEBUG configurations.
2019-12-20libtest: Add T_check_task_context() actionSebastian Huber
2019-12-20libtest: Use test configuration in T_now()Sebastian Huber
Use the user provided now handler of the test configuration to get the time in T_now().
2019-12-20libtest: Fix use of T_check_true()Sebastian Huber
2019-12-05libtest: Change expected pass state stringSebastian Huber
Use separator character '_' for all test states.
2019-12-04libtest: Change expected fail state stringSebastian Huber
Use the value expected by the RTEMS Tester. There are two separator characters used ('-' and '_') for the states. This is a bit inconsistent.
2019-11-25libtest: Output basename of source filesSebastian Huber
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-10-11libtest: Add more action eventsSebastian Huber
This allows more control over the initialization and finalization run. Update #3199.
2019-10-11libtest: Do all output in test runnerSebastian Huber
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-04-09rtems: Add rtems_scheduler_get_processor_maximum()Sebastian Huber
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-09rtems: Add rtems_scheduler_get_processor()Sebastian Huber
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-03-27Add RTEMS Test FrameworkSebastian Huber
Update #3199.
2019-03-26build: Move test support to librtemstest.aSebastian Huber
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.