summaryrefslogtreecommitdiffstats
path: root/cpukit/libtest (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/libtest: Remove unused variableKinsey Moore2024-03-011-1/+0
| | | | This unused variable causes a warning. It is never set or used.
* libtest: Improve gcov info dumpSebastian Huber2024-02-222-4/+6
| | | | | | | | | Make sure there is no spurious empty line between the gcov info and the *** END OF GCOV INFO BASE64 *** line. This helps to recalculate the hash correctly at the consumer side.
* base64: Move base64 encoding supportSebastian Huber2024-02-162-4/+7
|
* libtest: Change verbosity to normalSebastian Huber2023-12-191-1/+1
| | | | | A verbose verbosity is not required for normal test suite runs. It may be used to debug test cases.
* libtest: Fix test printer in rtems_test_run()Sebastian Huber2023-12-141-2/+11
| | | | | Route the test output through T_vprintf() only while the test suite runs. Otherwise, the begin/end of test message may not show up.
* libtest: Set test printer in rtems_test_run()Sebastian Huber2023-12-141-3/+11
| | | | Route the test output through T_vprintf().
* libtest: Add hash to gcov info dumpSebastian Huber2023-11-281-2/+27
| | | | This helps to validate that the data was transferred correctly.
* libtest: Add T_add_remark()Sebastian Huber2023-11-281-1/+33
| | | | | | | This can be used to report that nested test cases did run in a test case. Update #4971.
* libtest: Include missing header fileSebastian Huber2023-10-021-0/+1
| | | | This fixes the build if RTEMS_PROFILING is enabled.
* tests: Add header for RTEMS test printerSebastian Huber2023-09-262-1/+2
| | | | | | | | | | The <rtems/test-info.h> header file is required for every RTEMS test program. Move the RTEMS test printer support to a dedicated header file <rtems/test-printer.h>. This removes an unnecessary dependency to the RTEMS printer support in <rtems/test-info.h>. Tests using the RTEMS Testing Framework no longer depend on the <rtems/printer.h>.
* doxygen: Fix group memberships in libtestSebastian Huber2023-07-283-3/+3
|
* score: Move <rtems/score/gcov.h>Sebastian Huber2023-07-286-4/+247
| | | | | Move <rtems/score/gcov.h> to <rtems/test-gcov.h>. These functions do not belong to an super core service.
* score: Move formatted I/O functionsSebastian Huber2023-07-282-2/+2
| | | | These functions do not belong to an super core service.
* libtest: Place files into a Doxygen groupSebastian Huber2023-07-2620-31/+149
| | | | | | Canonicalize the file headers. Update #3707.
* Update company nameSebastian Huber2023-05-2028-28/+28
| | | | | The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
* libtest: Fix warnings without a pragmaSebastian Huber2022-08-311-6/+6
| | | | | | | It seems that recent GCC versions expect that functions with a "const type *" parameter will read from the referenced location. Update #4662.
* libtest: Add T_report_hash_sha256_update()Sebastian Huber2022-08-101-0/+9
| | | | Update #3716.
* gcov: Add wrapper to dump the gcov infoSebastian Huber2022-07-042-0/+108
| | | | Update #4670.
* gcov: Add functions to dump the gcov informationSebastian Huber2022-07-041-0/+66
| | | | Update #4670.
* t-test-checks-psx.c: Add file headers and licensesRyan Long2022-05-041-0/+33
| | | | | This file had no header, copyright, or license. Based on git history, added appropriate copyright and license.
* libtest: Increase line lengthSebastian Huber2022-03-241-1/+1
| | | | Update #3716.
* libtest: Add scheduler test supportSebastian Huber2022-03-241-0/+658
| | | | | | | | | Add support to record scheduler operations. This support is especially important for tests in SMP configurations since the thread switch extension is quite difficult to use due to the asynchronous nature of thread dispatching. In contrast, the scheduler operations occur normally in a deterministic order. Update #3716.
* cpukit/libtest: Change license to BSD-2Joel Sherrill2022-03-225-15/+110
| | | | Updates #3053.
* cpukit/: Scripted embedded brains header file clean upJoel Sherrill2022-03-104-24/+0
| | | | Updates #4625.
* libtest: Check for pending eventsSebastian Huber2021-12-221-0/+9
| | | | Make sure there are no pending events after a test case.
* libtest: Fix sample reportingSebastian Huber2021-12-071-11/+14
| | | | The sample reporting wronly added values to the wrong bin in some cases.
* libtest: Fix overlap in measurement contextSebastian Huber2021-12-071-2/+2
|
* libtest: Improve the interrupt test timingSebastian Huber2021-11-151-1/+8
| | | | | If no state change occurred during the test action, then assume a late interrupt.
* rtems: Fix rate monotonic statisticsSebastian Huber2021-10-251-2/+2
| | | | | | | | | | | | | | | The rate monotonic period statistics were affected by rtems_cpu_usage_reset(). The logic to detect and work around a CPU usage reset was broken. The Thread_Contol::cpu_time_used is changed to contain the processor time used throughout the entire lifetime of the thread. The new member Thread_Contol::cpu_time_used_at_last_reset is added to contain the processor time used at the time of the last reset through rtems_cpu_usage_reset(). This decouples the resets of the CPU usage and the rate monotonic period statistics. Update #4528.
* libtest: Improve T_now_tick()Sebastian Huber2021-09-211-0/+45
| | | | | | | The T_now_tick() is a fall back time measurement using the CPU counter in case no Clock Driver is configured. Some CPU counter may overflow during the test execution. Accumulate the elapsed time to reduce the chance of CPU counter overflows.
* libtest: Return fixture context in T_case_begin()Sebastian Huber2021-09-021-1/+2
| | | | This makes it similar to T_push_fixture().
* score: Add _Per_CPU_Submit_job()Sebastian Huber2021-07-291-3/+1
|
* libtest: Fix use of flexible array memberSebastian Huber2021-05-031-12/+12
| | | | Flexible array members must not appear in the middle of a structure.
* libtest: Print SHA256 hash in base64urlSebastian Huber2021-02-261-7/+6
|
* libtest: Report target hashSebastian Huber2021-02-261-0/+2
| | | | Update #4267.
* libtest: Report build labelSebastian Huber2021-02-251-0/+1
| | | | Update #4269.
* libtest: Add support to seize/surrender objectsSebastian Huber2021-02-241-0/+54
|
* libtest: Add T_get_thread_timer_state()Sebastian Huber2021-02-081-0/+29
|
* libtest: Remove double definitionSebastian Huber2021-02-011-1/+0
|
* libtest: Fix implicit type conversionsSebastian Huber2021-02-012-6/+9
| | | | This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
* libtest: Check return values with RTEMS_DEBUGSebastian Huber2021-02-011-13/+47
| | | | This fix relates to a Coverity issue (UNINIT).
* libtest: Remove superfluous NULL pointer checkSebastian Huber2021-01-271-1/+1
| | | | This fix relates to CID 1468683 (REVERSE_INULL).
* libtest: Use dependency injectionSebastian Huber2021-01-271-5/+11
| | | | This helps static analyzers.
* libtest: Fix undefined setjmp() behaviourSebastian Huber2020-11-241-52/+58
| | | | | | Bug was introduced by 78baeb757957fa0807c30e6c4d21ae99c9639e6a. Update #3199.
* libtest: Simplify "Load" environment reportingSebastian Huber2020-11-191-2/+2
| | | | | | | Report all runtime measurement environments with a name only and encode the worker count of the "Load" environment in the name. Update #3199.
* libtest: Allow assert checks during test beginSebastian Huber2020-11-191-12/+17
| | | | Allow assert checks in test begin actions and setup fixture methods.
* libtest: Rename ValidCache in FullCacheSebastian Huber2020-11-191-5/+5
| | | | | This name better reflects the execution envirnoment in which the cache is fully loaded with valid data unrelated to the body request handler.
* libtest: Add primitive test case memory allocatorSebastian Huber2020-11-191-0/+86
| | | | | | | This primitive test case memory allocator uses memory from the low-level memory information provided by the BSP. At the beginning of each test case, the memory available to the test case is reinitialized. This allows the use of a simple allocate only allocator.
* libtest: Simplify runtime measurement supportSebastian Huber2020-11-191-47/+32
| | | | | Use the test case allocator functions T_zalloc() and T_malloc(). Restore the task affinity of the runner task.
* libtest: Make test case allocator configurableSebastian Huber2020-11-193-112/+90
|