diff --git a/testsuites/psxtests/psx03/psx03.doc b/testsuites/psxtests/psx03/psx03.doc index b23b1855c7..b2af93e945 100644 --- a/testsuites/psxtests/psx03/psx03.doc +++ b/testsuites/psxtests/psx03/psx03.doc @@ -1,29 +1,29 @@ # SPDX-License-Identifier: BSD-2-Clause -# /testsuites/psxtests/psx03/psx03.scn -# -# Copyright (c) 2013 Rishi Sharma . -# -# The license and distribution terms for this file may be -# found in the file LICENSE in this distribution or at -# http://www.rtems.org/license/LICENSE. -# -This file describes the directives and concepts tested by this test set. - -test set name: psx03 - -directives: -+ pthread_kill - -concepts: -+ The SIGUSR2 is useful for simple interprocess communication. -+ SIGUSR2 is blocked -+ waiting for a signal for 3 seconds -+ pthread_kill is used send a signal to a thread -+ Task 1: The pthread_kill() function sends the signal SIGUSR2 to Init -+ correctly times out waiting for signal and block -+ receives pthread_kill signal -+ pthread_kill sends the signal SIGUSR1 to Init -+ SIGUSR1 is assigned a signal 16 -+ SIGUSR2 is unblocked -+ SIGUSR2 is received and assigned a signal 17 +# /testsuites/psxtests/psx03/psx03.scn +# +# Copyright (c) 2013 Rishi Sharma . +# +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.org/license/LICENSE. +# +This file describes the directives and concepts tested by this test set. + +test set name: psx03 + +directives: ++ pthread_kill + +concepts: ++ The SIGUSR2 is useful for simple interprocess communication. ++ SIGUSR2 is blocked ++ waiting for a signal for 3 seconds ++ pthread_kill is used send a signal to a thread ++ Task 1: The pthread_kill() function sends the signal SIGUSR2 to Init ++ correctly times out waiting for signal and block ++ receives pthread_kill signal ++ pthread_kill sends the signal SIGUSR1 to Init ++ SIGUSR1 is assigned a signal 16 ++ SIGUSR2 is unblocked ++ SIGUSR2 is received and assigned a signal 17 diff --git a/testsuites/psxtests/psx06/psx06.doc b/testsuites/psxtests/psx06/psx06.doc index f3e6ec1644..5d3426a717 100644 --- a/testsuites/psxtests/psx06/psx06.doc +++ b/testsuites/psxtests/psx06/psx06.doc @@ -1,36 +1,36 @@ # SPDX-License-Identifier: BSD-2-Clause -# testsuites/psxtests/psx06/psx06.doc -# COPYRIGHT (c) 1989-2009. -# On-Line Applications Research Corporation (OAR). -# Copyright (c) 2013 Steven Kou -# -# The license and distribution terms for this file may be -# found in the file LICENSE in this distribution or at -# http://www.rtems.org/license/LICENSE. -# -This file describes the directives and concepts tested by this test set. - -test set name: psx06 - -directives: -+ pthread_key_create -+ pthread_setspecific -+ pthread_getspecific -+ pthread_key_delete - -concepts: -+ gets the ID of the current thread -+ creates 2 more threads for the 2 tasks -+ creates a key -+ attempts to create another key -+ attempts to set and get a value for the key -+ attempts to delete the key -+ sets the value of the key to 0 -+ verifies the correct value is set -+ task 1 sets the key value to 1 and verifies it before exiting -+ destructor was invoked 4 times by this stage -+ task 2 sets the key value to 2 and verifies before exiting -+ deletes the key -+ destructor was invoked 5 times in total - +# testsuites/psxtests/psx06/psx06.doc +# COPYRIGHT (c) 1989-2009. +# On-Line Applications Research Corporation (OAR). +# Copyright (c) 2013 Steven Kou +# +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.org/license/LICENSE. +# +This file describes the directives and concepts tested by this test set. + +test set name: psx06 + +directives: ++ pthread_key_create ++ pthread_setspecific ++ pthread_getspecific ++ pthread_key_delete + +concepts: ++ gets the ID of the current thread ++ creates 2 more threads for the 2 tasks ++ creates a key ++ attempts to create another key ++ attempts to set and get a value for the key ++ attempts to delete the key ++ sets the value of the key to 0 ++ verifies the correct value is set ++ task 1 sets the key value to 1 and verifies it before exiting ++ destructor was invoked 4 times by this stage ++ task 2 sets the key value to 2 and verifies before exiting ++ deletes the key ++ destructor was invoked 5 times in total + diff --git a/testsuites/psxtests/psx08/psx08.doc b/testsuites/psxtests/psx08/psx08.doc index 121ea1bfa1..489f614c70 100644 --- a/testsuites/psxtests/psx08/psx08.doc +++ b/testsuites/psxtests/psx08/psx08.doc @@ -1,30 +1,30 @@ # SPDX-License-Identifier: BSD-2-Clause -# testsuites/psxtests/psx08/psx08.doc -# COPYRIGHT (c) 1989-2009. -# On-Line Applications Research Corporation (OAR). -# Copyright (c) 2013 Steven Kou -# -# The license and distribution terms for this file may be -# found in the file LICENSE in this distribution or at -# http://www.rtems.org/license/LICENSE. -# -This file describes the directives and concepts tested by this test set. - -test set name: psx08 - -directives: -+ pthread_detach -+ pthread_join -+ pthread_create - -concepts: - -+ get the thread id -+ detaches self and joins with child for task 1 -+ verify the return value of pthread_join and pointer returned -+ creates 2 pthreads and detaches one of them -+ task 3 joins with task 2 -+ joins both new pthreads to the original thread -+ verify the return value and pointer returned of pthread_join after task 2 exits -+ task 3 exits and returned a value, verifies that the pointer is correct +# testsuites/psxtests/psx08/psx08.doc +# COPYRIGHT (c) 1989-2009. +# On-Line Applications Research Corporation (OAR). +# Copyright (c) 2013 Steven Kou +# +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.org/license/LICENSE. +# +This file describes the directives and concepts tested by this test set. + +test set name: psx08 + +directives: ++ pthread_detach ++ pthread_join ++ pthread_create + +concepts: + ++ get the thread id ++ detaches self and joins with child for task 1 ++ verify the return value of pthread_join and pointer returned ++ creates 2 pthreads and detaches one of them ++ task 3 joins with task 2 ++ joins both new pthreads to the original thread ++ verify the return value and pointer returned of pthread_join after task 2 exits ++ task 3 exits and returned a value, verifies that the pointer is correct diff --git a/testsuites/psxtests/psx09/psx09.doc b/testsuites/psxtests/psx09/psx09.doc index 1d20c18694..c0ae669b13 100644 --- a/testsuites/psxtests/psx09/psx09.doc +++ b/testsuites/psxtests/psx09/psx09.doc @@ -1,28 +1,28 @@ # SPDX-License-Identifier: BSD-2-Clause -# testsuites/psxtests/psx08/psx08.doc -# COPYRIGHT (c) 1989-2009. -# On-Line Applications Research Corporation (OAR). -# Copyright (c) 2013 Steven Kou -# -# The license and distribution terms for this file may be -# found in the file LICENSE in this distribution or at -# http://www.rtems.org/license/LICENSE. -# -This file describes the directives and concepts tested by this test set. - -test set name: psx09 - -directives: -+ pthread_getschedparam -+ pthread_setschedparam -+ pthread_mutex_lock - -concepts: -+ get the priority of the current thread -+ adjusts the priority of the thread 5 times between high and medium priority -+ creates a mutex with priority ceiling and locks it to the thread -+ thread priority no longer gets adjusted after obtaining mutex -+ thread priority gets locked at the ceiling level -+ unlocks mutex and thread priority is set to low priority successfully -+ lock returns proper status if deleted during lock operation +# testsuites/psxtests/psx08/psx08.doc +# COPYRIGHT (c) 1989-2009. +# On-Line Applications Research Corporation (OAR). +# Copyright (c) 2013 Steven Kou +# +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.org/license/LICENSE. +# +This file describes the directives and concepts tested by this test set. + +test set name: psx09 + +directives: ++ pthread_getschedparam ++ pthread_setschedparam ++ pthread_mutex_lock + +concepts: ++ get the priority of the current thread ++ adjusts the priority of the thread 5 times between high and medium priority ++ creates a mutex with priority ceiling and locks it to the thread ++ thread priority no longer gets adjusted after obtaining mutex ++ thread priority gets locked at the ceiling level ++ unlocks mutex and thread priority is set to low priority successfully ++ lock returns proper status if deleted during lock operation diff --git a/testsuites/psxtests/psxcleanup/psxcleanup.doc b/testsuites/psxtests/psxcleanup/psxcleanup.doc index c63576f632..55cdf43b6c 100644 --- a/testsuites/psxtests/psxcleanup/psxcleanup.doc +++ b/testsuites/psxtests/psxcleanup/psxcleanup.doc @@ -1,20 +1,20 @@ # SPDX-License-Identifier: BSD-2-Clause -# testsuites/psxtests/psxcleanup/psxcleanup.doc -# Copyright (c) 2013 Anukul Sangwan . -# -# The license and distribution terms for this file may be -# found in the file LICENSE in this distribution or at -# http://www.rtems.org/license/LICENSE. -# -This file describes the directives and concepts tested by this test set. - -test set name: psxcleanup - -directives: -+ read -+ write - -concepts: - -+ Run the test in read mode, and lock in write mode post cleanup. +# testsuites/psxtests/psxcleanup/psxcleanup.doc +# Copyright (c) 2013 Anukul Sangwan . +# +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.org/license/LICENSE. +# +This file describes the directives and concepts tested by this test set. + +test set name: psxcleanup + +directives: ++ read ++ write + +concepts: + ++ Run the test in read mode, and lock in write mode post cleanup. diff --git a/testsuites/psxtests/psxtime/psxtime.doc b/testsuites/psxtests/psxtime/psxtime.doc index 88f416713d..cbf28c2c85 100644 --- a/testsuites/psxtests/psxtime/psxtime.doc +++ b/testsuites/psxtests/psxtime/psxtime.doc @@ -1,26 +1,26 @@ # SPDX-License-Identifier: BSD-2-Clause -# testsuites/psxtests/psxtime/psxtime.doc -# Copyright (c) 2013 Shaily Sangwan . -# -# The license and distribution terms for this file may be -# found in the file LICENSE in this distribution or at -# http://www.rtems.org/license/LICENSE. -# -This file describes the directives and concepts tested by this test set. - -test set name: psxtime - -directives: -+ gettimeofday -+ rtems_clock_set -+ rtems_clock_get_tod -+ time -+ localtime -+ gmtime - - - -concepts: - -+ Tests the getting and setting of POSIX timing routines, runs the directives on various time instances and adjusts the time delay +# testsuites/psxtests/psxtime/psxtime.doc +# Copyright (c) 2013 Shaily Sangwan . +# +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.org/license/LICENSE. +# +This file describes the directives and concepts tested by this test set. + +test set name: psxtime + +directives: ++ gettimeofday ++ rtems_clock_set ++ rtems_clock_get_tod ++ time ++ localtime ++ gmtime + + + +concepts: + ++ Tests the getting and setting of POSIX timing routines, runs the directives on various time instances and adjusts the time delay