summaryrefslogtreecommitdiffstats
path: root/testsuites (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-26libtest: Report target hashSebastian Huber1-2/+6
Update #4267.
2021-02-26Add system initialization step for target hashSebastian Huber1-0/+16
Update #4267.
2021-02-25score: Add _IO_Base64url()Sebastian Huber1-0/+12
Update #4267.
2021-02-24validation: Simplify message queue construct testsSebastian Huber1-88/+52
2021-02-24validation: Add missing barrier create test caseSebastian Huber1-56/+291
2021-02-20validation: Add signal manager testsSebastian Huber2-0/+2163
Update #4244.
2021-02-20validation: Add Validation1 test suiteSebastian Huber3-5/+78
Update #4244.
2021-02-08validation: Tweak construct error testsSebastian Huber2-216/+216
Unify the state names across tests and make sure the state names have a similar length.
2021-02-08validation: Tests for barrier managerSebastian Huber4-0/+2525
2021-02-08validation: Add tests for rtems_build_name()Sebastian Huber1-0/+155
2021-02-03rtems: Rework object services APISebastian Huber1-8/+0
Add a "Constraints" paragraph to the documentation. Provide prototypes for programming language bindings. Use the macro implementation to implement the corresponding functions. Update #3993.
2021-01-25Improve file header comment in generated filesSebastian Huber5-15/+35
2021-01-23splinkersets01: Fix declarationSebastian Huber1-2/+2
GCC 11 produced warnings like this: items.c:21:1: warning: ignoring attribute 'section (".rtemsrwset.test_rw.content.0.1")' because it conflicts with previous 'section (".rtemsrwset.test_rw.content.1")' [-Wattributes] items.c:23:1: warning: ignoring attribute 'section (".rtemsroset.test_ro.content.0.OC")' because it conflicts with previous 'section (".rtemsroset.test_ro.content.1")' [-Wattributes]
2021-01-21mrsp: Change error status for a nested seizeSebastian Huber1-1/+1
Return STATUS_DEADLOCK (RTEMS_INCORRECT_STATE) to indicate a nested seize since this is a kind of deadlock. This status code is also used for other deadlocks. Update #4217.
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-12-09smptests/smpipi01: Fix sporadic test failureSebastian Huber1-0/+7
2020-12-03samples/unlimited: Prevent compile errorKinsey Moore1-1/+0
For architectures with relatively large minimum stack sizes, this test breaks during compilation due to a static check. The init task stack size should not need to be set for this test.
2020-12-03score: Return a status in _Objects_Set_name()Sebastian Huber1-3/+3
2020-12-02rtems: Add <rtems/rtems/clockimpl.h>Sebastian Huber1-0/+1
2020-11-26Use CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZESebastian Huber1-69/+40
Update #4181.
2020-11-26config: CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZESebastian Huber4-1/+72
In order to better support applications which use the new rtems_task_construct() directive add the CONFIGURE_INIT_TASK_CONSTURCT_STORAGE_SIZE configuration option. If this option is specified, then the Classic API initialization task is constructed with rtems_task_construct(). Update #4181.
2020-11-26Avoid INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULLSebastian Huber5-61/+0
Replace a runtime check with a compile time assertion. This makes the INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL obsolete. Update #4181.
2020-11-24rtems: Improve rtems_interrupt_server_create()Sebastian Huber1-2/+63
Also start interrupt server tasks on processors which do not have a scheduler. Applications may dynamically manage processors using rtems_scheduler_remove_processor() and rtems_scheduler_add_processor().
2020-11-19config: Simplify task stack allocator initSebastian Huber7-75/+26
Replace runtime checks with compile time assertions. This makes the INTERNAL_ERROR_BAD_STACK_HOOK obsolete.
2020-11-19validation/ts-performance-0: Add partition testsSebastian Huber1-0/+437
2020-11-19validation/ts-performance-0: Add test suiteSebastian Huber3-154/+312
Share a default test suite with ts-validation-0.
2020-11-19libtest: Make test case allocator configurableSebastian Huber1-0/+3
2020-11-12Improve automatically generated warningSebastian Huber3-15/+12
2020-11-10smpmulticast01: Fix NULL pointer accessSebastian Huber1-1/+1
2020-10-15fsdosfsname01: Fix string truncation warningFrank Kühndel1-6/+7
This patch fixes a compiler warning: ../../../testsuites/fstests/fsdosfsname01/init.c:430:19: warning: '%s' directive output may be truncated writing up to 6424 bytes into a region of size 257 [-Wformat-truncation=] The buffer 'dirname' is exactly large enough so that no truncation can ever occur. Using the return value of snprintf() is an official supported way to suppress the warning. I considered the comment of Joel Sherrill about not replacing snprintf(): https://lists.rtems.org/pipermail/devel/2020-September/062113.html
2020-10-12testsuites/samples/fileio - Increase of stack sizeFrank Kühndel1-1/+1
When I use the 'shell' from the fileio sample with the command below: env QEMU_AUDIO_DRV="none" \ qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9 \ -m 256M \ -kernel build/arm/realview_pbx_a9_qemu/testsuites/samples/fileio.exe The executable crashes with an "BLOWN STACK!!!" as soon as I try to login as 'root' with password. (The logins without password work fine.) Increasing the stack size of the affected thread a bit solves the issue. Hence, I suggest this patch. My config.ini was [arm/realview_pbx_a9_qemu] RTEMS_DEBUG = True RTEMS_NETWORKING = True RTEMS_POSIX_API = True RTEMS_SMP = True BUILD_TESTS = True RTEMS origin.master at a479686c112144119866391ceb21c48be6a3eca9 Close #4143
2020-10-12psxndbm01 - Fixing string truncation warningFrank Kühndel1-8/+3
This fixes the following compiler warning: testsuites/psxtests/psxndbm01/init.c:221:3: warning: 'strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length 221 | strncpy( test_strings, "Hello", 5 ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In addition, the comments from Sebastian Huber on an old version of such a patch have been taken into account: 1) The use of `sizeof()` in `key.dsize = sizeof( test_strings );` is wrong. 2) There is no need to allocate the string. One can simply use a string constant. (See https://lists.rtems.org/pipermail/devel/2020-August/061418.html)
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-08validation: Improve file header commentSebastian Huber3-15/+29
2020-10-08cpukit/librcxx: Add a C++ thread interface with attributesChris Johns4-0/+228
2020-10-07rtems: Add RTEMS_PARTITION_ALIGNMENTSebastian Huber2-9/+10
Update #4105.
2020-10-05spmsgq_err01: Use correct max values and fix 64bitKinsey Moore1-3/+3
Fix spmsgq_err01 on systems with 64-bit pointers and correct max value mismatches and inaccuracies that are more noticable on 64-bit systems.
2020-10-01rtems: Canonicalize name and id checksSebastian Huber2-168/+168
Check the name followed by the id check in all create directives. Compare pointers against NULL. Fix formatting.
2020-10-01tests: Add and use <rtems/testopts.h>Sebastian Huber2-2/+4
Add the build option RTEMS_TEST_VERBOSITY to control the verbosity of test suites using the RTEMS Test Framework.
2020-09-30libtests/sha: Fix test if -O0 is usedSebastian Huber1-0/+11
2020-09-28validation: Test rtems_message_queue_construct()Sebastian Huber1-0/+1868
Update #4007.
2020-09-28rtems: Add rtems_message_queue_construct()Sebastian Huber5-17/+65
In contrast to message queues created by rtems_message_queue_create(), the message queues constructed by this directive use a user-provided message buffer storage area. Add RTEMS_MESSAGE_QUEUE_BUFFER() to define a message buffer type for message buffer storage areas. Update #4007.
2020-09-28score: Simplify CORE_message_queue_BufferSebastian Huber1-2/+1
Merge CORE_message_queue_Buffer structure into CORE_message_queue_Buffer_control. Use a zero-length array for the actual message buffer. This reduces the structure size on all targets. Update #4007.
2020-09-28score: Improve _CORE_message_queue_Initialize()Sebastian Huber2-6/+7
Return a status code and differentiate between error conditions. Update #4007.
2020-09-17validation: rtems_task_construct() errorsSebastian Huber1-0/+2367
This is the first test case generated from a specification item in the rtems-central repository. Update #3959.
2020-09-17validation: Add general purpose test suiteSebastian Huber1-0/+222
Add a general purpose test suite for validation tests. This is the first test suite generated from a specification item in the rtems-central repository. Update #3959.
2020-09-17rtems: Add rtems_task_construct()Sebastian Huber3-10/+18
In contrast to rtems_task_create() this function constructs a task with a user-provided task storage area. The new directive uses a configuration structure instead of individual parameters. Add RTEMS_TASK_STORAGE_SIZE() to calculate the recommended size of a task storage area based on the task attributes and the size dedicated to the task stack and thread-local storage. This macro may allow future extensions without breaking the API. Add application configuration option CONFIGURE_MINIMUM_TASKS_WITH_USER_PROVIDED_STORAGE to adjust RTEMS Workspace size estimate. Update #3959.
2020-09-17CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZESebastian Huber4-2/+84
Add this application configuration option. This configuration option can be used to reserve space for the dynamic linking of modules with thread-local storage objects. Add RTEMS_TASK_STORAGE_ALIGNMENT to define the minium alignment of a thread-local storage size. Update #4074.
2020-09-14irqs01/smpirqs01: New testsSebastian Huber4-0/+525
Close #4034.