summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211420-1420/+1420
|
* fstests/fsrename: Fix stack corruptionSebastian Huber2014-03-202-30/+56
| | | | Use snprintf() instead of sprintf(). Include missing header files.
* cpukit/shell: Replace task variables with posix keys.Christian Mauderer2014-03-202-2/+6
| | | | | | | | | | | | Use posix keys for current shell environment instead of task variables. With this patch the shell needs one posix-key and one posix-key-value-pair configured. Update documentation for the shell. Adapt samples/fileio: - Add necessary objects. - Add login function and custom device name for better testing of the shell.
* tests/libtests: Use <rtems/test.h>Sebastian Huber2014-03-2082-146/+449
|
* tests/fstests: Remove duplicate begin/end messagesSebastian Huber2014-03-2012-31/+7
| | | | Fix file system names. Remove superfluous defines.
* psxonce01: Add call counter to check if init function has been called.Christian Mauderer2014-03-191-13/+14
|
* psxtests: move pthread_once tests into an extra test.Christian Mauderer2014-03-1911-44/+152
|
* posix: Use interal mutex for once implementationSebastian Huber2014-03-191-2/+1
| | | | | | Enable pthread_once() for all configurations. The pthread_once() function is one means to initialize POSIX keys. Another use case is the C++ support.
* smptests/smpload01: Use test extensionSebastian Huber2014-03-171-0/+2
|
* New fstest to check rename POSIX conformanceAndre Marques2014-03-176-0/+1546
| | | | | | | | | | | | | | | | | | | | | | | This patch is a newer version of the test presented on http://www.rtems.org/pipermail/rtems-devel/2014-February/005318.html Unchecked error cases: - EIO (physical error) - ENOSPC (no space left in the new filepath) - EROFS (already covered on testsuites/fstests/fsrofs01) Untested functionality: - File system lock during rename() operation - If after rename() the link count of a file becomes 0 it should be removed and the space ocupied by the file shall be freed and no longer accessible (the function statvfs() gives "not implemented" on the imfs file system, so this is postponed for now)
* tests/fstests: Use <rtems/test.h>Sebastian Huber2014-03-1725-31/+99
|
* tests/smptests: Use <rtems/test.h>Sebastian Huber2014-03-1727-83/+152
|
* tests/samples: Use <rtems/test.h>Sebastian Huber2014-03-1726-25/+95
|
* sapi: Add <rtems/test.h>Sebastian Huber2014-03-172-0/+17
| | | | | | Provide support functions to print the begin/end of test message. Provide a test fatal extension to print out profiling reports in the future.
* smptests/smpload01: New testSebastian Huber2014-03-146-0/+344
|
* score: Add SMP lock profiling supportSebastian Huber2014-03-146-13/+101
|
* sapi: Add per-CPU profiling application level dataSebastian Huber2014-03-141-1/+9
|
* sapi: Add profiling application level supportSebastian Huber2014-03-146-0/+100
|
* psxtests/psxkey07: Do not allocate task IDsSebastian Huber2014-03-121-5/+4
|
* psxtests/psxkey07: Limit workspace sizeSebastian Huber2014-03-121-0/+8
| | | | This avoids large test execution times on targets with a big RAM.
* psxtests/psxkey07: Account for RTEMS_TOO_MANYSebastian Huber2014-03-121-2/+3
|
* psxtests/psxkey08: Limit workspace sizeSebastian Huber2014-03-121-3/+9
| | | | This avoids large test execution times on targets with a big RAM.
* psxtests/psxkey08: Do not allocate task IDsSebastian Huber2014-03-121-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | We have a unified work area. So depending on the memory layout the task_id_p = malloc( sizeof( rtems_id ) ); rtems_test_assert( task_id_p ); or the sc = rtems_task_create( rtems_build_name('T','A',created_task_count, ' '), 1, RTEMS_MINIMUM_STACK_SIZE, RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_ATTRIBUTES, task_id_p ); rtems_test_assert( (sc == RTEMS_UNSATISFIED) || (sc == RTEMS_TOO_MANY) || (sc == RTEMS_SUCCESSFUL) ); may fail. If we are unlucky then we hit the first case and the test fails.
* score: Add function to destroy SMP locksSebastian Huber2014-03-115-3/+23
|
* score: Add local context to SMP lock APISebastian Huber2014-03-115-49/+58
| | | | | | | | | | | Add a local context structure to the SMP lock API for acquire and release pairs. This context can be used to store the ISR level and profiling information. It may be later used to enable more sophisticated lock algorithms, e.g. MCS locks. There is only one lock that cannot be used with a local context. This is the per-CPU lock since here we would have to transfer the local context through a context switch which is very complicated.
* sapi: Use one SMP lock for all chainsSebastian Huber2014-03-112-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This partially reverts commit 1215fd4d9426a59d568560e9a485628560363133. In order to support profiling of SMP locks and provide a future compatible SMP locks API it is necessary to add an SMP lock destroy function. Since the commit above adds an SMP lock to each chain control we would have to add a rtems_chain_destroy() function as well. This complicates the chain usage dramatically. Thus revert the patch above. A global SMP lock for all chains is used to implement the protected chain operations. Advantages: * The SAPI chain API is now identical on SMP and non-SMP configurations. * The size of the chain control is reduced and is then equal to the Score chains. * The protected chain operations work correctly on SMP. Disadvantage: * Applications using many different chains and the protected operations may notice lock contention. The chain control size drop is a huge benefit (SAPI chain controls are 66% larger than the Score chain controls). The only disadvantage is not really a problem since these applications can use specific interrupt locks and unprotected chain operations to avoid this issue.
* printk: Add support for long longSebastian Huber2014-03-112-0/+49
|
* smptests/smppsxaffinity02: Fix end of test messageSebastian Huber2014-03-101-1/+1
|
* POSIX keys now enabled in all configurations.Joel Sherrill2014-03-0723-355/+378
| | | | | | | Formerly POSIX keys were only enabled when POSIX threads were enabled. Because they are a truly safe alternative to per-task variables in an SMP system, they are being enabled in all configurations.
* Remove trailing whitespace in previous patchesJennifer Averett2014-03-0710-61/+61
|
* smptests: Add smppsxaffinity02.Jennifer Averett2014-03-076-0/+304
| | | | | | | | This method exercises the ability to dynamically get and set the affinity of POSIX threads. NOTE: There is no scheduler support for affinity. This is simply a data integrity test.
* smptests: Add smppsxaffinity01.Jennifer Averett2014-03-076-0/+232
| | | | | This test exercises the ability to obtain and modify the affinity field of the POSIX thread attributes.
* smptests: Add smpaffinity01Jennifer Averett2014-03-076-0/+307
| | | | This test exercises the new Classic API task affinity methods.
* psxtests: Added test for pthread_getattr_np().Jennifer Averett2014-03-076-1/+261
|
* spcpuset01: Add check for sys/cpuset.h.Jennifer Averett2014-03-073-10/+29
| | | | | If <sys/cpuset.h> is not provided by the toolset, the test cannot be compiled.
* smptests: Delete config.h.inSebastian Huber2014-03-061-19/+0
|
* score: Delete _Thread_Dispatch_set_disable_level()Sebastian Huber2014-03-063-10/+5
| | | | | This function was only used in some tests and can be replaced with other functions.
* tmtests/tm26: Fix deadlock for SMP configurationsSebastian Huber2014-03-061-1/+2
| | | | | Some _Context_Switch() invocations end up in _Thread_Handler(). Create the right context for this function.
* score: Add _Atomic_Fence()Sebastian Huber2014-03-062-19/+70
|
* libnetworking: TypoSebastian Huber2014-03-061-1/+21
|
* score: Add and use _Giant_Drop()Sebastian Huber2014-03-066-0/+177
| | | | New test smptests/smpfatal03.
* score: SMP initialization and shutdown changesSebastian Huber2014-03-0610-0/+335
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename _SMP_Request_other_cores_to_perform_first_context_switch() into _SMP_Request_start_multitasking() since this requests now a multitasking start on all configured and available processors. The name corresponds _Thread_Start_multitasking() and _SMP_Start_multitasking_on_secondary_processor() actions issued in response to this request. Move in source file to right place. Rename PER_CPU_STATE_READY_TO_BEGIN_MULTITASKING into PER_CPU_STATE_READY_TO_START_MULTITASKING. Rename PER_CPU_STATE_BEGIN_MULTITASKING into PER_CPU_STATE_REQUEST_START_MULTITASKING. Rename _SMP_Request_other_cores_to_shutdown() into _SMP_Request_shutdown(). Add a per-CPU state lock to protect all changes. This was necessary to offer a controlled shutdown of the system (atomic read/writes alone are not sufficient for this kind of synchronization). Add documentation for Per_CPU_State. Delete debug output. New tests smptests/smpfatal01 and smptests/smpfatal02.
* tmtests/tmcontext01: New testSebastian Huber2014-02-287-0/+598
|
* rtems: Add cache size functionsSebastian Huber2014-02-282-4/+40
| | | | | Add rtems_cache_get_data_cache_size() and rtems_cache_get_instruction_cache_size().
* rtems: Use size_t for cache line sizeSebastian Huber2014-02-281-2/+2
| | | | A cache line cannot have a negative size.
* sptests/spcache01: Detect write-through cacheSebastian Huber2014-02-282-3/+15
|
* sptests/spcache01: New testSebastian Huber2014-02-246-0/+426
|
* score: Fix thread TLS area initializationSebastian Huber2014-02-248-24/+127
| | | | | Do not use _TLS_Size here since this will lead GCC to assume that this symbol is not 0 and the later > 0 test will be optimized away.
* sptests/spcpucounter01: Adjust testSebastian Huber2014-02-242-9/+29
| | | | | Adjust test to work with clock driver based CPU counters. They have a period equal to the clock tick interval.
* score: _CPU_SMP_Get_current_processor()Sebastian Huber2014-02-212-18/+64
| | | | | | | Remove RTEMS_COMPILER_PURE_ATTRIBUTE from _SMP_Get_current_processor() and all _CPU_SMP_Get_current_processor(). Make inline ASM statements volatile again. Test smptests/smpmigration01 showed that GCC optimizes too much otherwise.