summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* spqreslib: Remove invalid test casesSebastian Huber2017-02-141-16/+2
|
* spcbssched02: Remove invalid test casesSebastian Huber2017-02-141-16/+2
|
* Rename CONFIGURE_SMP_MAXIMUM_PROCESSORSSebastian Huber2017-02-142-2/+2
| | | | | | | Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS to CONFIGURE_MAXIMUM_PROCESSORS since the SMP part is superfluous. Update #2894.
* sppagesize: Include missing header fileSebastian Huber2017-02-141-0/+1
|
* Prefix confdefs.h internal def with an underscoreSebastian Huber2017-02-031-2/+2
| | | | Close #2895.
* Remove CONFIGURE_SMP_APPLICATIONSebastian Huber2017-02-022-4/+0
| | | | | | Enable the SMP support if CONFIGURE_SMP_MAXIMUM_PROCESSORS > 1. Update #2893.
* sprmsched01/spedfsched04: ReviseKuan-Hsun Chen2017-01-316-153/+92
| | | | | | | | Instead of using the target time and console driver, both tests now use assertions and rtems_rate_monotonic_get_status() to verify the count of postponed jobs. The setting of spedfsched04 is slightly changed. Close #2795.
* rtems: Fix _Rate_monotonic_Renew_deadline()Kuan-Hsun Chen2017-01-306-1/+171
| | | | | | | | | | | | Prepare a precondition to prevent the potential integer overflow. Remove one redundant parameter in _Rate_monotonic_Renew_deadline(). sptests/sprmsched02: Create A test case for checking the overflow condition of postponed_jobs in rtems_rate_monotonic_period_status. Update #2885.
* score: Fix user extensions orderSebastian Huber2017-01-262-36/+32
| | | | | | | | | | | Use forward and reverse order for initial and dynamic extensions. This is the behaviour documented in the C Users Guide. Change thread terminate order to backward to be in line with the thread delete order. Change fatal error order to forward to ensure that initial extensions are called first due the peculiar execution context of fatal error extensions, see _Terminate() documentation. Update #2692.
* Remove rtems_rate_monotonic_postponed_job_count()Kuan-Hsun Chen2017-01-263-4/+15
| | | | | | | | | | | Add a variable named "count" in rtems_rate_monotonic_period_status structure. Revise rtems_rate_monotonic_get_status() for the postponed job count. sptests/sp69: Add in the verification of the postponed job count for rtems_rate_monotonic_get_status(). Update #2795.
* sptests/spedfsched04: Merge and fixSebastian Huber2017-01-254-193/+113
| | | | | | | Merge into one file and fix obvious problems (e.g. out of bounds array access). Update #2795.
* sptests/sprmsched01: Merge and fixSebastian Huber2017-01-244-196/+112
| | | | | | | Merge into one file and fix obvious problems (e.g. out of bounds array access). Update #2795.
* classic: adjust names of RM postponed job functionsGedare Bloom2017-01-132-6/+6
| | | | closes #2795
* sptests: EDF scheduler overrun handlingKuan-Hsun Chen2017-01-138-1/+316
| | | | Update #2795.
* sptests: rate monotonic scheduler overrun handlingKuan-Hsun Chen2017-01-138-0/+349
| | | | Update #2795.
* posix: shared memory supportGedare Bloom2017-01-131-0/+17
| | | | | | | | | Add POSIX shared memory manager (Shm). Includes a hook-based approach for the backing memory storage that defaults to the Workspace, and a test is provided using the heap. A test is also provided for the basic use of mmap'ing a shared memory object. This test currently fails at the mmap stage due to no support for mmap.
* configure: Remove HAVE_STRUCT__THREAD_QUEUE_QUEUESebastian Huber2017-01-132-5/+0
|
* configure: Remove HAVE_THREADS_H supportSebastian Huber2017-01-132-5/+0
|
* Add rtems_assoc_32_to_string()Sebastian Huber2017-01-121-0/+61
|
* Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill2017-01-116-28/+0
|
* Add INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILEDSebastian Huber2016-12-122-3/+3
| | | | Update #2825.
* Add INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILEDSebastian Huber2016-12-122-3/+3
| | | | Update #2825.
* Add INTERNAL_ERROR_LIBIO_SEM_CREATE_FAILEDSebastian Huber2016-12-121-1/+1
| | | | Update #2825.
* INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILEDSebastian Huber2016-12-122-3/+3
| | | | Update #2825.
* Add INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILEDSebastian Huber2016-12-121-1/+1
| | | | Update #2825.
* Add INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILEDSebastian Huber2016-12-122-3/+3
| | | | Update #2825.
* Rename is_internal to always_set_to_falseSebastian Huber2016-12-1210-22/+26
| | | | Update #2825.
* score: Remove fatal is internal indicatorSebastian Huber2016-12-0928-47/+9
| | | | | | | | | 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.
* sptimecounter02: Add plot scriptSebastian Huber2016-12-081-0/+42
|
* sptimecounter02: Update screen fileSebastian Huber2016-12-081-32/+986
| | | | Data obtained on QorIQ T4240 running with 1500MHz.
* score: Simplify linker set APISebastian Huber2016-12-061-20/+104
| | | | | | | | | | | | | | | | | Resurrect RTEMS_LINKER_SET_BEGIN() and RTEMS_LINKER_SET_END(). Add new macros RTEMS_LINKER_SET_ITEM_COUNT(), RTEMS_LINKER_SET_IS_EMPTY(), and RTEMS_LINKER_SET_FOREACH(). Remove confusing RTEMS_LINKER_SET_ASSIGN_BEGIN() and RTEMS_LINKER_SET_ASSIGN_END(). Fix RTEMS_LINKER_SET_SIZE() to return the size in characters as specified by the documentation. Update #2408. Update #2790.
* score: Initialize thread queue context earlySebastian Huber2016-12-021-0/+1
| | | | | | | | Initialize thread queue context early preferably outside the critical section. Remove implicit _Thread_queue_Context_initialize() from _Thread_Wait_acquire().
* score: Uncomment unused internal error codesSebastian Huber2016-11-231-2/+4
| | | | Update #2825.
* posix: Add self-contained pthread spinlockSebastian Huber2016-11-231-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Turn pthread_spinlock_t into a self-contained object. On uni-processor configurations, interrupts are disabled in the lock/trylock operations and the previous interrupt status is restored in the corresponding unlock operations. On SMP configurations, a ticket lock is a acquired and released in addition. The self-contained pthread_spinlock_t object is defined by Newlib in <sys/_pthreadtypes.h>. typedef struct { struct _Ticket_lock_Control _lock; __uint32_t _interrupt_state; } pthread_spinlock_t; This implementation is simple and efficient. However, this test case of the Linux Test Project would fail due to call of printf() and sleep() during spin lock ownership: https://github.com/linux-test-project/ltp/blob/master/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/1-2.c There is only limited support for profiling on SMP configurations. Delete CORE spinlock implementation. Update #2674.
* score: Add thread queue enqueue calloutSebastian Huber2016-11-231-1/+1
| | | | | | | Replace the expected thread dispatch disable level with a thread queue enqueue callout. This enables the use of _Thread_Dispatch_direct() in the thread queue enqueue procedure. This avoids impossible exection paths, e.g. Per_CPU_Control::dispatch_necessary is always true.
* score: Robust thread dispatchSebastian Huber2016-11-231-1/+1
| | | | | | | | | | | | On SMP configurations, it is a fatal error to call blocking operating system with interrupts disabled, since this prevents delivery of inter-processor interrupts. This could lead to executing threads which are not allowed to execute resulting in undefined behaviour. The ARM Cortex-M port has a similar problem, since the interrupt state is not a part of the thread context. Update #2811.
* score: Add _ISR_Is_enabled()Sebastian Huber2016-11-181-0/+2
| | | | | | | In contrast to _ISR_Get_level() the _ISR_Is_enabled() function evaluates a level parameter and returns a boolean value. Update #2811.
* score: Add and use _Thread_Dispatch_direct()Sebastian Huber2016-11-187-1/+80
| | | | | | | | | | This function is useful for operations which synchronously block, e.g. self restart, self deletion, yield, sleep. It helps to detect if these operations are called in the wrong context. Since the thread dispatch necessary indicator is not used, this is more robust in some SMP situations. Update #2751.
* sptests/sp37: Better cope with internal paddingSebastian Huber2016-11-181-25/+40
|