summaryrefslogtreecommitdiffstats
path: root/testsuites/mptests/mp09
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-11-10 18:22:03 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-11-10 18:22:03 +0000
commit945f59015ab0e0932fe725c010da88d10724d33e (patch)
tree4e944e9ca3ca5032ce5ea991d449b7e248a56fb7 /testsuites/mptests/mp09
parentRemoved (Renamed to *-node<N>.*). (diff)
downloadrtems-945f59015ab0e0932fe725c010da88d10724d33e.tar.bz2
New.
Diffstat (limited to 'testsuites/mptests/mp09')
-rw-r--r--testsuites/mptests/mp09/node1/mp09-node1.doc49
-rw-r--r--testsuites/mptests/mp09/node1/mp09-node1.scn22
-rw-r--r--testsuites/mptests/mp09/node2/mp09-node2.doc12
-rw-r--r--testsuites/mptests/mp09/node2/mp09-node2.scn27
4 files changed, 110 insertions, 0 deletions
diff --git a/testsuites/mptests/mp09/node1/mp09-node1.doc b/testsuites/mptests/mp09/node1/mp09-node1.doc
new file mode 100644
index 0000000000..1c8a7be71d
--- /dev/null
+++ b/testsuites/mptests/mp09/node1/mp09-node1.doc
@@ -0,0 +1,49 @@
+#
+# $Id$
+#
+# COPYRIGHT (c) 1989-1999.
+# On-Line Applications Research Corporation (OAR).
+#
+# The license and distribution terms for this file may be
+# found in the file LICENSE in this distribution or at
+# http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name: test58
+
+GLOBAL MESSAGE QUEUE TEST
+
+directives:
+ ex_init, ex_start, t_create, t_start, tm_tick, i_return,
+ tm_wkafter, q_create, q_send, q_broadcast, q_urgent, q_receive,
+ q_delete
+
+concepts:
+
+ a. Verifies system can create and start both the executive's system
+ initialization and idle task.
+
+ b. Verifies executive can swap between three application tasks at the
+ same priority and the executive's internal idle task.
+
+ c. Verifies can print strings to the CRT on port 2 of the mvme136 board
+ using Print and Println in the board support package.
+
+ d. Verifies interrupt handler can handler a task switch from an interrupt
+ as specified with the i_return directive.
+
+ e. Verifies executive initialization performed correctly.
+
+ f. Verifies the executive trap handler except for the halt function.
+
+ g. Verifies that a task can get the task identification number of itself.
+
+ h. Verifies that a task can delete itself.
+
+ i. Verifies Rpc and Process_pkt for message queue related packets.
+
+ j. Verifies normal and error paths for global message queue handling.
+
+NOTE: The SLAVE must be started first for this test to successfully run.
diff --git a/testsuites/mptests/mp09/node1/mp09-node1.scn b/testsuites/mptests/mp09/node1/mp09-node1.scn
new file mode 100644
index 0000000000..74cf06904d
--- /dev/null
+++ b/testsuites/mptests/mp09/node1/mp09-node1.scn
@@ -0,0 +1,22 @@
+*** TEST 9 -- NODE 1 ***
+Creating Message Queue (Global)
+Creating Test_task (local)
+Starting Test_task (local)
+Deleting initialization task
+Getting QID of message queue
+Receiving message ...
+Received : 123456789012345
+Receiving message ...
+Received : abcdefghijklmno
+Receiving message ...
+Received : ABCDEFGHIJKLMNO
+Receiver delaying for a second
+rtems_message_queue_send: 123456789012345
+Delaying for a second
+rtems_message_queue_urgent: abcdefghijklmno
+Delaying for a second
+rtems_message_queue_broadcast: ABCDEFGHIJKLMNO
+Delaying for a second
+Delaying for 5 seconds
+Deleting Message queue
+*** END OF TEST 9 ***
diff --git a/testsuites/mptests/mp09/node2/mp09-node2.doc b/testsuites/mptests/mp09/node2/mp09-node2.doc
new file mode 100644
index 0000000000..5c0baceb8d
--- /dev/null
+++ b/testsuites/mptests/mp09/node2/mp09-node2.doc
@@ -0,0 +1,12 @@
+#
+# $Id$
+#
+# COPYRIGHT (c) 1989-1999.
+# On-Line Applications Research Corporation (OAR).
+#
+# The license and distribution terms for this file may be
+# found in the file LICENSE in this distribution or at
+# http://www.rtems.com/license/LICENSE.
+#
+
+
diff --git a/testsuites/mptests/mp09/node2/mp09-node2.scn b/testsuites/mptests/mp09/node2/mp09-node2.scn
new file mode 100644
index 0000000000..1bd17cecd9
--- /dev/null
+++ b/testsuites/mptests/mp09/node2/mp09-node2.scn
@@ -0,0 +1,27 @@
+*** TEST 9 -- NODE 2 ***
+Creating Test_task (local)
+Starting Test_task (local)
+Deleting initialization task
+Getting QID of message queue
+rtems_message_queue_delete correctly returned RTEMS_ILLEGAL_ON_REMOTE_OBJECT
+rtems_message_queue_send: 123456789012345
+Delaying for a second
+rtems_message_queue_urgent: abcdefghijklmno
+Delaying for a second
+rtems_message_queue_broadcast: ABCDEFGHIJKLMNO
+Delaying for a second
+Receiving message ...
+Received : 123456789012345
+Receiving message ...
+Received : abcdefghijklmno
+Receiving message ...
+Received : ABCDEFGHIJKLMNO
+Receiver delaying for a second
+Flushing remote empty queue
+0 messages were flushed on the remote queue
+Send messages to be flushed from remote queue
+Flushing remote queue
+1 messages were flushed on the remote queue
+Waiting for message queue to be deleted
+Global message queue deleted
+*** END OF TEST 9 ***