summaryrefslogtreecommitdiffstats
path: root/c/src/tests/itrontests/itrontask01
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/itrontests/itrontask01')
-rw-r--r--c/src/tests/itrontests/itrontask01/.cvsignore2
-rw-r--r--c/src/tests/itrontests/itrontask01/Makefile.am41
-rw-r--r--c/src/tests/itrontests/itrontask01/init.c71
-rw-r--r--c/src/tests/itrontests/itrontask01/itrontask01.doc61
-rw-r--r--c/src/tests/itrontests/itrontask01/itrontask01.scn18
-rw-r--r--c/src/tests/itrontests/itrontask01/system.h42
-rw-r--r--c/src/tests/itrontests/itrontask01/task1.c54
7 files changed, 0 insertions, 289 deletions
diff --git a/c/src/tests/itrontests/itrontask01/.cvsignore b/c/src/tests/itrontests/itrontask01/.cvsignore
deleted file mode 100644
index 282522db03..0000000000
--- a/c/src/tests/itrontests/itrontask01/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-Makefile.in
diff --git a/c/src/tests/itrontests/itrontask01/Makefile.am b/c/src/tests/itrontests/itrontask01/Makefile.am
deleted file mode 100644
index 48143743b1..0000000000
--- a/c/src/tests/itrontests/itrontask01/Makefile.am
+++ /dev/null
@@ -1,41 +0,0 @@
-##
-## $Id$
-##
-
-
-TEST = itrontask01
-PGM = ${ARCH}/$(TEST).exe
-
-MANAGERS = all
-
-C_FILES = init.c task1.c
-C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT))
-
-H_FILES = system.h
-noinst_HEADERS = $(H_FILES)
-
-DOCTYPES = doc scn
-DOCS = $(DOCTYPES:%=$(TEST).%)
-
-SRCS = $(DOCS) $(C_FILES) $(H_FILES)
-OBJS = $(C_O_FILES)
-
-PRINT_SRCS = $(DOCS)
-
-include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
-include $(top_srcdir)/../automake/compile.am
-include $(top_srcdir)/../automake/leaf.am
-include $(top_srcdir)/itrontests.am
-
-#
-# (OPTIONAL) Add local stuff here using +=
-#
-
-${PGM}: $(OBJS) $(LINK_FILES)
- $(make-exe)
-
-all-local: $(ARCH) $(TMPINSTALL_FILES)
-
-EXTRA_DIST = $(C_FILES) $(DOCS)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/c/src/tests/itrontests/itrontask01/init.c b/c/src/tests/itrontests/itrontask01/init.c
deleted file mode 100644
index 3748046a6c..0000000000
--- a/c/src/tests/itrontests/itrontask01/init.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* Init
- *
- * This routine is the initialization task for this test program.
- * It is called from init_exec and has the responsibility for creating
- * and starting the tasks that make up the test. If the time of day
- * clock is required for the test, it should also be set to a known
- * value by this function.
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#define TEST_INIT
-#include "system.h"
-#include <stdio.h>
-
-void ITRON_Init( void )
-{
- rtems_time_of_day time;
- ER status;
- T_CTSK pk_ctsk;
-
- puts( "\n\n*** ITRON TASK TEST 1 ***" );
-
- /*
- * XXX - Change this to an itron clock !!
- */
-
- build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
- status = rtems_clock_set( &time );
- directive_failed( status, "rtems_clock_set" );
-
- pk_ctsk.exinf = NULL;
- pk_ctsk.tskatr = TA_HLNG;
- pk_ctsk.itskpri = 1;
- pk_ctsk.task = Task_2_through_4;
-
- pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE * 2;
- status = cre_tsk( 2, &pk_ctsk );
- directive_failed( status, "cre_tsk of TA1" );
-
- pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE * 2;
- status = cre_tsk( 3, &pk_ctsk );
- directive_failed( status, "cre_tsk of TA2" );
-
- pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE * 3;
- status = cre_tsk( 4, &pk_ctsk );
- directive_failed( status, "cre_tsk of TA3" );
-
- status = sta_tsk( 2, 0 );
- directive_failed( status, "sta_tsk of TA1" );
-
- status = sta_tsk( 3, 0 );
- directive_failed( status, "sta_tsk of TA1" );
-
- status = sta_tsk( 4, 0 );
- directive_failed( status, "sta_tsk of TA1" );
-
- exd_tsk();
- directive_failed( 0, "exd_tsk" );
-}
diff --git a/c/src/tests/itrontests/itrontask01/itrontask01.doc b/c/src/tests/itrontests/itrontask01/itrontask01.doc
deleted file mode 100644
index 8ee0262d1a..0000000000
--- a/c/src/tests/itrontests/itrontask01/itrontask01.doc
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# $Id$
-#
-# COPYRIGHT (c) 1989-1999.
-# On-Line Applications Research Corporation (OAR).
-#
-# The license and distribution terms for this file may be
-# found in the file LICENSE in this distribution or at
-# http://www.rtems.com/license/LICENSE.
-#
-
-This file describes the directives and concepts tested by this test set.
-This test is based upon the test in sp01.
-
-test set name: itrontask01
-
-directives:
- cre_tsk, exd_tsk, get_tid, sta_tsk
-
-concepts: XXX verify
-
- a. Verifies system can create and start both the executive's system
- initialization and idle task.
-
- b. Verifies executive can swap between three application tasks at the
- same priority and the executive's internal idle task.
-
- c. Verifies can print strings to the CRT on port 2 of the mvme136 board
- using Print and Println in the board support package.
-
- d. Verifies interrupt handler can handle a task switch from an interrupt
- as specified with the i_return directive.
-
- e. Verifies executive initialization performed correctly.
-
- f. Verifies the executive trap handler except for the halt function.
-
- g. Verifies that a task can get the task identification number of itself.
-
- a. Verifies exd_tsk
-
- b. Verifies get_tid
-
-notes:
-
- rtems clock directives should change to itron clock directives when
- the clock directives are merged.
-
- change rtems task wake after to itron routines.
-
-output:
- "TA1" is printed once every 5 seconds.
- "TA2" is printed once every 10 seconds.
- "TA3" is printed once every 15 seconds.
-
-
-
-
-
-
-
diff --git a/c/src/tests/itrontests/itrontask01/itrontask01.scn b/c/src/tests/itrontests/itrontask01/itrontask01.scn
deleted file mode 100644
index 7ccefcbda4..0000000000
--- a/c/src/tests/itrontests/itrontask01/itrontask01.scn
+++ /dev/null
@@ -1,18 +0,0 @@
-*** ITRON TASK TEST 1 ***
-TA1 - rtems_clock_get - 09:00:00 12/31/1988
-TA2 - rtems_clock_get - 09:00:00 12/31/1988
-TA3 - rtems_clock_get - 09:00:00 12/31/1988
-TA1 - rtems_clock_get - 09:00:05 12/31/1988
-TA2 - rtems_clock_get - 09:00:10 12/31/1988
-TA1 - rtems_clock_get - 09:00:10 12/31/1988
-TA3 - rtems_clock_get - 09:00:15 12/31/1988
-TA1 - rtems_clock_get - 09:00:15 12/31/1988
-TA2 - rtems_clock_get - 09:00:20 12/31/1988
-TA1 - rtems_clock_get - 09:00:20 12/31/1988
-TA1 - rtems_clock_get - 09:00:25 12/31/1988
-TA3 - rtems_clock_get - 09:00:30 12/31/1988
-TA1 - rtems_clock_get - 09:00:30 12/31/1988
-TA2 - rtems_clock_get - 09:00:30 12/31/1988
-*** END OF ITRON TASK TEST 1 ***
-
-NOTE: The order of the prints at each time interval is irrelevant.
diff --git a/c/src/tests/itrontests/itrontask01/system.h b/c/src/tests/itrontests/itrontask01/system.h
deleted file mode 100644
index 7b08093319..0000000000
--- a/c/src/tests/itrontests/itrontask01/system.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/* system.h
- *
- * This include file contains information that is included in every
- * function in the test set.
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include <tmacros.h>
-#include <itron.h>
-
-/* functions */
-
-void ITRON_Init( void );
-void Task_2_through_4();
-
-/* configuration information */
-
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
-
-#define CONFIGURE_MAXIMUM_ITRON_TASKS 4
-#define CONFIGURE_EXTRA_TASK_STACKS (RTEMS_MINIMUM_STACK_SIZE * 4)
-
-
-#define CONFIGURE_ITRON_INIT_TASK_TABLE
-
-#include <confdefs.h>
-
-/* global variables */
-
-/* end of include file */
-
-
-
diff --git a/c/src/tests/itrontests/itrontask01/task1.c b/c/src/tests/itrontests/itrontask01/task1.c
deleted file mode 100644
index ccf4466ece..0000000000
--- a/c/src/tests/itrontests/itrontask01/task1.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Task_1_through_3
- *
- * This routine serves as a test task. It verifies the basic task
- * switching capabilities of the executive.
- *
- * Input parameters:
- * argument - task argument
- *
- * Output parameters: NONE
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include "system.h"
-
-void Task_2_through_4()
-{
- ID tid;
- int tid_index;
- rtems_time_of_day time;
- ER status;
- char name[30];
-
- status = get_tid( &tid );
- directive_failed( status, "get_tid");
-
- tid_index = tid - 1; /* account for init tasks */
-
- sprintf(name, "TA%d", tid_index);
-
- while( FOREVER ) {
- status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
- directive_failed( status, "rtems_clock_get" );
-
- if ( time.second >= 35 ) {
- puts( "*** END OF ITRON TASK TEST 1 ***" );
- rtems_test_exit( 0 );
- }
-
- printf(name);
- print_time( " - rtems_clock_get - ", &time, "\n" );
-
- status = rtems_task_wake_after( tid_index * 5 * TICKS_PER_SECOND );
- directive_failed( status, "rtems_task_wake_after" );
- }
-}
-