summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-06-22i2c: Add non blocking read / writeChristian Mauderer1-1/+120
This adds the possibility to open an I2C bus with O_NONBLOCK (or set it later via fcntl) to get non-blocking transmissions. This means that if the bus is busy, a read, write or transfer ioctl will return with a EAGAIN errno.
2021-05-20testsuites: Remove telnetd01Vijay Kumar Banerjee3-155/+0
telnetd01 test cannot be run without a network stack, so this test is being moved to the rtems-net-legacy repository.
2021-05-06Return NULL for zero size allocationsSebastian Huber1-55/+26
In POSIX, zero size memory allocations are implementation-defined behaviour. The implementation has two options: https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html Linux and FreeBSD return a unique pointer for zero size memory allocations. Return NULL on RTEMS to more likely catch the use of a zero size memory area by erroneous applications. Update #4390.
2021-05-04Make zero size allocation result consistentSebastian Huber1-10/+96
The zero size allocations had no consistent behaviour in RTEMS. For example, malloc( 0 ) returned NULL and posix_memalign( &p, align, 0 ) returned in p a unique pointer (or NULL if no memory is available). In POSIX, zero size memory allocations are implementation-defined behaviour. The implementation has two options: https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html Linux and FreeBSD return a unique pointer for zero size memory allocations. Use this approach for RTEMS as well throughout the memory allocation directives Close #4390.
2021-05-03libtest: Fix use of flexible array memberSebastian Huber1-15/+15
Flexible array members must not appear in the middle of a structure.
2021-04-26Makefile.am: Remove legacy networking filesVijay Kumar Banerjee1-69/+0
2021-04-20Fix calloc() behaviour in case of overflowSebastian Huber1-10/+13
The multiplication to calculate the length of the memory area to allocate may overflow. Return NULL in case of an overflow. Close #4389.
2021-04-13Revert "cpukit: Remove telnetd"Vijay Kumar Banerjee3-0/+155
This reverts commit 3299dda2454a8847c670a732f6c12ef1f2cc5dd0.
2021-04-07testsuites: Remove all legacy networking testsVijay Kumar Banerjee12-1379/+0
Update #3850
2021-04-07cpukit: Remove telnetdVijay Kumar Banerjee3-155/+0
Update #3850
2021-04-07testsuites/libtests: Remove networking01Vijay Kumar Banerjee3-196/+0
Update #3850
2021-04-07libtests/block14: Fix warningSebastian Huber1-1/+1
Fix warning: testsuites/libtests/block14/init.c:198:8: warning: 'sc' may be used uninitialized in this function [-Wmaybe-uninitialized] Update #3689.
2021-03-30Restore FDT in ofw01 to avoid test timeout on RISCVJiri Gaisler1-0/+1
2021-03-26libblock: Add rtems_bdbuf_peek()Christian Mauderer2-36/+107
Adds a peek function that allows (for example) a file system to suggest the next blocks that should be used for read ahead. This can increase the read speed of fragmented files. Update #3689
2021-02-26libtest: Print SHA256 hash in base64urlSebastian Huber1-1/+1
2021-02-26libtest: Report target hashSebastian Huber1-2/+6
Update #4267.
2020-12-27libtests/ofw01: Added a test for RTEMS OFWG S Niteesh Babu6-0/+395
This commit adds a basic test that tests all the implemented RTEMS OFW functions.
2020-11-19libtest: Make test case allocator configurableSebastian Huber1-0/+3
2020-10-10testsuits/dl10 : Prototype missingFrank Kühndel1-0/+1
Fix a compiler warning about a missing prototype. If you wonder why the function name is not `static`: The code in the file only serves a test where the dynamic object loader (aka dlopen()) should handle duplicated symbols in an archive. testsuites/libtests/dl10/dl10-o6.c:14:5: warning: no previous prototype for 'rtems_main_o5' [-Wmissing-prototypes] 14 | int rtems_main_o5 (void) | ^~~~~~~~~~~~~
2020-10-09testsuite/rcxx01: Add examples for use in the User manualChris Johns5-5/+245
2020-10-08cpukit/librcxx: Add a C++ thread interface with attributesChris Johns4-0/+228
2020-09-30libtests/sha: Fix test if -O0 is usedSebastian Huber1-0/+11
2020-09-14irqs01/smpirqs01: New testsSebastian Huber2-0/+315
Close #4034.
2020-08-18libtest: Add T_push_plan() and T_pop_plan()Sebastian Huber2-2/+23
Update #3199.
2020-08-18libtest: Change T_step() and T_assert_step()Sebastian Huber2-4/+4
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.
2020-08-18libtest: Add fixture stepsSebastian Huber3-21/+22
Support a new test plan for each nested fixture. Update #3199.
2020-08-18libtest: Change fixture scope methodSebastian Huber1-4/+4
Return the produced character count. There is no need for a NUL termination. Update #3199.
2020-08-11libtests/dl10: Delete unused functionsAschref Ben Thabet1-22/+0
2020-08-11libtest: Add T_thread_switch_record()Sebastian Huber1-0/+66
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.
2020-08-06libtest: Fix T_interrupt_test() in SMP configsSebastian Huber1-0/+54
Update #3199.
2020-07-23libtest: Add T_interrupt_test()Sebastian Huber5-0/+232
Update #3199.
2020-07-23libtest: Make check message optionalSebastian Huber2-2/+25
This macro magic is in line with C11 and C++11, but limits the maximum count of arguments. Update #3199.
2020-07-23libtest: Add push/pop fixture supportSebastian Huber2-9/+100
Update #3199.
2020-07-23libtest: Support custom scope messages via fixtureSebastian Huber2-9/+17
Update #3199.
2020-07-23libtest: Move <t.h> to <rtems/test.h>Sebastian Huber18-18/+18
Update #3199.
2020-07-23libtest: <rtems/test.h> to <rtems/test-info.h>Sebastian Huber33-33/+33
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.
2020-05-08libtests/tar01: Remove files of tar01.tar archiveSebastian Huber3-5/+0
Update #3968.
2020-05-07libtests/tar0[12]: Add tar archiveSebastian Huber4-16/+9
Do not generate the test tar archive on the host computer since not all file systems support symbolic links. Close #3968.
2020-05-06libtest/dl09: Test trampolines only when supportedChris Johns1-4/+20
2020-05-05testsuite/dl06: Add a local define to control tracingChris Johns1-0/+2
Closes #3969
2020-04-29libtests/heapwalk: Fix for RTEMS_DEBUGSebastian Huber1-0/+3
Update #2962.
2020-04-16Canonicalize config.h includeSebastian Huber49-49/+49
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2020-04-15libmisc/shell: Fix the handling of joel scripts in telnetChris Johns1-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
2020-03-31testsuites: Remove CONFIGURE_MALLOC_STATISTICSSebastian Huber1-2/+0
This configuration option is obsolete since 2014. Update #1367.
2020-03-18record: Add rtems_record_dump()Sebastian Huber2-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.
2020-03-09imfs: Replace devfs with an IMFS specializationSebastian Huber11-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.
2020-02-25config: Remove CONFIGURE_DISABLE_SMP_CONFIGURATIONSebastian Huber4-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.
2020-02-25libio: Add POSIX user environment pointer to TCBSebastian Huber1-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.
2020-02-25libtests/stackchk: Include missing header fileSebastian Huber1-0/+2
Update #3875.
2020-02-18testsuite/newlib: Check newlib does not touch an assigned std FILE pointerChris Johns1-1/+15
Update #3870