diff options
Diffstat (limited to 'testsuites/ada/mptests/mp01/node1')
-rw-r--r-- | testsuites/ada/mptests/mp01/node1/Makefile.am | 19 | ||||
-rw-r--r-- | testsuites/ada/mptests/mp01/node1/ada_mp01-node1.scn | 15 | ||||
-rw-r--r-- | testsuites/ada/mptests/mp01/node1/config.h | 21 | ||||
-rw-r--r-- | testsuites/ada/mptests/mp01/node1/mp01_node1.adb | 56 |
4 files changed, 111 insertions, 0 deletions
diff --git a/testsuites/ada/mptests/mp01/node1/Makefile.am b/testsuites/ada/mptests/mp01/node1/Makefile.am new file mode 100644 index 0000000000..154504ae33 --- /dev/null +++ b/testsuites/ada/mptests/mp01/node1/Makefile.am @@ -0,0 +1,19 @@ +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(top_srcdir)/../automake/compile.am + +include $(top_srcdir)/ada.am + +AM_ADAFLAGS += -I$(srcdir)/.. + +noinst_PROGRAMS = mp01_ada_mp01_node1 +mp01_ada_mp01_node1_SOURCES = mp01_node1.adb ../mptest.adb config.h +mp01_ada_mp01_node1_SOURCES += ../mptest.ads +mp01_ada_mp01_node1_SOURCES += ../../../support/init.c + +mp01_ada_mp01_node1$(EXEEXT): mp01_node1.adb ../mptest.adb init.$(OBJEXT) + $(GNATCOMPILE) -margs -a $< -o $@ + +scndir = $(rtems_ada_testsdir) +dist_scn_DATA = ada_mp01-node1.scn + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/ada/mptests/mp01/node1/ada_mp01-node1.scn b/testsuites/ada/mptests/mp01/node1/ada_mp01-node1.scn new file mode 100644 index 0000000000..d7495bfa0d --- /dev/null +++ b/testsuites/ada/mptests/mp01/node1/ada_mp01-node1.scn @@ -0,0 +1,15 @@ +*** TEST 1 -- NODE 1 *** +Creating task 1 (Global) +Creating task 2 (Global) +Creating task 3 (Local) +MA1 - clock_get - 9: 0: 0 12/31/1988 +MA2 - clock_get - 9: 0: 0 12/31/1988 +MA3 - clock_get - 9: 0: 0 12/31/1988 +MA1 - clock_get - 9: 0: 5 12/31/1988 +MA1 - deleting self +MA2 - clock_get - 9: 0:10 12/31/1988 +MA2 - waiting to be deleted by MA3 +MA3 - clock_get - 9: 0:15 12/31/1988 +MA3 - getting TID of MA2 +MA3 - deleting MA2 +*** END OF TEST 1 *** diff --git a/testsuites/ada/mptests/mp01/node1/config.h b/testsuites/ada/mptests/mp01/node1/config.h new file mode 100644 index 0000000000..36c9d133e8 --- /dev/null +++ b/testsuites/ada/mptests/mp01/node1/config.h @@ -0,0 +1,21 @@ +/* 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.org/license/LICENSE. + */ + + +/* configuration information */ + +#define CONFIGURE_MP_APPLICATION +#define CONFIGURE_MP_NODE_NUMBER 1 + +#include "../config_base.h" + +/* end of include file */ diff --git a/testsuites/ada/mptests/mp01/node1/mp01_node1.adb b/testsuites/ada/mptests/mp01/node1/mp01_node1.adb new file mode 100644 index 0000000000..c1f54ccd32 --- /dev/null +++ b/testsuites/ada/mptests/mp01/node1/mp01_node1.adb @@ -0,0 +1,56 @@ +-- +-- MAIN / BODY +-- +-- DESCRIPTION: +-- +-- This is the entry point for Test MP01_NODE1 of the Multiprocessor +-- Test Suite. +-- +-- DEPENDENCIES: +-- +-- +-- +-- COPYRIGHT (c) 1989-2011. +-- 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.org/license/LICENSE. +-- + +with RTEMS; +with RTEMS.TASKS; +with MPTEST; +with TEST_SUPPORT; + +procedure MP01_NODE1 is + INIT_ID : RTEMS.ID; + STATUS : RTEMS.STATUS_CODES; +begin + + RTEMS.TASKS.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.TASKS.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; + |