summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* imfs: Replace devfs with an IMFS specializationSebastian Huber2020-03-0911-324/+32
| | | | | | | | | | | | | | | | Add a simplified path evaluation function IMFS_eval_path_devfs() for a device only IMFS configuration. The code size can be further reduced by the application if it disables the support for legacy IO drivers via: #define CONFIGURE_IMFS_DISABLE_MKNOD #define CONFIGURE_IMFS_DISABLE_MKNOD_DEVICE Obsolete CONFIGURE_MAXIMUM_DEVICES. Remove BSP_MAXIMUM_DEVICES. Update #3894. Update #3898.
* config: Remove CONFIGURE_DISABLE_SMP_CONFIGURATIONSebastian Huber2020-02-254-7/+0
| | | | | | | | | | The CONFIGURE_DISABLE_SMP_CONFIGURATION configuration option and rtems_configuration_is_smp_enabled() were added during the SMP support development cycle as a workaround to fix some testsuite failures in SMP configurations. All use cases were replaced with tests for specific conditions. The configuration option and test macro were undocumented. Close #3876.
* libio: Add POSIX user environment pointer to TCBSebastian Huber2020-02-251-2/+0
| | | | | | | | | | The IO library used a POSIX key to store an optional POSIX user environment pointer. This pulled in the POSIX keys support in every application configuration. Add a user environment pointer to the thread control block (TCB) instead. Applications which do not need the POSIX user environment will just get an overhead of one pointer per thread. Close #3882.
* libtests/stackchk: Include missing header fileSebastian Huber2020-02-251-0/+2
| | | | Update #3875.
* testsuite/newlib: Check newlib does not touch an assigned std FILE pointerChris Johns2020-02-181-1/+15
| | | | Update #3870
* libtests/malloc04: Fix typoSebastian Huber2020-02-041-1/+1
| | | | Update #3838.
* bsps: Rework work area initializationSebastian Huber2020-02-041-16/+16
| | | | | | | | | | | | | | | | | | | | The work area initialization was done by the BSP through bsp_work_area_initialize(). This approach predated the system initialization through the system initialization linker set. The workspace and C program heap were unconditionally initialized. The aim is to support RTEMS application configurations which do not need the workspace and C program heap. In these configurations, the workspace and C prgram heap should not get initialized. Change all bsp_work_area_initialize() to implement _Memory_Get() instead. Move the dirty memory, sbrk(), per-CPU data, workspace, and malloc() heap initialization into separate system initialization steps. This makes it also easier to test the individual initialization steps. This change adds a dependency to _Heap_Extend() to all BSPs. This dependency will be removed in a follow up change. Update #3838.
* libtest: Add T_check_task_context() actionSebastian Huber2019-12-203-2/+62
|
* libtest: Use test configuration in T_now()Sebastian Huber2019-12-202-31/+6
| | | | | Use the user provided now handler of the test configuration to get the time in T_now().
* config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORSSebastian Huber2019-12-1957-57/+57
| | | | | | | Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753.
* libtest: Change expected pass state stringSebastian Huber2019-12-0511-11/+11
| | | | Use separator character '_' for all test states.
* testsuites: Remove rtems_test_pause*()Sebastian Huber2019-12-041-1/+0
| | | | | | | | | | | | | The rtems_test_pause() and rtems_test_pause_and_screen_number() macros had different implementations depending on the RTEMS_TEST_NO_PAUSE define. This define was defined to 1 by default. The user was able to change this via the undocumented --disable-test-no-pause configure command line option. Pausing tests and waiting for user input contradicts the goal of having automated test runs. Remove this feature. Update #3818.
* untar: Properly make parent pathSebastian Huber2019-11-263-19/+19
| | | | Close #3823.
* libtests/dl*: Rename source filesSebastian Huber2019-11-2630-29/+29
| | | | | | | | Rename source files to use a %.c -> %.o and %.cc -> %.o pattern. Use *.cc for C++ source files instead of *.cpp to be in line with other C++ source files. Update #3818.
* libtests/dl*: Use rtems_tarfs_load()Sebastian Huber2019-11-269-18/+18
| | | | | Use rtems_tarfs_load() instead of Untar_FromMemory() to reduce the memory demands of the tests.
* libtests: Use '-' for TAR file namesSebastian Huber2019-11-254-29/+29
| | | | | | | Use uniform pattern for all TAR file names. Use the dl* tests as a template. Update #3818.
* libtests/dl*: Do not generate files via "echo"Sebastian Huber2019-11-255-29/+18
| | | | | | Add the static files to the repository. This simplifies the build. Update #3818.
* libtests/tar0[12]:: Use static archive contentSebastian Huber2019-11-254-20/+9
| | | | | | | | This simplifies the build process. Do not generate the archive content through the build system. Let the version control system deal with symbolic links. Update #3818.
* testsuite: Only include termios10/termios11 tests if compiled with POSIXHesham Almatary2019-11-211-0/+4
| | | | Both need POSIX support
* imfs: Add IMFS_make_linfile()Sebastian Huber2019-11-191-31/+29
| | | | Update #3818.
* Remove BSP_SMALL_MEMORY BSP optionSebastian Huber2019-11-152-8/+0
| | | | | | Use the test state configuration instead. Update #3818.
* testsuite/dl02: Fix bug to correctly check the handle of the second object fileHesham Almatary2019-11-121-1/+1
|
* riscv: preliminarily support for libdlHesham Almatary2019-11-121-1/+1
| | | | Support for targets compiled with -fno-pic and -mno-relax
* sptests: Avoid include path magicSebastian Huber2019-11-122-5/+11
| | | | Update #3818.
* tests: Simplify fatal error test supportSebastian Huber2019-11-121-1/+1
| | | | | | Move system.h to shared init.c. Update #3818.
* block08: Use local includeSebastian Huber2019-11-1214-14/+14
| | | | Update #3818.
* libtests: Remove superfluous include pathSebastian Huber2019-11-121-2/+1
| | | | Update #3818.
* libtests: Avoid build system defined definesSebastian Huber2019-11-1220-609/+621
| | | | Update #3818.
* ttest01: Check init/final run outputSebastian Huber2019-10-111-0/+85
| | | | Update #3199.
* ttest01: Add test outputs all test casesMikail Yayla2019-10-1115-0/+2880
|
* ttest01: Add more test casesSebastian Huber2019-10-1117-3/+4237
| | | | Update #3199.
* libtest: Do all output in test runnerSebastian Huber2019-10-111-0/+4
| | | | | | | | This ensures that lines are output atomically if they are produced by different other contexts, e.g. interrupts, other processors, other threads. Update #3199.
* ttest01: Adjust SPDX-License-IdentifierSebastian Huber2019-10-111-2/+7
| | | | Update #3199.
* termios: Add Capability to Generate SIGINTR and SIGQUITJoel Sherrill2019-10-087-1/+288
| | | | | | | | | | | | | | This patch adds the ability for termios to send SIGINTR on receipt of VINTR and SIGQUIT for VKILL and return -1/EINTR from read() on a termios channel. Importantly, this patch does not alter the default behavior or force POSIX signal code in just because termios is used. The application must explicitly enable the POSIX behavior of generating a signal upon receipt of these characters. This is discussed in the POSIX standard: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html Closes #3800.
* termios04/init.c: Remove dead copy of change_iflag()Joel Sherrill2019-10-041-17/+0
|
* Revert "record: Add wrappers for malloc() functions"Sebastian Huber2019-10-023-492/+230
| | | | | | It was accidentally committed. This reverts commit a314544a278f1533ae001f742d7fe24fcee253e6.
* libtests/ttest01: Fix typosSebastian Huber2019-10-021-3/+3
|
* record: Add wrappers for malloc() functionsSebastian Huber2019-10-013-230/+492
| | | | | | | | | | Introduce new library librtemsrecordwrap.a which contains wrappers for operating system functions which produce entry/exit events. The wrappers can be selected during link time via the GNU ld --wrap option. Update #3665.
* libtests/record01: Fix test failureSebastian Huber2019-10-011-2/+45
| | | | Update #3665.
* record: Add system eventsSebastian Huber2019-08-301-0/+22
| | | | | | Add system events for memory allocation/free. Update #3665.
* record: Add system eventsSebastian Huber2019-08-301-2/+3
| | | | | | | Add system events to identify the target system. Add system events to transfer blocks of memory and register sets. Update #3665.
* record: Add more system eventsSebastian Huber2019-08-292-75/+262
| | | | | | | | | | Reduce the system dependencies to allow tracing of very low level functions, for example the interrupt disable/enable. Introduce general purpose RTEMS_RECORD_CALLER and RTEMS_RECORD_LINE events. Update #3665.
* record: Add variants for critical sectionsSebastian Huber2019-08-281-2/+5
| | | | Update #3665.
* record: Introduce <rtems/recordserver.h>Sebastian Huber2019-08-281-0/+1
| | | | | | | This helps to get rid of the <rtems/rtems/tasks.h> dependency in <rtems/record.h>. Update #3665.
* record: Use BSS section instead of per-CPU dataSebastian Huber2019-08-281-1/+3
| | | | | | | | | | | The .rtemsrwset section is used for the per-CPU data. This section has loadable content. Place the ring buffers in the BSS section to avoid large executable image sizes. Not using the per-CPU data makes it possible to initialize the record support earlier. Update #3665.
* record: Pass bintime to client handlersSebastian Huber2019-08-171-3/+11
| | | | This is a minor optimization.
* record: Improve overflow handlingSebastian Huber2019-08-172-72/+75
| | | | | | | | In case of a ring buffer overflow, the rtems_record_drain() will push the complete ring buffer content to the client. While the items are processed by the client, new items may overwrite some items being processed. The overwritten items can be detected in the following iteration once the next tail/head information is pushed to the client.
* record: Change thread name encodingSebastian Huber2019-08-061-4/+4
| | | | This scheme is easier to decode.
* record: Add support for thread namesSebastian Huber2019-07-301-0/+32
|
* libdl/arm: Fix ARM mode trampoline parsing of relocsChris Johns2019-07-281-1/+0
| | | | | | - No need to dump globals syms in test dl01 when tracing Closes #3775