summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libtests/tar01: Remove files of tar01.tar archiveSebastian Huber2020-05-083-5/+0
| | | | Update #3968.
* libtests/tar0[12]: Add tar archiveSebastian Huber2020-05-074-16/+9
| | | | | | | Do not generate the test tar archive on the host computer since not all file systems support symbolic links. Close #3968.
* libtest/dl09: Test trampolines only when supportedChris Johns2020-05-061-4/+20
|
* testsuite/dl06: Add a local define to control tracingChris Johns2020-05-051-0/+2
| | | | Closes #3969
* libtests/heapwalk: Fix for RTEMS_DEBUGSebastian Huber2020-04-291-0/+3
| | | | Update #2962.
* Canonicalize config.h includeSebastian Huber2020-04-1649-49/+49
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* libmisc/shell: Fix the handling of joel scripts in telnetChris Johns2020-04-151-3/+120
| | | | | | | | | | | | - Fix the passing of std[in/out] to child threads - Fix deleting of managed memory in the key destructor - Only set the key in the main loop thread - Only allocate a shell env outside of the main loop - Fix memory leak if the task start fails - Remove error level from shell env, it cannot be returned this way. Add exit_code but the API is broken so it cannot be returned. Closes #3859
* testsuites: Remove CONFIGURE_MALLOC_STATISTICSSebastian Huber2020-03-311-2/+0
| | | | | | This configuration option is obsolete since 2014. Update #1367.
* record: Add rtems_record_dump()Sebastian Huber2020-03-182-12/+27
| | | | | | | | | Add rtems_record_dump_base64() and rtems_record_dump_base64_zlib(). Add CONFIGURE_RECORD_FATAL_DUMP_BASE64 and CONFIGURE_RECORD_FATAL_DUMP_BASE64_ZLIB configuration options. Update #3904.
* 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.