summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/testsupport/test.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove make preinstallChris Johns2018-01-251-314/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* testsupport/test.h: Add RTEMS_NO_RETURN to rtems_test_exit()Joel Sherrill2017-11-291-1/+1
|
* tests: Use ld to map (wrap) printf, puts and putchar to tester functions.Chris Johns2017-11-111-0/+6
| | | | | | | | | - 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.
* tests: Use rtems_test_begin and rtems_test_end.Chris Johns2017-11-111-8/+31
| | | | | | Add a tests enum and move all test banner test to the library in libmisc. Update #3199.
* tests: Move busy loop to test supportSebastian Huber2017-06-291-1/+17
| | | | Update #3056.
* Rename is_internal to always_set_to_falseSebastian Huber2016-12-121-1/+1
| | | | Update #2825.
* testsupport: Determine worker index via processorSebastian Huber2016-11-031-4/+10
| | | | | Determine worker index via the current processor index to get consistent job runs with respect to the cache topology.
* Rename rtems_test_print() into rtems_test_printf()Sebastian Huber2016-06-221-1/+1
|
* Move printer initialization to separate headerSebastian Huber2016-06-221-1/+1
| | | | | | The RTEMS print user need to know nothing about a particular printer implementation. In particular get rid of the <stdio.h> include which would be visible via <rtems.h>.
* Rename and move RTEMS_PRINTF_ATTRIBUTE()Sebastian Huber2016-06-221-1/+1
| | | | | Rename RTEMS_PRINTF_ATTRIBUTE() into RTEMS_PRINTFLIKE() (similar to <sys/cdefs.h> __printflike()) and move it to <rtems/score/basedefs.h>.
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-251-45/+15
| | | | | | | | | | | | | | | | | | | This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
* testsupport: Add worker setup handlerSebastian Huber2015-03-171-5/+39
| | | | Add rtems_test_parallel_get_task_id().
* testsupport: Add cascade option to parallel testAlexander Krutwig2015-03-061-2/+23
|
* tests: Refactor parallel test executionAlexander Krutwig2015-03-051-0/+113
|
* Move test support from sapi to libmisc/testsupportSebastian Huber2015-03-051-0/+125