summaryrefslogtreecommitdiffstats
path: root/c/src/tests/tmitrontests/tmitronsem01
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-11-11 01:00:22 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-11-11 01:00:22 +0000
commit1931470a9d0c4f749c0f5662825c4ea048db0aac (patch)
treeaa08bdc8cd6d007f05ef3a7423df4a4a98225cac /c/src/tests/tmitrontests/tmitronsem01
parent2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-1931470a9d0c4f749c0f5662825c4ea048db0aac.tar.bz2
2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/.cvsignore: Remove. * include/Makefile.am: Remove. * include/timesys.h: Remove. * .cvsignore: Remove. * ChangeLog: Remove. * Makefile.am: Remove. * README: Remove. * configure.ac: Remove. * tmitrontests.am: Remove. * tmitronsem01/.cvsignore: Remove. * tmitronsem01/Makefile.am: Remove. * tmitronsem01/init.c: Remove. * tmitronsem01/system.h: Remove. * tmitronsem01/tmitronsem01.doc: Remove.
Diffstat (limited to 'c/src/tests/tmitrontests/tmitronsem01')
-rw-r--r--c/src/tests/tmitrontests/tmitronsem01/.cvsignore2
-rw-r--r--c/src/tests/tmitrontests/tmitronsem01/Makefile.am45
-rw-r--r--c/src/tests/tmitrontests/tmitronsem01/init.c144
-rw-r--r--c/src/tests/tmitrontests/tmitronsem01/system.h39
-rw-r--r--c/src/tests/tmitrontests/tmitronsem01/tmitronsem01.doc9
5 files changed, 0 insertions, 239 deletions
diff --git a/c/src/tests/tmitrontests/tmitronsem01/.cvsignore b/c/src/tests/tmitrontests/tmitronsem01/.cvsignore
deleted file mode 100644
index 282522db03..0000000000
--- a/c/src/tests/tmitrontests/tmitronsem01/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-Makefile.in
diff --git a/c/src/tests/tmitrontests/tmitronsem01/Makefile.am b/c/src/tests/tmitrontests/tmitronsem01/Makefile.am
deleted file mode 100644
index e0da19b4fd..0000000000
--- a/c/src/tests/tmitrontests/tmitronsem01/Makefile.am
+++ /dev/null
@@ -1,45 +0,0 @@
-##
-## $Id$
-##
-
-
-TEST = tmitronsem01
-
-MANAGERS = all
-
-C_FILES = init.c
-C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT))
-
-H_FILES = system.h
-noinst_HEADERS = $(H_FILES)
-
-DOCTYPES = doc
-DOCS = $(DOCTYPES:%=$(TEST).%)
-
-SRCS = $(DOCS) $(C_FILES) $(H_FILES)
-OBJS = $(C_O_FILES)
-
-PRINT_SRCS = $(DOCS)
-
-PGM = ${ARCH}/$(TEST).exe
-
-include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
-include $(top_srcdir)/../automake/compile.am
-include $(top_srcdir)/../automake/leaf.am
-include $(top_srcdir)/tmitrontests.am
-
-#
-# (OPTIONAL) Add local stuff here using +=
-#
-
-OPERATION_COUNT = @OPERATION_COUNT@
-AM_CPPFLAGS += -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT)
-
-${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/tmitrontests/tmitronsem01/init.c b/c/src/tests/tmitrontests/tmitronsem01/init.c
deleted file mode 100644
index e840ab9333..0000000000
--- a/c/src/tests/tmitrontests/tmitronsem01/init.c
+++ /dev/null
@@ -1,144 +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 <timesys.h>
-#include <stdio.h>
-
-void ITRON_Init( void )
-{
- T_CSEM pk_csem;
- T_RSEM pk_rsem;
- int index;
-
- pk_csem.isemcnt = 2;
- pk_csem.maxsem = 3;
- pk_csem.sematr = TA_TFIFO;
-
- printf( "\n\n*** TMITRON01 -- ITRON TIMING TEST ***\n" );
-
- /*
- * time one invocation of cre_sem
- */
-
- Timer_initialize();
- (void) cre_sem( 1, &pk_csem );
- end_time = Read_timer();
- put_time(
- "cre_sem",
- end_time,
- 1,
- 0, /* no loop overhead to take out */
- 0 /* no calling overhead */
- );
-
- /*
- * time one invocation of del_sem
- */
-
- Timer_initialize();
- (void) del_sem( 1 );
- end_time = Read_timer();
- put_time(
- "del_sem",
- end_time,
- 1,
- 0, /* no loop overhead to take out */
- 0 /* no calling overhead */
- );
-
- pk_csem.isemcnt = 100;
- pk_csem.maxsem = 100;
- pk_csem.sematr = TA_TFIFO;
- (void) cre_sem( 1, &pk_csem );
-
- /*
- * time preq_sem (available)
- */
-
- Timer_initialize();
- for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
- (void) preq_sem( 1 );
- end_time = Read_timer();
- put_time(
- "preq_sem (available)",
- end_time,
- OPERATION_COUNT,
- 0, /* don't take the loop overhead out */
- 0 /* no calling overhead */
- );
-
- /*
- * time preq_sem (not available)
- */
-
- Timer_initialize();
- for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
- (void) preq_sem( 1 );
- end_time = Read_timer();
- put_time(
- "preq_sem (not available)",
- end_time,
- OPERATION_COUNT,
- 0, /* don't take the loop overhead out */
- 0 /* no calling overhead */
- );
-
- /*
- * time sig_sem (no waiting tasks)
- */
-
- Timer_initialize();
- for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
- (void) sig_sem( 1 );
- end_time = Read_timer();
- put_time(
- "sig_sem (no waiting tasks)",
- end_time,
- OPERATION_COUNT,
- 0, /* don't take the loop overhead out */
- 0 /* no calling overhead */
- );
-
- /*
- * time ref_sem
- */
-
- Timer_initialize();
- for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
- (void) ref_sem( 1, &pk_rsem );
- end_time = Read_timer();
- put_time(
- "ref_sem",
- end_time,
- OPERATION_COUNT,
- 0, /* don't take the loop overhead out */
- 0 /* no calling overhead */
- );
-
- printf( "\n\nXXX ADD BLOCKING AND PREEMPTING TIME TESTS\n\n" );
-
-
- printf( "*** END OF TMITRON01 -- ITRON TIMING TEST ***\n" );
- rtems_test_exit( 0 );
-}
diff --git a/c/src/tests/tmitrontests/tmitronsem01/system.h b/c/src/tests/tmitrontests/tmitronsem01/system.h
deleted file mode 100644
index 1b8d101a6c..0000000000
--- a/c/src/tests/tmitrontests/tmitronsem01/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 <itron.h>
-#include <assert.h>
-
-/* functions */
-
-void ITRON_Init( void );
-
-/* configuration information */
-
-#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-
-#define CONFIGURE_MAXIMUM_ITRON_TASKS 1
-#define CONFIGURE_MAXIMUM_ITRON_SEMAPHORES 100
-#define CONFIGURE_ITRON_INIT_TASK_TABLE
-
-#include <confdefs.h>
-
-/* global variables */
-
-TEST_EXTERN rtems_id Global_variable; /* example global variable */
-
-/* end of include file */
diff --git a/c/src/tests/tmitrontests/tmitronsem01/tmitronsem01.doc b/c/src/tests/tmitrontests/tmitronsem01/tmitronsem01.doc
deleted file mode 100644
index 717c02a792..0000000000
--- a/c/src/tests/tmitrontests/tmitronsem01/tmitronsem01.doc
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-# $Id$
-#
-# 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.
-#
-
-Time some basic ITRON semaphore operations