summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/test.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libtest: Fix use of flexible array memberSebastian Huber2021-05-031-8/+10
| | | | Flexible array members must not appear in the middle of a structure.
* libtest: Add support to seize/surrender objectsSebastian Huber2021-02-241-0/+5
|
* libtest: Add T_get_thread_timer_state()Sebastian Huber2021-02-081-1/+10
|
* libtest: Fix undefined setjmp() behaviourSebastian Huber2020-11-241-1/+2
| | | | | | Bug was introduced by 78baeb757957fa0807c30e6c4d21ae99c9639e6a. Update #3199.
* libtest: Allow assert checks during test beginSebastian Huber2020-11-191-1/+1
| | | | Allow assert checks in test begin actions and setup fixture methods.
* libtest: Rename ValidCache in FullCacheSebastian Huber2020-11-191-1/+1
| | | | | 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/+6
| | | | | | | 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: Make test case allocator configurableSebastian Huber2020-11-191-0/+2
|
* libtest: Add T_push_plan() and T_pop_plan()Sebastian Huber2020-08-181-0/+6
| | | | Update #3199.
* libtest: Change T_step() and T_assert_step()Sebastian Huber2020-08-181-6/+11
| | | | | | | | | | | 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.
* libtest: Add fixture stepsSebastian Huber2020-08-181-0/+3
| | | | | | Support a new test plan for each nested fixture. Update #3199.
* libtest: Add T_puts()Sebastian Huber2020-08-181-0/+2
| | | | Update #3199.
* libtest: Change fixture scope methodSebastian Huber2020-08-181-2/+7
| | | | | | | Return the produced character count. There is no need for a NUL termination. Update #3199.
* libtest: Add T_thread_switch_record()Sebastian Huber2020-08-111-0/+45
| | | | | | | | 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.
* libtest: Add T_interrupt_test()Sebastian Huber2020-07-231-0/+30
| | | | Update #3199.
* libtest: Add quiet assert NULL pointer checksSebastian Huber2020-07-231-0/+4
| | | | Update #3199.
* libtest: Add T_unreachable()Sebastian Huber2020-07-231-0/+3
| | | | Update #3199.
* libtest: Make check message optionalSebastian Huber2020-07-231-35/+72
| | | | | | | This macro magic is in line with C11 and C++11, but limits the maximum count of arguments. Update #3199.
* libtest: Add T_CHECK_FMTSebastian Huber2020-07-231-166/+172
| | | | | | | | | | | | 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.
* libtest: Add T_stop()Sebastian Huber2020-07-231-0/+8
| | | | Update #3199.
* libtest: Add T_get_scope()Sebastian Huber2020-07-231-0/+23
| | | | Update #3199.
* libtest: Add push/pop fixture supportSebastian Huber2020-07-231-0/+11
| | | | Update #3199.
* libtest: Support custom scope messages via fixtureSebastian Huber2020-07-231-0/+1
| | | | Update #3199.
* libtest: Add T_make_runner()Sebastian Huber2020-07-231-0/+2
| | | | Update #3199.
* libtest: Add T_get_one_clock_tick_busy()Sebastian Huber2020-07-231-0/+2
| | | | Update #3199.
* libtest: Add T_busy()Sebastian Huber2020-07-231-1/+3
| | | | Update #3199.
* libtest: Move <t.h> to <rtems/test.h>Sebastian Huber2020-07-231-0/+2379
| | | | Update #3199.
* libtest: <rtems/test.h> to <rtems/test-info.h>Sebastian Huber2020-07-231-329/+0
| | | | | | | | 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.
* doxygen: Added subclasses to APIAndreas Dachsberger2019-04-041-0/+2
| | | | | | | Update #3706. RTEMS Application Loader, RTEMS Runtime Link Editor, Status Checks and Test Support
* test: Add rtems_test_busy_cpu_usage()Sebastian Huber2018-02-021-1/+14
|
* Remove make preinstallChris Johns2018-01-251-0/+314
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.