diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 01:01:27 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 01:01:27 +0000 |
commit | bab35bd6f7587ae388ee8b63d207a756a7f4bae1 (patch) | |
tree | 6aa8a97640ae0d387c9a52b9031fbab7c2a35035 /c/src/tests/mptests/mp10 | |
parent | 2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-bab35bd6f7587ae388ee8b63d207a756a7f4bae1.tar.bz2 |
2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* mp01/node1/.cvsignore: Remove.
* mp01/node1/Makefile.am: Remove.
* mp01/node1/mp01.doc: Remove.
* mp01/node1/mp01.scn: Remove.
* mp01/.cvsignore: Remove.
* mp01/Makefile.am: Remove.
* mp01/init.c: Remove.
* mp01/system.h: Remove.
* mp01/task1.c: Remove.
* mp01/node2/.cvsignore: Remove.
* mp01/node2/Makefile.am: Remove.
* mp01/node2/mp01.doc: Remove.
* mp01/node2/mp01.scn: Remove.
* mp02/node1/.cvsignore: Remove.
* mp02/node1/Makefile.am: Remove.
* mp02/node1/mp02.doc: Remove.
* mp02/node1/mp02.scn: Remove.
* mp02/.cvsignore: Remove.
* mp02/Makefile.am: Remove.
* mp02/init.c: Remove.
* mp02/system.h: Remove.
* mp02/task1.c: Remove.
* mp02/node2/.cvsignore: Remove.
* mp02/node2/Makefile.am: Remove.
* mp02/node2/mp02.doc: Remove.
* mp02/node2/mp02.scn: Remove.
* .cvsignore: Remove.
* ChangeLog: Remove.
* Makefile.am: Remove.
* README: Remove.
* configure.ac: Remove.
* mptests.am: Remove.
* mp03/node1/.cvsignore: Remove.
* mp03/node1/Makefile.am: Remove.
* mp03/node1/mp03.doc: Remove.
* mp03/node1/mp03.scn: Remove.
* mp03/.cvsignore: Remove.
* mp03/Makefile.am: Remove.
* mp03/delay.c: Remove.
* mp03/init.c: Remove.
* mp03/system.h: Remove.
* mp03/task1.c: Remove.
* mp03/node2/.cvsignore: Remove.
* mp03/node2/Makefile.am: Remove.
* mp03/node2/mp03.doc: Remove.
* mp03/node2/mp03.scn: Remove.
* mp04/node1/.cvsignore: Remove.
* mp04/node1/Makefile.am: Remove.
* mp04/node1/mp04.doc: Remove.
* mp04/node1/mp04.scn: Remove.
* mp04/.cvsignore: Remove.
* mp04/Makefile.am: Remove.
* mp04/init.c: Remove.
* mp04/system.h: Remove.
* mp04/task1.c: Remove.
* mp04/node2/.cvsignore: Remove.
* mp04/node2/Makefile.am: Remove.
* mp04/node2/mp04.doc: Remove.
* mp04/node2/mp04.scn: Remove.
* mp05/node1/.cvsignore: Remove.
* mp05/node1/Makefile.am: Remove.
* mp05/node1/mp05.doc: Remove.
* mp05/node1/mp05.scn: Remove.
* mp05/.cvsignore: Remove.
* mp05/Makefile.am: Remove.
* mp05/asr.c: Remove.
* mp05/init.c: Remove.
* mp05/system.h: Remove.
* mp05/task1.c: Remove.
* mp05/node2/.cvsignore: Remove.
* mp05/node2/Makefile.am: Remove.
* mp05/node2/mp05.doc: Remove.
* mp05/node2/mp05.scn: Remove.
* mp06/node1/.cvsignore: Remove.
* mp06/node1/Makefile.am: Remove.
* mp06/node1/mp06.doc: Remove.
* mp06/node1/mp06.scn: Remove.
* mp06/.cvsignore: Remove.
* mp06/Makefile.am: Remove.
* mp06/init.c: Remove.
* mp06/system.h: Remove.
* mp06/task1.c: Remove.
* mp06/node2/.cvsignore: Remove.
* mp06/node2/Makefile.am: Remove.
* mp06/node2/mp06.doc: Remove.
* mp06/node2/mp06.scn: Remove.
* mp07/node1/.cvsignore: Remove.
* mp07/node1/Makefile.am: Remove.
* mp07/node1/mp07.doc: Remove.
* mp07/node1/mp07.scn: Remove.
* mp07/.cvsignore: Remove.
* mp07/Makefile.am: Remove.
* mp07/init.c: Remove.
* mp07/system.h: Remove.
* mp07/task1.c: Remove.
* mp07/node2/.cvsignore: Remove.
* mp07/node2/Makefile.am: Remove.
* mp07/node2/mp07.doc: Remove.
* mp07/node2/mp07.scn: Remove.
* mp08/node1/.cvsignore: Remove.
* mp08/node1/Makefile.am: Remove.
* mp08/node1/mp08.doc: Remove.
* mp08/node1/mp08.scn: Remove.
* mp08/.cvsignore: Remove.
* mp08/Makefile.am: Remove.
* mp08/init.c: Remove.
* mp08/system.h: Remove.
* mp08/task1.c: Remove.
* mp08/node2/.cvsignore: Remove.
* mp08/node2/Makefile.am: Remove.
* mp08/node2/mp08.doc: Remove.
* mp08/node2/mp08.scn: Remove.
* mp09/node1/.cvsignore: Remove.
* mp09/node1/Makefile.am: Remove.
* mp09/node1/mp09.doc: Remove.
* mp09/node1/mp09.scn: Remove.
* mp09/.cvsignore: Remove.
* mp09/Makefile.am: Remove.
* mp09/init.c: Remove.
* mp09/recvmsg.c: Remove.
* mp09/sendmsg.c: Remove.
* mp09/system.h: Remove.
* mp09/task1.c: Remove.
* mp09/node2/.cvsignore: Remove.
* mp09/node2/Makefile.am: Remove.
* mp09/node2/mp09.doc: Remove.
* mp09/node2/mp09.scn: Remove.
* mp10/node1/.cvsignore: Remove.
* mp10/node1/Makefile.am: Remove.
* mp10/node1/mp10.doc: Remove.
* mp10/node1/mp10.scn: Remove.
* mp10/.cvsignore: Remove.
* mp10/Makefile.am: Remove.
* mp10/init.c: Remove.
* mp10/system.h: Remove.
* mp10/task1.c: Remove.
* mp10/task2.c: Remove.
* mp10/task3.c: Remove.
* mp10/node2/.cvsignore: Remove.
* mp10/node2/Makefile.am: Remove.
* mp10/node2/mp10.doc: Remove.
* mp10/node2/mp10.scn: Remove.
* mp11/node1/.cvsignore: Remove.
* mp11/node1/Makefile.am: Remove.
* mp11/node1/mp11.doc: Remove.
* mp11/node1/mp11.scn: Remove.
* mp11/.cvsignore: Remove.
* mp11/Makefile.am: Remove.
* mp11/init.c: Remove.
* mp11/system.h: Remove.
* mp11/node2/.cvsignore: Remove.
* mp11/node2/Makefile.am: Remove.
* mp11/node2/mp11.doc: Remove.
* mp11/node2/mp11.scn: Remove.
* mp12/node1/.cvsignore: Remove.
* mp12/node1/Makefile.am: Remove.
* mp12/node1/mp12.doc: Remove.
* mp12/node1/mp12.scn: Remove.
* mp12/.cvsignore: Remove.
* mp12/Makefile.am: Remove.
* mp12/init.c: Remove.
* mp12/system.h: Remove.
* mp12/node2/.cvsignore: Remove.
* mp12/node2/Makefile.am: Remove.
* mp12/node2/mp12.doc: Remove.
* mp12/node2/mp12.scn: Remove.
* mp13/node1/.cvsignore: Remove.
* mp13/node1/Makefile.am: Remove.
* mp13/node1/mp13.doc: Remove.
* mp13/node1/mp13.scn: Remove.
* mp13/.cvsignore: Remove.
* mp13/Makefile.am: Remove.
* mp13/init.c: Remove.
* mp13/system.h: Remove.
* mp13/task1.c: Remove.
* mp13/task2.c: Remove.
* mp13/node2/.cvsignore: Remove.
* mp13/node2/Makefile.am: Remove.
* mp13/node2/mp13.doc: Remove.
* mp13/node2/mp13.scn: Remove.
* mp14/node1/.cvsignore: Remove.
* mp14/node1/Makefile.am: Remove.
* mp14/node1/mp14.doc: Remove.
* mp14/node1/mp14.scn: Remove.
* mp14/.cvsignore: Remove.
* mp14/Makefile.am: Remove.
* mp14/delay.c: Remove.
* mp14/evtask1.c: Remove.
* mp14/evtmtask.c: Remove.
* mp14/exit.c: Remove.
* mp14/init.c: Remove.
* mp14/msgtask1.c: Remove.
* mp14/pttask1.c: Remove.
* mp14/smtask1.c: Remove.
* mp14/system.h: Remove.
* mp14/node2/.cvsignore: Remove.
* mp14/node2/Makefile.am: Remove.
* mp14/node2/mp14.doc: Remove.
* mp14/node2/mp14.scn: Remove.
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/mptests/mp10/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/Makefile.am | 11 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/init.c | 142 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/node1/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/node1/Makefile.am | 50 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/node1/mp10.doc | 45 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/node1/mp10.scn | 4 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/node2/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/node2/Makefile.am | 50 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/node2/mp10.doc | 12 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/node2/mp10.scn | 19 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/system.h | 66 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/task1.c | 51 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/task2.c | 46 | ||||
-rw-r--r-- | c/src/tests/mptests/mp10/task3.c | 49 |
15 files changed, 0 insertions, 551 deletions
diff --git a/c/src/tests/mptests/mp10/.cvsignore b/c/src/tests/mptests/mp10/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/mptests/mp10/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/mptests/mp10/Makefile.am b/c/src/tests/mptests/mp10/Makefile.am deleted file mode 100644 index d9a122c73e..0000000000 --- a/c/src/tests/mptests/mp10/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -## -## $Id$ -## - - -SUBDIRS = node1 node2 - -EXTRA_DIST = system.h init.c task1.c task2.c task3.c - -include $(top_srcdir)/../automake/subdirs.am -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/mptests/mp10/init.c b/c/src/tests/mptests/mp10/init.c deleted file mode 100644 index 83e0d053bd..0000000000 --- a/c/src/tests/mptests/mp10/init.c +++ /dev/null @@ -1,142 +0,0 @@ -/* Init - * - * This routine is the initialization routine for this test program. - * Other than creating all objects needed by this test, if this routine - * is running on node one, it acquires a global semaphore to - * force all other tasks to pend. If running on node two, this task - * sleeps for a while, and then deletes two local tasks which are - * waiting on a remote message queue or a semaphore. - * This routine is the initialization task for this test program. - * It is a user initialization task and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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. - * - * $Id$ - */ - -#define TEST_INIT -#include "system.h" - -rtems_task Init( - rtems_task_argument argument -) -{ - rtems_status_code status; - - printf( - "\n\n*** TEST 10 -- NODE %d ***\n", - Multiprocessing_configuration.node - ); - - Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ); - Task_name[ 2 ] = rtems_build_name( 'T', 'A', '2', ' ' ); - Task_name[ 3 ] = rtems_build_name( 'S', 'A', '3', ' ' ); - - Queue_name[ 1 ] = rtems_build_name( 'M', 'S', 'G', ' ' ); - - Semaphore_name[ 1 ] = rtems_build_name( 'S', 'E', 'M', ' ' ); - - if ( Multiprocessing_configuration.node == 1 ) { - puts( "Creating Message Queue (Global)" ); - status = rtems_message_queue_create( - Queue_name[ 1 ], - 3, - 16, - RTEMS_GLOBAL, - &Queue_id[ 1 ] - ); - directive_failed( status, "rtems_message_queue_create" ); - - puts( "Creating Semaphore (Global)" ); - status = rtems_semaphore_create( - Semaphore_name[ 1 ], - 0, - RTEMS_GLOBAL | RTEMS_PRIORITY, - RTEMS_NO_PRIORITY, - &Semaphore_id[ 1 ] - ); - directive_failed( status, "rtems_semaphore_create" ); - - status = rtems_task_wake_after( 10 * TICKS_PER_SECOND ); - directive_failed( status, "rtems_task_wake_after" ); - - } else { - - puts( "Creating Test_task 1 (local)" ); - status = rtems_task_create( - Task_name[ 1 ], - 1, - RTEMS_MINIMUM_STACK_SIZE, - RTEMS_TIMESLICE, - RTEMS_DEFAULT_ATTRIBUTES, - &Task_id[ 1 ] - ); - directive_failed( status, "rtems_task_create" ); - - puts( "Starting Test_task 1 (local)" ); - status = rtems_task_start( Task_id[ 1 ], Test_task1, 0 ); - directive_failed( status, "rtems_task_start" ); - - puts( "Creating Test_task 2 (local)" ); - status = rtems_task_create( - Task_name[ 2 ], - 1, - RTEMS_MINIMUM_STACK_SIZE, - RTEMS_TIMESLICE, - RTEMS_DEFAULT_ATTRIBUTES, - &Task_id[ 2 ] - ); - directive_failed( status, "rtems_task_create" ); - - puts( "Starting Test_task 2 (local)" ); - status = rtems_task_start( Task_id[ 2 ], Test_task2, 0 ); - directive_failed( status, "rtems_task_start" ); - - puts( "Creating Test_task 3 (local)" ); - status = rtems_task_create( - Task_name[ 3 ], - 1, - RTEMS_MINIMUM_STACK_SIZE, - RTEMS_TIMESLICE, - RTEMS_DEFAULT_ATTRIBUTES, - &Task_id[ 3 ] - ); - directive_failed( status, "rtems_task_create" ); - - puts( "Starting Test_task 3 (local)" ); - status = rtems_task_start( Task_id[ 3 ], Test_task2, 0 ); - directive_failed( status, "rtems_task_start" ); - - puts( "Sleeping for 1 seconds ..." ); - status = rtems_task_wake_after( TICKS_PER_SECOND ); - directive_failed( status, "rtems_task_wake_after" ); - - puts( "Deleting Test_task2" ); - status = rtems_task_delete( Task_id[ 2 ] ); - directive_failed( status, "rtems_task_delete of Task 2" ); - - puts( "Deleting Test_task1" ); - status = rtems_task_delete( Task_id[ 1 ] ); - directive_failed( status, "rtems_task_delete of Task 1" ); - - puts( "Restarting Test_task3" ); - status = rtems_task_restart( Task_id[ 3 ], 1 ); - directive_failed( status, "rtems_task_restart of Task 3" ); - - } - puts( "*** END OF TEST 10 ***" ); - rtems_test_exit( 0 ); -} diff --git a/c/src/tests/mptests/mp10/node1/.cvsignore b/c/src/tests/mptests/mp10/node1/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/mptests/mp10/node1/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/mptests/mp10/node1/Makefile.am b/c/src/tests/mptests/mp10/node1/Makefile.am deleted file mode 100644 index 38aa348207..0000000000 --- a/c/src/tests/mptests/mp10/node1/Makefile.am +++ /dev/null @@ -1,50 +0,0 @@ -## -## $Id$ -## - - -VPATH = @srcdir@:@srcdir@/.. - -NODE = 1 -TEST = mp10 -PGM = ${ARCH}/$(TEST)-node$(NODE).exe - -MANAGERS = io mp message semaphore - -C_FILES = init.c task1.c task2.c task3.c -C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT)) - -H_FILES = system.h - -DOCTYPES = doc scn -DOCS = $(DOCTYPES:%=$(TEST).%) - -SRCS = $(DOCS) $(C_FILES) $(H_FILES) -OBJS = $(C_O_FILES) - -PRINT_SRCS = $(DOCS) - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am -include $(top_srcdir)/mptests.am - -AM_CPPFLAGS += -DNODE_NUMBER=$(NODE) -I$(srcdir)/.. - -if HAS_MP - -# -# (OPTIONAL) Add local stuff here using += -# - -${PGM}: $(OBJS) $(LINK_FILES) - $(make-exe) - -all-local: $(ARCH) $(TMPINSTALL_FILES) -else -all-local: -endif - -EXTRA_DIST = $(DOCS) - -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/mptests/mp10/node1/mp10.doc b/c/src/tests/mptests/mp10/node1/mp10.doc deleted file mode 100644 index 482c6a90c3..0000000000 --- a/c/src/tests/mptests/mp10/node1/mp10.doc +++ /dev/null @@ -1,45 +0,0 @@ -# -# $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: test59 - -GLOBAL SEMAPHORE TEST - -directives: - ex_init, ex_start, t_create, t_start, tm_tick, i_return, t_ident, - tm_set, tm_get, tm_wkafter - -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 get the task identification number - of another task. - - i. Verifies that a task can delete itself or another task. diff --git a/c/src/tests/mptests/mp10/node1/mp10.scn b/c/src/tests/mptests/mp10/node1/mp10.scn deleted file mode 100644 index deeafc0a9a..0000000000 --- a/c/src/tests/mptests/mp10/node1/mp10.scn +++ /dev/null @@ -1,4 +0,0 @@ -*** TEST 10 -- NODE 1 *** -Creating Message Queue (Global) -Creating Semaphore (Global) -*** END OF TEST 10 *** diff --git a/c/src/tests/mptests/mp10/node2/.cvsignore b/c/src/tests/mptests/mp10/node2/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/mptests/mp10/node2/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/mptests/mp10/node2/Makefile.am b/c/src/tests/mptests/mp10/node2/Makefile.am deleted file mode 100644 index 8a6aabb4f8..0000000000 --- a/c/src/tests/mptests/mp10/node2/Makefile.am +++ /dev/null @@ -1,50 +0,0 @@ -## -## $Id$ -## - - -VPATH = @srcdir@:@srcdir@/.. - -NODE = 2 -TEST = mp10 -PGM = ${ARCH}/$(TEST)-node$(NODE).exe - -MANAGERS = io mp message semaphore - -C_FILES = init.c task1.c task2.c task3.c -C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT)) - -H_FILES = system.h - -DOCTYPES = doc scn -DOCS = $(DOCTYPES:%=$(TEST).%) - -SRCS = $(DOCS) $(C_FILES) $(H_FILES) -OBJS = $(C_O_FILES) - -PRINT_SRCS = $(DOCS) - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am -include $(top_srcdir)/mptests.am - -AM_CPPFLAGS += -DNODE_NUMBER=$(NODE) -I$(srcdir)/.. - -if HAS_MP - -# -# (OPTIONAL) Add local stuff here using += -# - -${PGM}: $(OBJS) $(LINK_FILES) - $(make-exe) - -all-local: $(ARCH) $(TMPINSTALL_FILES) -else -all-local: -endif - -EXTRA_DIST = $(DOCS) - -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/mptests/mp10/node2/mp10.doc b/c/src/tests/mptests/mp10/node2/mp10.doc deleted file mode 100644 index 5c0baceb8d..0000000000 --- a/c/src/tests/mptests/mp10/node2/mp10.doc +++ /dev/null @@ -1,12 +0,0 @@ -# -# $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/c/src/tests/mptests/mp10/node2/mp10.scn b/c/src/tests/mptests/mp10/node2/mp10.scn deleted file mode 100644 index 25c07e6202..0000000000 --- a/c/src/tests/mptests/mp10/node2/mp10.scn +++ /dev/null @@ -1,19 +0,0 @@ -*** TEST 10 -- NODE 2 *** -Creating Test_task 1 (local) -Starting Test_task 1 (local) -Creating Test_task 2 (local) -Starting Test_task 2 (local) -Creating Test_task 3 (local) -Starting Test_task 3 (local) -Sleeping for 1 seconds ... -Getting QID of message queue -Attempting to receive message ... -Getting SMID of semaphore -Attempting to acquire semaphore ... -Getting SMID of semaphore -Attempting to acquire semaphore ... -Deleting Test_task2 -Deleting Test_task1 -Restarting Test_task3 -*** END OF TEST 10 *** - diff --git a/c/src/tests/mptests/mp10/system.h b/c/src/tests/mptests/mp10/system.h deleted file mode 100644 index 3e7ce3f80e..0000000000 --- a/c/src/tests/mptests/mp10/system.h +++ /dev/null @@ -1,66 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * 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. - * - * $Id$ - */ - -#include <tmacros.h> - -/* functions */ - -rtems_task Init( - rtems_task_argument argument -); - -rtems_task Test_task1( - rtems_task_argument argument -); - -rtems_task Test_task2( - rtems_task_argument argument -); - -rtems_task Test_task3( - rtems_task_argument restart -); - -/* configuration information */ - -#define CONFIGURE_MP_APPLICATION - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#if ( NODE_NUMBER == 1 ) -#define CONFIGURE_MAXIMUM_TASKS 1 -#define CONFIGURE_MAXIMUM_SEMAPHORES 1 -#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1 -#else -#define CONFIGURE_MAXIMUM_TASKS 4 -#endif - -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE - -#include <confdefs.h> - -/* variables */ - -TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */ -TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */ - -TEST_EXTERN rtems_id Queue_id[ 2 ]; /* array of message queue ids */ -TEST_EXTERN rtems_name Queue_name[ 2 ]; /* array of message queue names */ - -TEST_EXTERN rtems_id Semaphore_id[ 2 ]; /* array of semaphore ids */ -TEST_EXTERN rtems_name Semaphore_name[ 2 ]; /* array of semaphore names */ - -/* end of include file */ diff --git a/c/src/tests/mptests/mp10/task1.c b/c/src/tests/mptests/mp10/task1.c deleted file mode 100644 index 3762ed7948..0000000000 --- a/c/src/tests/mptests/mp10/task1.c +++ /dev/null @@ -1,51 +0,0 @@ -/* Test_task1 - * - * This task attempts to receive a message from a global message queue. - * It should never actually receive the message. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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. - * - * $Id$ - */ - -#include "system.h" - -rtems_task Test_task1( - rtems_task_argument argument -) -{ - char receive_buffer[16]; - rtems_unsigned32 size; - rtems_status_code status; - - puts( "Getting QID of message queue" ); - - do { - status = rtems_message_queue_ident( - Queue_name[ 1 ], - RTEMS_SEARCH_ALL_NODES, - &Queue_id[ 1 ] - ); - } while ( !rtems_is_status_successful( status ) ); - - puts( "Attempting to receive message ..." ); - status = rtems_message_queue_receive( - Queue_id[ 1 ], - (long (*)[4])receive_buffer, - &size, - RTEMS_DEFAULT_OPTIONS, - RTEMS_NO_TIMEOUT - ); - directive_failed( status, "rtems_message_queue_receive" ); - -} diff --git a/c/src/tests/mptests/mp10/task2.c b/c/src/tests/mptests/mp10/task2.c deleted file mode 100644 index 03424a17d6..0000000000 --- a/c/src/tests/mptests/mp10/task2.c +++ /dev/null @@ -1,46 +0,0 @@ -/* Test_task2 - * - * This task attempts to receive control of a global semaphore. - * It should never receive control of the semaphore. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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. - * - * $Id$ - */ - -#include "system.h" - -rtems_task Test_task2( - rtems_task_argument argument -) -{ - rtems_status_code status; - - puts( "Getting SMID of semaphore" ); - - do { - status = rtems_semaphore_ident( - Semaphore_name[ 1 ], - RTEMS_SEARCH_ALL_NODES, - &Semaphore_id[ 1 ] - ); - } while ( !rtems_is_status_successful( status ) ); - - puts( "Attempting to acquire semaphore ..." ); - status = rtems_semaphore_obtain( - Semaphore_id[ 1 ], - RTEMS_DEFAULT_OPTIONS, - RTEMS_NO_TIMEOUT - ); - directive_failed( status, "rtems_semaphore_obtain" ); -} diff --git a/c/src/tests/mptests/mp10/task3.c b/c/src/tests/mptests/mp10/task3.c deleted file mode 100644 index f636bf9781..0000000000 --- a/c/src/tests/mptests/mp10/task3.c +++ /dev/null @@ -1,49 +0,0 @@ -/* Test_task3 - * - * This task attempts to receive control of a global semaphore. - * It should never receive control of the semaphore. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * 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. - * - * $Id$ - */ - -#include "system.h" - -rtems_task Test_task3( restart ) -rtems_task_argument restart; -{ - rtems_status_code status; - - if ( restart == 1 ) { - status = rtems_task_delete( RTEMS_SELF ); - directive_failed( status, "rtems_task_delete" ); - } - - puts( "Getting SMID of semaphore" ); - - do { - status = rtems_semaphore_ident( - Semaphore_name[ 1 ], - RTEMS_SEARCH_ALL_NODES, - &Semaphore_id[ 1 ] - ); - } while ( !rtems_is_status_successful( status ) ); - - puts( "Attempting to acquire semaphore ..." ); - status = rtems_semaphore_obtain( - Semaphore_id[ 1 ], - RTEMS_DEFAULT_OPTIONS, - RTEMS_NO_TIMEOUT - ); - directive_failed( status, "rtems_semaphore_obtain" ); -} |