forked from Imagelibrary/rtems
2007-10-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* mptests/mp01/node1/Makefile.am, mptests/mp01/node2/Makefile.am, mptests/mp02/node1/Makefile.am, mptests/mp02/node2/Makefile.am, mptests/mp03/node1/Makefile.am, mptests/mp03/node2/Makefile.am, mptests/mp04/node1/Makefile.am, mptests/mp04/node2/Makefile.am, mptests/mp05/node1/Makefile.am, mptests/mp05/node2/Makefile.am, mptests/mp06/node1/Makefile.am, mptests/mp06/node2/Makefile.am, mptests/mp07/node1/Makefile.am, mptests/mp07/node2/Makefile.am, mptests/mp08/node1/Makefile.am, mptests/mp08/node2/Makefile.am, mptests/mp09/node1/Makefile.am, mptests/mp09/node2/Makefile.am, mptests/mp10/node1/Makefile.am, mptests/mp10/node2/Makefile.am, mptests/mp11/node1/Makefile.am, mptests/mp11/node2/Makefile.am, mptests/mp12/node1/Makefile.am, mptests/mp12/node2/Makefile.am, mptests/mp13/node1/Makefile.am, mptests/mp13/node2/Makefile.am, mptests/mp14/node1/Makefile.am, mptests/mp14/node2/Makefile.am: Basic build structure should now be correct. The remaining issues should be test specific. * mptests/mp01/config_base.h, mptests/mp01/node1/config.h, mptests/mp01/node1/mp01_node1.adb, mptests/mp01/node2/config.h, mptests/mp01/node2/mp01_node2.adb, mptests/mp02/config_base.h, mptests/mp02/node1/config.h, mptests/mp02/node1/mp02_node1.adb, mptests/mp02/node2/config.h, mptests/mp02/node2/mp02_node2.adb, mptests/mp03/config_base.h, mptests/mp03/node1/config.h, mptests/mp03/node1/mp03_node1.adb, mptests/mp03/node2/config.h, mptests/mp03/node2/mp03_node2.adb, mptests/mp04/config_base.h, mptests/mp04/node1/config.h, mptests/mp04/node1/mp04_node1.adb, mptests/mp04/node2/config.h, mptests/mp04/node2/mp04_node2.adb, mptests/mp05/config_base.h, mptests/mp05/node1/config.h, mptests/mp05/node1/mp05_node1.adb, mptests/mp05/node2/config.h, mptests/mp05/node2/mp05_node2.adb, mptests/mp06/config_base.h, mptests/mp06/node1/config.h, mptests/mp06/node1/mp06_node1.adb, mptests/mp06/node2/config.h, mptests/mp06/node2/mp06_node2.adb, mptests/mp07/config_base.h, mptests/mp07/node1/config.h, mptests/mp07/node1/mp07_node1.adb, mptests/mp07/node2/config.h, mptests/mp07/node2/mp07_node2.adb, mptests/mp08/config_base.h, mptests/mp08/node1/config.h, mptests/mp08/node1/mp08_node1.adb, mptests/mp08/node2/config.h, mptests/mp08/node2/mp08_node2.adb, mptests/mp09/config_base.h, mptests/mp09/node1/config.h, mptests/mp09/node1/mp09_node1.adb, mptests/mp09/node2/config.h, mptests/mp09/node2/mp09_node2.adb, mptests/mp10/config_base.h, mptests/mp10/node1/config.h, mptests/mp10/node1/mp10_node1.adb, mptests/mp10/node2/config.h, mptests/mp10/node2/mp10_node2.adb, mptests/mp11/config_base.h, mptests/mp11/node1/config.h, mptests/mp11/node1/mp11_node1.adb, mptests/mp11/node2/config.h, mptests/mp11/node2/mp11_node2.adb, mptests/mp12/config_base.h, mptests/mp12/node1/config.h, mptests/mp12/node1/mp12_node1.adb, mptests/mp12/node2/config.h, mptests/mp12/node2/mp12_node2.adb, mptests/mp13/config_base.h, mptests/mp13/node1/config.h, mptests/mp13/node1/mp13_node1.adb, mptests/mp13/node2/config.h, mptests/mp13/node2/mp13_node2.adb, mptests/mp14/config_base.h, mptests/mp14/node1/config.h, mptests/mp14/node1/mp14_node1.adb, mptests/mp14/node2/config.h, mptests/mp14/node2/mp14_node2.adb: New files. GNATMAKE is easier to operate if the filename of the main package matches the executable name. In this case, we needed one for each node's executable. * mptests/mp01/config.h: Removed.
This commit is contained in:
@@ -1,3 +1,61 @@
|
||||
2007-10-03 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* mptests/mp01/node1/Makefile.am, mptests/mp01/node2/Makefile.am,
|
||||
mptests/mp02/node1/Makefile.am, mptests/mp02/node2/Makefile.am,
|
||||
mptests/mp03/node1/Makefile.am, mptests/mp03/node2/Makefile.am,
|
||||
mptests/mp04/node1/Makefile.am, mptests/mp04/node2/Makefile.am,
|
||||
mptests/mp05/node1/Makefile.am, mptests/mp05/node2/Makefile.am,
|
||||
mptests/mp06/node1/Makefile.am, mptests/mp06/node2/Makefile.am,
|
||||
mptests/mp07/node1/Makefile.am, mptests/mp07/node2/Makefile.am,
|
||||
mptests/mp08/node1/Makefile.am, mptests/mp08/node2/Makefile.am,
|
||||
mptests/mp09/node1/Makefile.am, mptests/mp09/node2/Makefile.am,
|
||||
mptests/mp10/node1/Makefile.am, mptests/mp10/node2/Makefile.am,
|
||||
mptests/mp11/node1/Makefile.am, mptests/mp11/node2/Makefile.am,
|
||||
mptests/mp12/node1/Makefile.am, mptests/mp12/node2/Makefile.am,
|
||||
mptests/mp13/node1/Makefile.am, mptests/mp13/node2/Makefile.am,
|
||||
mptests/mp14/node1/Makefile.am, mptests/mp14/node2/Makefile.am: Basic
|
||||
build structure should now be correct. The remaining issues should be
|
||||
test specific.
|
||||
* mptests/mp01/config_base.h, mptests/mp01/node1/config.h,
|
||||
mptests/mp01/node1/mp01_node1.adb, mptests/mp01/node2/config.h,
|
||||
mptests/mp01/node2/mp01_node2.adb, mptests/mp02/config_base.h,
|
||||
mptests/mp02/node1/config.h, mptests/mp02/node1/mp02_node1.adb,
|
||||
mptests/mp02/node2/config.h, mptests/mp02/node2/mp02_node2.adb,
|
||||
mptests/mp03/config_base.h, mptests/mp03/node1/config.h,
|
||||
mptests/mp03/node1/mp03_node1.adb, mptests/mp03/node2/config.h,
|
||||
mptests/mp03/node2/mp03_node2.adb, mptests/mp04/config_base.h,
|
||||
mptests/mp04/node1/config.h, mptests/mp04/node1/mp04_node1.adb,
|
||||
mptests/mp04/node2/config.h, mptests/mp04/node2/mp04_node2.adb,
|
||||
mptests/mp05/config_base.h, mptests/mp05/node1/config.h,
|
||||
mptests/mp05/node1/mp05_node1.adb, mptests/mp05/node2/config.h,
|
||||
mptests/mp05/node2/mp05_node2.adb, mptests/mp06/config_base.h,
|
||||
mptests/mp06/node1/config.h, mptests/mp06/node1/mp06_node1.adb,
|
||||
mptests/mp06/node2/config.h, mptests/mp06/node2/mp06_node2.adb,
|
||||
mptests/mp07/config_base.h, mptests/mp07/node1/config.h,
|
||||
mptests/mp07/node1/mp07_node1.adb, mptests/mp07/node2/config.h,
|
||||
mptests/mp07/node2/mp07_node2.adb, mptests/mp08/config_base.h,
|
||||
mptests/mp08/node1/config.h, mptests/mp08/node1/mp08_node1.adb,
|
||||
mptests/mp08/node2/config.h, mptests/mp08/node2/mp08_node2.adb,
|
||||
mptests/mp09/config_base.h, mptests/mp09/node1/config.h,
|
||||
mptests/mp09/node1/mp09_node1.adb, mptests/mp09/node2/config.h,
|
||||
mptests/mp09/node2/mp09_node2.adb, mptests/mp10/config_base.h,
|
||||
mptests/mp10/node1/config.h, mptests/mp10/node1/mp10_node1.adb,
|
||||
mptests/mp10/node2/config.h, mptests/mp10/node2/mp10_node2.adb,
|
||||
mptests/mp11/config_base.h, mptests/mp11/node1/config.h,
|
||||
mptests/mp11/node1/mp11_node1.adb, mptests/mp11/node2/config.h,
|
||||
mptests/mp11/node2/mp11_node2.adb, mptests/mp12/config_base.h,
|
||||
mptests/mp12/node1/config.h, mptests/mp12/node1/mp12_node1.adb,
|
||||
mptests/mp12/node2/config.h, mptests/mp12/node2/mp12_node2.adb,
|
||||
mptests/mp13/config_base.h, mptests/mp13/node1/config.h,
|
||||
mptests/mp13/node1/mp13_node1.adb, mptests/mp13/node2/config.h,
|
||||
mptests/mp13/node2/mp13_node2.adb, mptests/mp14/config_base.h,
|
||||
mptests/mp14/node1/config.h, mptests/mp14/node1/mp14_node1.adb,
|
||||
mptests/mp14/node2/config.h, mptests/mp14/node2/mp14_node2.adb:
|
||||
New files. GNATMAKE is easier to operate if the filename of the
|
||||
main package matches the executable name. In this case, we needed
|
||||
one for each node's executable.
|
||||
* mptests/mp01/config.h: Removed.
|
||||
|
||||
2007-10-01 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* mptests/mp01/mptest.adb, mptests/mp01/mptest.ads,
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
/* config.h
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1997.
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
@@ -13,15 +14,14 @@
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MPTEST
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
@@ -7,12 +7,12 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
noinst_PROGRAMS = mp01_node1
|
||||
mp01_node1_SOURCES = mp01_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp01_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
mp01_node1$(EXEEXT): mp01_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp01-node1.scn
|
||||
|
||||
23
c/src/ada-tests/mptests/mp01/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp01/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp01/node1/mp01_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp01/node1/mp01_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP01_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP01_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP01_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp01_node2
|
||||
mp01_node2_SOURCES = mp01_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp01_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp01_node2$(EXEEXT): mp01_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp01-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp01/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp01/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp01/node2/mp01_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp01/node2/mp01_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP01_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP01_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP01_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp02/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp02/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp02_node1
|
||||
mp02_node1_SOURCES = mp02_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp02_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp02_node1$(EXEEXT): mp02_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp02-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp02/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp02/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp02/node1/mp02_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp02/node1/mp02_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP02_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP02_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP02_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp02_node2
|
||||
mp02_node2_SOURCES = mp02_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp02_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp02_node2$(EXEEXT): mp02_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp02-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp02/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp02/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp02/node2/mp02_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp02/node2/mp02_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP02_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP02_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP02_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp03/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp03/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp03_node1
|
||||
mp03_node1_SOURCES = mp03_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp03_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp03_node1$(EXEEXT): mp03_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp03-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp03/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp03/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp03/node1/mp03_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp03/node1/mp03_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP03_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP03_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP03_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp03_node2
|
||||
mp03_node2_SOURCES = mp03_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp03_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp03_node2$(EXEEXT): mp03_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp03-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp03/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp03/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp03/node2/mp03_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp03/node2/mp03_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP03_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP03_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP03_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp04/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp04/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp04_node1
|
||||
mp04_node1_SOURCES = mp04_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp04_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp04_node1$(EXEEXT): mp04_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp04-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp04/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp04/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp04/node1/mp04_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp04/node1/mp04_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP04_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP04_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP04_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp04_node2
|
||||
mp04_node2_SOURCES = mp04_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp04_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp04_node2$(EXEEXT): mp04_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp04-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp04/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp04/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp04/node2/mp04_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp04/node2/mp04_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP04_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP04_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP04_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp05/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp05/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp05_node1
|
||||
mp05_node1_SOURCES = mp05_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp05_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp05_node1$(EXEEXT): mp05_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp05-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp05/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp05/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp05/node1/mp05_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp05/node1/mp05_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP05_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP05_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP05_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp05_node2
|
||||
mp05_node2_SOURCES = mp05_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp05_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp05_node2$(EXEEXT): mp05_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp05-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp05/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp05/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp05/node2/mp05_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp05/node2/mp05_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP05_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP05_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP05_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp06/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp06/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp06_node1
|
||||
mp06_node1_SOURCES = mp06_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp06_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp06_node1$(EXEEXT): mp06_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp06-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp06/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp06/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp06/node1/mp06_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp06/node1/mp06_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP06_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP06_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP06_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp06_node2
|
||||
mp06_node2_SOURCES = mp06_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp06_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp06_node2$(EXEEXT): mp06_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp06-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp06/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp06/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp06/node2/mp06_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp06/node2/mp06_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP06_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP06_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP06_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp07/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp07/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp07_node1
|
||||
mp07_node1_SOURCES = mp07_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp07_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp07_node1$(EXEEXT): mp07_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp07-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp07/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp07/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp07/node1/mp07_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp07/node1/mp07_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP07_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP07_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP07_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp07_node2
|
||||
mp07_node2_SOURCES = mp07_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp07_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp07_node2$(EXEEXT): mp07_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp07-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp07/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp07/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp07/node2/mp07_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp07/node2/mp07_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP07_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP07_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP07_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp08/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp08/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp08_node1
|
||||
mp08_node1_SOURCES = mp08_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp08_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp08_node1$(EXEEXT): mp08_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp08-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp08/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp08/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp08/node1/mp08_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp08/node1/mp08_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP08_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP08_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP08_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp08_node2
|
||||
mp08_node2_SOURCES = mp08_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp08_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp08_node2$(EXEEXT): mp08_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp08-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp08/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp08/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp08/node2/mp08_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp08/node2/mp08_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP08_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP08_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP08_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp09/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp09/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp09_node1
|
||||
mp09_node1_SOURCES = mp09_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp09_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp09_node1$(EXEEXT): mp09_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp09-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp09/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp09/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp09/node1/mp09_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp09/node1/mp09_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP09_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP09_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP09_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp09_node2
|
||||
mp09_node2_SOURCES = mp09_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp09_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp09_node2$(EXEEXT): mp09_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp09-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp09/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp09/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp09/node2/mp09_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp09/node2/mp09_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP09_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP09_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP09_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp10/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp10/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp10_node1
|
||||
mp10_node1_SOURCES = mp10_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp10_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp10_node1$(EXEEXT): mp10_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp10-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp10/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp10/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp10/node1/mp10_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp10/node1/mp10_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP10_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP10_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP10_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp10_node2
|
||||
mp10_node2_SOURCES = mp10_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp10_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp10_node2$(EXEEXT): mp10_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp10-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp10/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp10/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp10/node2/mp10_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp10/node2/mp10_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP10_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP10_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP10_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp11/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp11/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp11_node1
|
||||
mp11_node1_SOURCES = mp11_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp11_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp11_node1$(EXEEXT): mp11_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp11-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp11/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp11/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp11/node1/mp11_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp11/node1/mp11_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP11_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP11_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP11_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp11_node2
|
||||
mp11_node2_SOURCES = mp11_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp11_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp11_node2$(EXEEXT): mp11_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp11-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp11/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp11/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp11/node2/mp11_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp11/node2/mp11_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP11_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP11_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP11_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp12/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp12/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp12_node1
|
||||
mp12_node1_SOURCES = mp12_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp12_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp12_node1$(EXEEXT): mp12_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp12-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp12/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp12/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp12/node1/mp12_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp12/node1/mp12_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP12_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP12_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP12_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp12_node2
|
||||
mp12_node2_SOURCES = mp12_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp12_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp12_node2$(EXEEXT): mp12_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp12-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp12/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp12/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp12/node2/mp12_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp12/node2/mp12_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP12_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP12_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP12_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp13/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp13/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp13_node1
|
||||
mp13_node1_SOURCES = mp13_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp13_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp13_node1$(EXEEXT): mp13_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp13-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp13/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp13/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp13/node1/mp13_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp13/node1/mp13_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP13_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP13_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP13_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp13_node2
|
||||
mp13_node2_SOURCES = mp13_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp13_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp13_node2$(EXEEXT): mp13_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp13-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp13/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp13/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp13/node2/mp13_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp13/node2/mp13_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP13_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP13_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP13_NODE2;
|
||||
|
||||
32
c/src/ada-tests/mptests/mp14/config_base.h
Normal file
32
c/src/ada-tests/mptests/mp14/config_base.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* config_base.h
|
||||
*
|
||||
* This include file defines all of the Configuration Table for this test
|
||||
* EXCEPT the NODE NUMBER.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
|
||||
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 2
|
||||
|
||||
#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
|
||||
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
|
||||
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* end of include file */
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node1$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp14_node1
|
||||
mp14_node1_SOURCES = mp14_node1.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp14_node1_SOURCES += ../../../support/init.c
|
||||
|
||||
mp14_node1$(EXEEXT): mp14_node1.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node1
|
||||
endif
|
||||
|
||||
node1_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp14-node1.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp14/node1/config.h
Normal file
23
c/src/ada-tests/mptests/mp14/node1/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 1
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp14/node1/mp14_node1.adb
Normal file
56
c/src/ada-tests/mptests/mp14/node1/mp14_node1.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP14_NODE1 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP14_NODE1 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP14_NODE1;
|
||||
|
||||
@@ -7,15 +7,13 @@ include $(top_srcdir)/ada.am
|
||||
|
||||
AM_ADAFLAGS += -I$(srcdir)/..
|
||||
|
||||
node2$(EXEEXT): ../mptest.adb
|
||||
noinst_PROGRAMS = mp14_node2
|
||||
mp14_node2_SOURCES = mp14_node2.adb ../mptest.adb config.h ../mptest.ads
|
||||
mp14_node2_SOURCES += ../../../support/init.c
|
||||
|
||||
mp14_node2$(EXEEXT): mp14_node2.adb ../mptest.adb init.$(OBJEXT)
|
||||
$(GNATCOMPILE) -margs -a $< -o $@
|
||||
|
||||
if EXPADA
|
||||
noinst_PROGRAMS = node2
|
||||
endif
|
||||
|
||||
node2_SOURCES = mptest-per_node_configuration.adb
|
||||
|
||||
scndir = $(rtems_ada_testsdir)
|
||||
dist_scn_DATA = mp14-node2.scn
|
||||
|
||||
|
||||
23
c/src/ada-tests/mptests/mp14/node2/config.h
Normal file
23
c/src/ada-tests/mptests/mp14/node2/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* config.h
|
||||
*
|
||||
* This include file defines the Configuration Table for this test.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may in
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
/* configuration information */
|
||||
|
||||
#define CONFIGURE_MP_APPLICATION
|
||||
#define CONFIGURE_MP_NODE_NUMBER 2
|
||||
|
||||
#include "../config_base.h"
|
||||
|
||||
/* end of include file */
|
||||
56
c/src/ada-tests/mptests/mp14/node2/mp14_node2.adb
Normal file
56
c/src/ada-tests/mptests/mp14/node2/mp14_node2.adb
Normal file
@@ -0,0 +1,56 @@
|
||||
--
|
||||
-- MAIN / BODY
|
||||
--
|
||||
-- DESCRIPTION:
|
||||
--
|
||||
-- This is the entry point for Test MP14_NODE2 of the Single Processor Test Suite.
|
||||
--
|
||||
-- DEPENDENCIES:
|
||||
--
|
||||
--
|
||||
--
|
||||
-- COPYRIGHT (c) 1989-2007.
|
||||
-- On-Line Applications Research Corporation (OAR).
|
||||
--
|
||||
-- The license and distribution terms for this file may in
|
||||
-- the file LICENSE in this distribution or at
|
||||
-- http://www.rtems.com/license/LICENSE.
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
|
||||
with RTEMS;
|
||||
with MPTEST;
|
||||
with TEST_SUPPORT;
|
||||
|
||||
procedure MP14_NODE2 is
|
||||
INIT_ID : RTEMS.ID;
|
||||
STATUS : RTEMS.STATUS_CODES;
|
||||
begin
|
||||
|
||||
RTEMS.TASK_CREATE(
|
||||
RTEMS.BUILD_NAME( 'I', 'N', 'I', 'T' ),
|
||||
1,
|
||||
RTEMS.MINIMUM_STACK_SIZE,
|
||||
RTEMS.NO_PREEMPT,
|
||||
RTEMS.DEFAULT_ATTRIBUTES,
|
||||
INIT_ID,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );
|
||||
|
||||
|
||||
RTEMS.TASK_START(
|
||||
INIT_ID,
|
||||
MPTEST.INIT'ACCESS,
|
||||
0,
|
||||
STATUS
|
||||
);
|
||||
TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );
|
||||
|
||||
loop
|
||||
delay 120.0;
|
||||
end loop;
|
||||
|
||||
end MP14_NODE2;
|
||||
|
||||
Reference in New Issue
Block a user