summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* block08/bdbuf_tests.c: Add include of <rtems/inttypes.h>Joel Sherrill2017-04-251-0/+1
|
* rtems/inttypes.h, block08: Add and use PRIdrtems_blkdev_bnumJoel Sherrill2017-04-251-1/+5
|
* devnullfatal01/testcase.h: Avoid redefinition of TESTS_USE_PRINTKJoel Sherrill2017-04-251-1/+3
|
* testsuite: Add a common test configuration. Fix configure.ac and Makefile.am ↵Chris Johns2017-04-046-99/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | errors. - Add a top level test configuration file for test states that are common to all BSPs. This saves adding a test configuration (tcfg) file for every BSP. - Add the test states 'user-input' and 'benchmark'. This lets 'rtems-test' stop the test rather than waiting for a timeout or letting a benchmark run without the user asking for it to run. - Implement rtems-test-check in Python to make it faster. The shell script had grown to a point it was noticably slowing the build down. - Fix the configure.ac and Makefile.am files for a number of the test directories. The files are difficiult to keep in sync with the number of tests and mistakes can happen such as tests being left out of the build. The test fsrofs01 is an example. Also a there was a mix of SUBDIRS and _SUBDIRS being used and only _SUBDIRS should be used. - Fix the test fsrofs01 so it compiles. Closes #2963.
* libdl: Support link ordered loading of ELF sections.Chris Johns2017-03-311-1305/+1357
| | | | | | | | | | | | | The ARM C++ exception ABI uses an address ordered index table to locate the correct frame data and this requires the EXIDX sections are loaded in the order the order the matching text is loaded. The EXIDX sections set the SHF_LINK_ORDER flag and link field. This patch adds support to load those flagged sections in the linked-to section order. Updates #2955. Closes #2959
* termios: Synchronize with latest FreeBSD headersKevin Kirspel2017-03-2212-256/+592
| | | | | | | | | | | Adding modified FreeBSD headers to synchronize RTEMS termios with FreeBSD. Modify termios to support dedicated input and output baud for termios structure. Updated BSPs to use dedicated input and output baud in termios structure. Updated tools to use dedicated input and output baud in termios structure. Updated termios testsuites to use dedicated input and output baud in termios structure. Close #2897.
* termios09: Test send callbackSebastian Huber2017-02-281-0/+26
|
* termios: Implement non-blocking writeSebastian Huber2017-02-281-0/+33
|
* termios: Make write POSIX compatibleSebastian Huber2017-02-281-2/+136
| | | | | | | | Currently only blocking read/write operations are implemented. A blocking write must transfer at least one character. It should not wait for the device for the second character and so on. Close #2917.
* termios: Simplify oproc()Sebastian Huber2017-02-281-4/+5
| | | | Call rtems_termios_puts() only once. Adjust column in one place.
* termios09: Test output post processingSebastian Huber2017-02-281-0/+358
|
* termios: Fix infinite loop in receive pathSebastian Huber2017-02-281-0/+3
| | | | | | | In canonical mode, the raw input buffer or the canonical buffer may overflow without an end of line. Avoid an infinite loop in this case. Close #2915.
* termios: Change receive callback invocationSebastian Huber2017-02-281-1/+325
| | | | | | | | Call the receive callback in case a read will succeed without to block. This enables the use of the receive callback for a poll() and select() support. Increase raw input buffer size to allow buffering of one line. Close #2916.
* termios: Ignore carriage return early if desiredSebastian Huber2017-02-286-0/+303
| | | | | | | In case carriage return characters should be ignored in the input (IGNCR), then drop them early before they reach the raw input buffer. This makes it easier to calculate the content size of the raw input buffer.
* libdl: Add C++ exception support to loaded modules.Chris Johns2016-12-1410-1200/+1465
| | | | | | This has been tested on SPARC, i386, PowerPC and ARM. Closes #2767.
* Rename is_internal to always_set_to_falseSebastian Huber2016-12-124-7/+7
| | | | Update #2825.
* score: Remove fatal is internal indicatorSebastian Huber2016-12-091-1/+0
| | | | | | | | | The fatal is internal indicator is redundant since the fatal source and error code uniquely identify a fatal error. Keep the fatal user extension is internal parameter for backward compatibility and set it to false always. Update #2825.
* cpukit: Add libdebugger, a remote debugger agent for GDB.Chris Johns2016-11-298-0/+654
|
* libtests/cpuuse: Check status onlySebastian Huber2016-11-231-2/+2
| | | | We may own the allocator mutex during context switches.
* libmisc/xz: Add xz decompression.Chris Johns2016-10-133-4/+98
| | | | Add support to untar XZ compressed files.
* termios: Use IMFS nodes for new Termios devicesSebastian Huber2016-09-191-116/+46
| | | | | | | | This makes the new Termios devices independent of device major/minor numbers. It enables BSP independent Termios device drivers which may reside in the cpukit domain. These drivers require an IMFS and do not work with the device file system. However, the device file system should go away in the future.
* libtests/devfs: Use printk()Sebastian Huber2016-09-193-5/+5
| | | | | This avoids problems with console drivers that use generic nodes of the IMFS.
* tests: CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEMSebastian Huber2016-09-196-6/+0
| | | | Avoid unnecessary use of CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM.
* Add SPI bus frameworkAlexander Krutwig2016-09-166-0/+322
| | | | | | User API is compatible to Linux userspace API. New test libtests/spi01. Update #2776.
* testsuite: Add libdl/dl05 reloc test.Chris Johns2016-09-0810-1/+1544
|
* libmisc/capture: Remove the reserved _t in the types.Chris Johns2016-09-011-2/+2
|
* testsuite: Add libdl/dl04 cache test.Chris Johns2016-08-1510-0/+1549
|
* testsuite: Add libdl/dl03 cache test.Chris Johns2016-08-158-1/+491
|
* librtems++: Remove from RTEMS.Chris Johns2016-08-1110-1200/+1
| | | | | | | This is old and there are better design patterns for threading and C++. We recommend you use the new C++ standards based support. Closes #2777.
* libmisc/untar: Set the perms to the value in the tar file.Chris Johns2016-08-092-1/+34
| | | | | | | This patch parses the mode field in the tar header and sets the directory or file to the mode value in the header. Closes #2768.
* Add Untar_FromGzChunk_Print() + TestAlexander Krutwig2016-07-265-5/+87
|
* Add Untar_FromChunk_Print() + TestAlexander Krutwig2016-07-263-0/+54
|
* net: Fix byte order issue for getnameinfo()Sebastian Huber2016-07-011-11/+11
|
* libnetworking: Add minimal getnameinfo()Christian Mauderer2016-06-286-0/+220
| | | | | | | This implementation just falls back to giving a string representation of the IP. It supports IPv4 only. Add test for getnameinfo().
* Make rtems/print.h independent of rtems/bspIo.hSebastian Huber2016-06-221-0/+1
|
* libmisc/untar: Support directory create and overwrites. Share the common code.Chris Johns2016-06-031-3/+6
| | | | | | | | | | | | | | | | | | | Support creating directories for files with a path depth greater than 1. Some tar files can have files with a path depth greater than 1 and no directory entry in the tar file to create a directory. Support overwriting existing files and directories failing in a similar way to tar on common hosts. If a file is replaced with a file delete the file and create a new file. If a directory replaces a file remove the file and create the directory. If a file replaces a directory remove the directory, and if the directory is not empty and cannot be removed report an error. If a directory alreday exists do nothing leaving the contents untouched. The untar code now shares the common header parsing and initial processing with the actual writes still separate. No changes to the IMFS have been made. Updates #2415. Closes #2207.
* testsuite: Fix printk format warnings.Chris Johns2016-05-2515-107/+87
|
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-2522-42/+79
| | | | | | | | | | | | | | | | | | | 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.
* testsuites: Avoid Giant lockSebastian Huber2016-05-201-4/+4
| | | | | | | | | Replace _Thread_Disable_dispatch() with _Thread_Dispatch_disable(). Replace _Thread_Enable_dispatch() with _Thread_Dispatch_enable(). This is a preparation to remove the Giant lock. Update #2555.
* block[08|09|10]/init.c: Include <stdlib.h> to fix warning on exit()Joel Sherrill2016-04-203-0/+4
|
* malloc: Fix early realloc() allocationSebastian Huber2016-04-061-0/+17
|
* libtests/syscall01: Explicitly request closeSebastian Huber2016-03-071-0/+19
| | | | | This makes the test more reliable in case an interrupt driven console driver is used.
* malloc: Add _Malloc_System_state()Sebastian Huber2016-02-251-1/+26
| | | | | | | | | | Replace malloc_is_system_state_OK() with _Malloc_System_state() to allow early allocations, e.g. in bsp_start(). Here the _Thread_Executing is NULL, thus an _API_Mutex_Lock() would lead to a NULL pointer access. Move malloc() support code to general case rtems_heap_allocate_aligned_with_boundary(). Use rtems_heap_allocate_aligned_with_boundary() to avoid duplicated code.
* libtests/devfs: Inc max dev to support more BSPsSebastian Huber2016-01-192-1/+6
|
* Remove H8300 portJoel Sherrill2016-01-041-3/+0
| | | | updates #2452.
* Remove M32R architectureJoel Sherrill2016-01-041-2/+1
| | | | updates #2446.
* api: Remove deprecated NotepadsAun-Ali Zaidi2015-12-243-85/+0
| | | | | | | | | | | | | | | | | | | | | | | Notepads where a feature of RTEMS' tasks that simply functioned in the same way as POSIX keys or threaded local storage (TLS). They were introduced well before per task variables, which are also deprecated, and were barely used in favor of their POSIX alternatives. In addition to their scarce usage, Notepads took up unnecessary memory. For each task: - 16 32-bit integers were allocated. - A total of 64 bytes per task per thread. This is especially critical in low memory and safety-critical applications. They are also defined as uint32_t, and therefore are not guaranteed to hold a pointer. Lastly, they are not portable solutions for SMP and uniprocessor systems, like POSIX keys and TLS. updates #2493.
* libtests/termios04: Avoid use of freed memorySebastian Huber2015-11-121-7/+35
|
* libblock: Print block sizes and countSebastian Huber2015-11-022-2/+5
|
* basdefs.h: Add and use RTEMS_UNUSEDSebastian Huber2015-10-262-30/+30
|