summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: Use simple console driverSebastian Huber2017-11-06179-175/+187
| | | | | Update #3170. Update #3199.
* score: Add _IO_Printf() and _IO_Vprintf()Sebastian Huber2017-11-062-92/+150
| | | | | | | | | | | | | | The previous vprintk() implementation had a questionable licence header, lacks support for the 'z' and 'j' format specifiers, is not robust against invalid format specifiers, uses a global variable for output. Replace it with a stripped down version of the FreeBSD kernel kvprintf() function. The new implementation allows a low overhead rtems_snprintf() if necessary. Update #3199. Close #3216.
* tests: Use printf() instead of fprintf()Sebastian Huber2017-11-021-3/+0
| | | | | Update #3170. Update #3199.
* tests: Delete obsolete TESTS_USE_PRINTFSebastian Huber2017-11-021-1/+0
| | | | | Update #3170. Update #3199.
* testsuite: Add bspIo for a local printk.Chris Johns2017-10-301-0/+2
| | | | | Update #3170. Update #3199.
* tests: Remove TEST_INITSebastian Huber2017-10-28181-361/+0
| | | | | | | | The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
* tests: Remove obsolete TESTS_USE_PRINTKSebastian Huber2017-10-2813-13/+0
| | | | | Update #3170. Update #3199.
* tests: Use rtems_test_printer in generalSebastian Huber2017-10-282-0/+3
| | | | | Update #3170. Update #3199.
* tests: Use rtems_test_printerSebastian Huber2017-10-281-3/+1
| | | | | Update #3170. Update #3199.
* tests: Move rtems_test_printer definitionSebastian Huber2017-10-281-2/+0
| | | | | | | Statically initialize it to use printk(). Update #3170. Update #3199.
* sptests/spscheduler01: Test POSIX set/get affinitySebastian Huber2017-10-282-23/+98
|
* score: Fix _Scheduler_Set_affinity()Sebastian Huber2017-10-281-1/+12
|
* rtems: rtems_clock_get_ticks_per_second()Sebastian Huber2017-10-251-0/+3
| | | | | | | Add macro implementation for rtems_clock_get_ticks_per_second() for C/C++ to avoid the function call overhead. A rtems_clock_get_ticks_per_second() is still provided for language bindings (e.g. Ada).
* score: Add _Watchdog_Nanoseconds_per_tickSebastian Huber2017-10-241-0/+1
| | | | | | | Move it from the configuration to a separate variable. Update #3117. Update #3182.
* score: _Watchdog_Is_far_future_monotonic_timespecSebastian Huber2017-10-241-0/+1
| | | | | Update #3117. Update #3182.
* score: Add _Watchdog_Ticks_per_secondSebastian Huber2017-10-241-0/+6
| | | | | | | | This value is frequently used. Avoid the function call overhead and the integer division at run-time. Update #3117. Update #3182.
* testsuite: Use printk for all test output where possible.Chris Johns2017-10-23182-3/+363
| | | | | | | | | | - Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
* sptests/sptimecounter04: New testChristian Mauderer2017-10-186-0/+119
| | | | | Ensure that the time flow of CLOCK_REALTIME and CLOCK_MONOTONIC is close to the clock driver ticks time flow.
* score: Rename watchdog variantsSebastian Huber2017-10-172-3/+3
| | | | | | | | | | | Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182.
* spthreadq01/init.c: Fix unused variable warningsJoel Sherrill2017-10-121-3/+0
|
* Fix spprofiling01 overriding recipe warningJoel Sherrill2017-10-112-2/+2
| | | | Closes #3084.
* score: Remove CPU_set_ControlSebastian Huber2017-10-111-13/+0
| | | | | | Use Processor_mask instead. Update #2514.
* posix: Implement self-contained POSIX mutexSebastian Huber2017-10-053-54/+0
| | | | | | | | POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
* posix: Implement self-contained POSIX condvarSebastian Huber2017-10-052-20/+0
| | | | | | | | POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
* posix: Implement self-contained POSIX rwlocksSebastian Huber2017-10-052-35/+0
| | | | | | | | POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
* posix: Implement self-contained POSIX barriersSebastian Huber2017-10-051-16/+0
| | | | | | | | POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
* posix: Implement self-contained POSIX semaphoresSebastian Huber2017-10-051-18/+0
| | | | | | | | | | | | | | For semaphore object pointer and object validation see POSIX_SEMAPHORE_VALIDATE_OBJECT(). Destruction or close of a busy semaphore returns an error status. The object is not flushed. POSIX semaphores are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3116.
* libio: Add hold/drop iop referenceSebastian Huber2017-09-156-0/+189
| | | | | | | Check iop reference count in close() and return -1 with errno set to EBUSY in case the file descriptor is still in use. Update #3132.
* sp25/task1.c: Fix printf() format warningsJoel Sherrill2017-08-271-2/+2
|
* spstkalloc02/init.c: Fix printf() format warningsJoel Sherrill2017-08-271-6/+6
|
* sparc: Add lazy floating point switchSebastian Huber2017-07-253-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The SPARC ABI is a bit special with respect to the floating point context. The complete floating point context is volatile. Thus, from an ABI point of view nothing needs to be saved and restored during a context switch. Instead the floating point context must be saved and restored during interrupt processing. Historically, the deferred floating point switch was used for SPARC and the complete floating point context is saved and restored during a context switch to the new floating point unit owner. This is a bit dangerous since post-switch actions (e.g. signal handlers) and context switch extensions may silently corrupt the floating point context. The floating point unit is disabled for interrupt handlers. Thus, in case an interrupt handler uses the floating point unit then this will result in a trap (INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT). In uniprocessor configurations, a lazy floating point context switch is used. In case an active floating point thread is interrupted (PSR[EF] == 1) and a thread dispatch is carried out, then this thread is registered as the floating point owner. When a floating point owner is present during a context switch, the floating point unit is disabled for the heir thread (PSR[EF] == 0). The floating point disabled trap checks that the use of the floating point unit is allowed and saves/restores the floating point context on demand. Update #3077.
* INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNITSebastian Huber2017-07-2511-2/+248
| | | | | | Add new fatal error INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT. Update #3077.
* sptests/sptls02: Use standard test IOSebastian Huber2017-07-191-1/+0
| | | | Update #3076.
* sptests/spcache01: Use standard test IOSebastian Huber2017-07-191-1/+0
| | | | Update #3076.
* tests: Use floating point taskSebastian Huber2017-07-192-1/+3
| | | | | | | These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
* tests: Use floating point taskSebastian Huber2017-07-183-0/+6
| | | | | | | These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
* rtems: Add rtems_scheduler_ident_by_processor_setSebastian Huber2017-07-111-0/+19
| | | | Update #3070.
* rtems: Add rtems_scheduler_ident_by_processor()Sebastian Huber2017-07-111-0/+12
| | | | Update #3069.
* tests: Move busy loop to test supportSebastian Huber2017-06-291-86/+10
| | | | Update #3056.
* spcpuset01: Update due to CPU_CMP() changesSebastian Huber2017-06-091-1/+1
| | | | Close #3036.
* spcpuset01: Update due to CPU_NAND_S() changesSebastian Huber2017-06-071-3/+3
| | | | Close #3032.
* Fix CPU_COPY() usageSebastian Huber2017-06-072-2/+2
| | | | | | | | The original CPU_COPY() support of Newlib <sys/cpuset.h> had the parameters in the wrong order. This is fixed in Newlib since 2017-05-22. Update #3023.
* Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber2017-06-072-0/+2
| | | | Update #2833.
* confdefs.h: Add SMP enabled field to configurationSebastian Huber2017-05-1613-2/+24
| | | | | | | | | | | Do not use the processor count to determine if SMP is enabled. Instead use a dedicated configuration option. Enable SMP by default in SMP configurations. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001.
* sptests/spprivenv01: Use default task modeSebastian Huber2017-05-121-1/+1
| | | | There is no need to run the task with interrupts disabled.
* confdefs.h: Use SMP scheduler only if necessarySebastian Huber2017-05-121-0/+2
| | | | Update #3001.
* confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATIONSebastian Huber2017-05-1110-0/+20
| | | | | | | | | | | Enable the SMP configuration by default in case SMP is enabled. Add configuration option CONFIGURE_DISABLE_SMP_CONFIGURATION to disable it explicitly. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001.
* spcache01: Instruction cache invalidate workaroundSebastian Huber2017-04-051-4/+41
| | | | | On some systems, the instruction cache invalidation is not allowed by the MMU.
* testsuite: Add a common test configuration. Fix configure.ac and Makefile.am ↵Chris Johns2017-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* spextensions01: Fix extension create orderSebastian Huber2017-02-211-11/+11
| | | | Update #2692.