summaryrefslogtreecommitdiffstats
path: root/testsuites/itrontests/itrontask01
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-06-17 16:03:51 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-06-17 16:03:51 +0000
commit62812daba81dfec31cd3c49eb109121eb3d63e38 (patch)
tree75fc2c753130130eabc91a2eb3cc84fd335a34dd /testsuites/itrontests/itrontask01
parent2010-06-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-62812daba81dfec31cd3c49eb109121eb3d63e38.tar.bz2
Remove (Abandoned)
Diffstat (limited to 'testsuites/itrontests/itrontask01')
-rw-r--r--testsuites/itrontests/itrontask01/.cvsignore2
-rw-r--r--testsuites/itrontests/itrontask01/Makefile.am28
-rw-r--r--testsuites/itrontests/itrontask01/init.c71
-rw-r--r--testsuites/itrontests/itrontask01/itrontask01.doc61
-rw-r--r--testsuites/itrontests/itrontask01/itrontask01.scn18
-rw-r--r--testsuites/itrontests/itrontask01/system.h39
-rw-r--r--testsuites/itrontests/itrontask01/task1.c54
7 files changed, 0 insertions, 273 deletions
diff --git a/testsuites/itrontests/itrontask01/.cvsignore b/testsuites/itrontests/itrontask01/.cvsignore
deleted file mode 100644
index 282522db03..0000000000
--- a/testsuites/itrontests/itrontask01/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-Makefile.in
diff --git a/testsuites/itrontests/itrontask01/Makefile.am b/testsuites/itrontests/itrontask01/Makefile.am
deleted file mode 100644
index 57ff06cb17..0000000000
--- a/testsuites/itrontests/itrontask01/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
-##
-## $Id$
-##
-
-MANAGERS = all
-
-rtems_tests_PROGRAMS = itrontask01
-itrontask01_SOURCES = init.c task1.c system.h
-
-dist_rtems_tests_DATA = itrontask01.scn
-dist_rtems_tests_DATA += itrontask01.doc
-
-include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
-include $(top_srcdir)/../automake/compile.am
-include $(top_srcdir)/../automake/leaf.am
-
-itrontask01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
-
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-
-LINK_OBJS = $(itrontask01_OBJECTS) $(itrontask01_LDADD)
-LINK_LIBS = $(itrontask01_LDLIBS)
-
-itrontask01$(EXEEXT): $(itrontask01_OBJECTS) $(itrontask01_DEPENDENCIES)
- @rm -f itrontask01$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/itrontests/itrontask01/init.c b/testsuites/itrontests/itrontask01/init.c
deleted file mode 100644
index 9283ec092b..0000000000
--- a/testsuites/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 CONFIGURE_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/testsuites/itrontests/itrontask01/itrontask01.doc b/testsuites/itrontests/itrontask01/itrontask01.doc
deleted file mode 100644
index 8ee0262d1a..0000000000
--- a/testsuites/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/testsuites/itrontests/itrontask01/itrontask01.scn b/testsuites/itrontests/itrontask01/itrontask01.scn
deleted file mode 100644
index 7ccefcbda4..0000000000
--- a/testsuites/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/testsuites/itrontests/itrontask01/system.h b/testsuites/itrontests/itrontask01/system.h
deleted file mode 100644
index e684269a77..0000000000
--- a/testsuites/itrontests/itrontask01/system.h
+++ /dev/null
@@ -1,39 +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 <rtems/itron.h>
-
-/* functions */
-
-void ITRON_Init( void );
-void Task_2_through_4(void);
-
-/* 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 <rtems/confdefs.h>
-
-/* global variables */
-
-/* end of include file */
diff --git a/testsuites/itrontests/itrontask01/task1.c b/testsuites/itrontests/itrontask01/task1.c
deleted file mode 100644
index f04adb30ed..0000000000
--- a/testsuites/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-2009.
- * 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(void)
-{
- 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_tod( &time );
- directive_failed( status, "rtems_clock_get_tod" );
-
- if ( time.second >= 35 ) {
- puts( "*** END OF ITRON TASK TEST 1 ***" );
- rtems_test_exit( 0 );
- }
-
- printf(name);
- print_time( " - rtems_clock_get_tod - ", &time, "\n" );
-
- status = rtems_task_wake_after(
- tid_index * 5 * rtems_clock_get_ticks_per_second() );
- directive_failed( status, "rtems_task_wake_after" );
- }
-}