summaryrefslogtreecommitdiffstats
path: root/c/src/ada-tests/mptests/mp13/node1
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/ada-tests/mptests/mp13/node1')
-rw-r--r--c/src/ada-tests/mptests/mp13/node1/Makefile.am12
-rw-r--r--c/src/ada-tests/mptests/mp13/node1/config.h23
-rw-r--r--c/src/ada-tests/mptests/mp13/node1/mp13_node1.adb56
3 files changed, 84 insertions, 7 deletions
diff --git a/c/src/ada-tests/mptests/mp13/node1/Makefile.am b/c/src/ada-tests/mptests/mp13/node1/Makefile.am
index a902d412da..75ec9a4d72 100644
--- a/c/src/ada-tests/mptests/mp13/node1/Makefile.am
+++ b/c/src/ada-tests/mptests/mp13/node1/Makefile.am
@@ -7,14 +7,12 @@ include $(top_srcdir)/ada.am
AM_ADAFLAGS += -I$(srcdir)/..
-node1$(EXEEXT): ../mptest.adb
- $(GNATCOMPILE) -margs -a $< -o $@
-
-if EXPADA
-noinst_PROGRAMS = node1
-endif
+noinst_PROGRAMS = mp13_node1
+mp13_node1_SOURCES = mp13_node1.adb ../mptest.adb config.h ../mptest.ads
+mp13_node1_SOURCES += ../../../support/init.c
-node1_SOURCES = mptest-per_node_configuration.adb
+mp13_node1$(EXEEXT): mp13_node1.adb ../mptest.adb init.$(OBJEXT)
+ $(GNATCOMPILE) -margs -a $< -o $@
scndir = $(rtems_ada_testsdir)
dist_scn_DATA = mp13-node1.scn
diff --git a/c/src/ada-tests/mptests/mp13/node1/config.h b/c/src/ada-tests/mptests/mp13/node1/config.h
new file mode 100644
index 0000000000..cd2699b38e
--- /dev/null
+++ b/c/src/ada-tests/mptests/mp13/node1/config.h
@@ -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 */
diff --git a/c/src/ada-tests/mptests/mp13/node1/mp13_node1.adb b/c/src/ada-tests/mptests/mp13/node1/mp13_node1.adb
new file mode 100644
index 0000000000..a548cc8945
--- /dev/null
+++ b/c/src/ada-tests/mptests/mp13/node1/mp13_node1.adb
@@ -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;
+