From 1931470a9d0c4f749c0f5662825c4ea048db0aac Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 11 Nov 2003 01:00:22 +0000 Subject: 2003-11-10 Ralf Corsepius * 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. --- c/src/tests/tmitrontests/.cvsignore | 14 -- c/src/tests/tmitrontests/ChangeLog | 139 -------------------- c/src/tests/tmitrontests/Makefile.am | 14 -- c/src/tests/tmitrontests/README | 6 - c/src/tests/tmitrontests/configure.ac | 38 ------ c/src/tests/tmitrontests/include/.cvsignore | 2 - c/src/tests/tmitrontests/include/Makefile.am | 8 -- c/src/tests/tmitrontests/include/timesys.h | 55 -------- c/src/tests/tmitrontests/tmitronsem01/.cvsignore | 2 - c/src/tests/tmitrontests/tmitronsem01/Makefile.am | 45 ------- c/src/tests/tmitrontests/tmitronsem01/init.c | 144 --------------------- c/src/tests/tmitrontests/tmitronsem01/system.h | 39 ------ .../tmitrontests/tmitronsem01/tmitronsem01.doc | 9 -- c/src/tests/tmitrontests/tmitrontests.am | 13 -- 14 files changed, 528 deletions(-) delete mode 100644 c/src/tests/tmitrontests/.cvsignore delete mode 100644 c/src/tests/tmitrontests/ChangeLog delete mode 100644 c/src/tests/tmitrontests/Makefile.am delete mode 100644 c/src/tests/tmitrontests/README delete mode 100644 c/src/tests/tmitrontests/configure.ac delete mode 100644 c/src/tests/tmitrontests/include/.cvsignore delete mode 100644 c/src/tests/tmitrontests/include/Makefile.am delete mode 100644 c/src/tests/tmitrontests/include/timesys.h delete mode 100644 c/src/tests/tmitrontests/tmitronsem01/.cvsignore delete mode 100644 c/src/tests/tmitrontests/tmitronsem01/Makefile.am delete mode 100644 c/src/tests/tmitrontests/tmitronsem01/init.c delete mode 100644 c/src/tests/tmitrontests/tmitronsem01/system.h delete mode 100644 c/src/tests/tmitrontests/tmitronsem01/tmitronsem01.doc delete mode 100644 c/src/tests/tmitrontests/tmitrontests.am diff --git a/c/src/tests/tmitrontests/.cvsignore b/c/src/tests/tmitrontests/.cvsignore deleted file mode 100644 index bfdfd995be..0000000000 --- a/c/src/tests/tmitrontests/.cvsignore +++ /dev/null @@ -1,14 +0,0 @@ -aclocal.m4 -autom4te*.cache -config.cache -config.guess -config.log -config.status -config.sub -configure -depcomp -install-sh -Makefile -Makefile.in -missing -mkinstalldirs diff --git a/c/src/tests/tmitrontests/ChangeLog b/c/src/tests/tmitrontests/ChangeLog deleted file mode 100644 index b54eea672a..0000000000 --- a/c/src/tests/tmitrontests/ChangeLog +++ /dev/null @@ -1,139 +0,0 @@ -2003-11-10 Ralf Corsepius - - * 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. - -2003-10-22 Ralf Corsepius - - * configure.ac: Remove RTEMS_CANONICAL_HOST. - -2003-10-02 Ralf Corsepius - - * configure.ac:Remove RTEMS_CHECK_CPU. - -2003-09-04 Joel Sherrill - - * include/timesys.h, tmitronsem01/init.c, tmitronsem01/system.h, - tmitronsem01/tmitronsem01.doc: URL for license changed. - -2003-08-18 Ralf Corsepius - - * Makefile.am: Reflect having moved aclocal/. - -2003-08-16 Ralf Corsepius - - * Makefile.am: Reflect having moved automake/. - * include/Makefile.am: Reflect having moved automake/. - * tmitronsem01/Makefile.am: Reflect having moved automake/. - -2003-08-11 Ralf Corsepius - - * configure.ac: Use rtems-bugs@rtems.com as bug report email address. - -2003-05-27 Ralf Corsepius - - * configure.ac: Remove CC_CFLAGS_DEBUG_V. - CC_CFLAGS_DEFAULT (obsolete). - -2003-05-27 Ralf Corsepius - - * configure.ac: Remove CC_CFLAGS_PROFILE_V. - Remove CC_LDFLAGS_PROFILE_V. - -2003-03-06 Ralf Corsepius - - * configure.ac: Remove AC_CONFIG_AUX_DIR. - -2003-02-11 Ralf Corsepius - - * configure.ac: AM_INIT_AUTOMAKE([1.7.2]). - -2003-02-11 Ralf Corsepius - - * configure.ac: AC_PREREQ(2.57). - -2002-10-21 Ralf Corsepius - - * .cvsignore: Reformat. - Add autom4te*cache. - Remove autom4te.cache. - -2002-08-11 Ralf Corsepius - - * tmitronsem01/Makefile.am: Use .$(OBJEXT) instead of .o. - -2002-08-01 Joel Sherrill - - * Per PR47 add support for buffered test output. This involved - adding defines to redirect output to a buffer and dump it when - full, at "test pause", and at exit. To avoid problems when redefining - exit(), all tests were modified to call rtems_test_exit(). - Some tests, notable psxtests, had to be modified to include - the standard test macro .h file (pmacros.h or tmacros.h) to - enable this support. - * tmitronsem01/init.c: Modified. - -2002-04-14 Ralf Corsepius - - * configure.ac: Remove ENABLE_GCC28. - -2002-03-27 Ralf Corsepius - - * configure.ac: - AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS). - AM_INIT_AUTOMAKE([no-define foreign 1.6]). - * include/Makefile.am: Remove AUTOMAKE_OPTIONS. - * Makefile.am: Remove AUTOMAKE_OPTIONS. - * tmitronsem01/Makefile.am: Remove AUTOMAKE_OPTIONS. - -2001-10-11 Ralf Corsepius - - * .cvsignore: Add autom4te.cache for autoconf > 2.52. - * configure.in: Remove. - * configure.ac: New file, generated from configure.in by autoupdate. - -2001-09-22 Ralf Corsepius - - * tmitrontests.am: Use TMPINSTALL_FILES = to make automake-1.5 happy. - -2001-09-19 Ralf Corsepius - - * tmitronsem01/Makefile.am: include leaf.am instead of leaf.cfg. - -2001-05-10 Ralf Corsepius - - * configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]). - -2000-11-09 Ralf Corsepius - - * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. - -2000-11-02 Ralf Corsepius - - * Makefile.am: Switch to ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal. - -2000-10-27 Ralf Corsepius - - * Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros. - Switch to GNU canonicalization. - * tmitrontests.am: Remove DEFS. - -2000-09-04 Ralf Corsepius - - * tmitronsem01/Makefile.am: Include compile.am - -2000-08-10 Joel Sherrill - - * ChangeLog: New file. diff --git a/c/src/tests/tmitrontests/Makefile.am b/c/src/tests/tmitrontests/Makefile.am deleted file mode 100644 index 52ca1069bf..0000000000 --- a/c/src/tests/tmitrontests/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -## -## $Id$ -## - -ACLOCAL_AMFLAGS = -I ../aclocal - -ITRON_DIRS = include tmitronsem01 - -SUBDIRS = $(ITRON_DIRS) - -EXTRA_DIST = tmitrontests.am - -include $(top_srcdir)/../automake/subdirs.am -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/tmitrontests/README b/c/src/tests/tmitrontests/README deleted file mode 100644 index 65c5d4165d..0000000000 --- a/c/src/tests/tmitrontests/README +++ /dev/null @@ -1,6 +0,0 @@ -# -# $Id$ -# - -This directory contains the functionality tests for the ITRON 3.0 API -implementation. diff --git a/c/src/tests/tmitrontests/configure.ac b/c/src/tests/tmitrontests/configure.ac deleted file mode 100644 index 4c324d4b33..0000000000 --- a/c/src/tests/tmitrontests/configure.ac +++ /dev/null @@ -1,38 +0,0 @@ -## Process this file with autoconf to produce a configure script. -## -## $Id$ - -AC_PREREQ(2.57) -AC_INIT([rtems-c-src-tests-tmitrontests],[_RTEMS_VERSION],[rtems-bugs@rtems.com]) -AC_CONFIG_SRCDIR([tmitronsem01]) -RTEMS_TOP(../../../..) - -RTEMS_CANONICAL_TARGET_CPU - -AM_INIT_AUTOMAKE([no-define foreign 1.7.2]) -AM_MAINTAINER_MODE - -RTEMS_ENABLE_BARE - -RTEMS_ENV_RTEMSBSP - -RTEMS_PROJECT_ROOT - -RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]) - -RTEMS_CANONICALIZE_TOOLS - -RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) - -AC_SUBST(BARE_CPU_CFLAGS) -AC_SUBST(BARE_CPU_MODEL) - -OPERATION_COUNT=${OPERATION_COUNT-100} -AC_SUBST(OPERATION_COUNT) - -# Explicitly list all Makefiles here -AC_CONFIG_FILES([Makefile -include/Makefile -tmitronsem01/Makefile -]) -AC_OUTPUT diff --git a/c/src/tests/tmitrontests/include/.cvsignore b/c/src/tests/tmitrontests/include/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/tmitrontests/include/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/tmitrontests/include/Makefile.am b/c/src/tests/tmitrontests/include/Makefile.am deleted file mode 100644 index 536b382fc2..0000000000 --- a/c/src/tests/tmitrontests/include/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -## -## $Id$ -## - - -noinst_HEADERS = timesys.h - -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/tmitrontests/include/timesys.h b/c/src/tests/tmitrontests/include/timesys.h deleted file mode 100644 index c26e447e11..0000000000 --- a/c/src/tests/tmitrontests/include/timesys.h +++ /dev/null @@ -1,55 +0,0 @@ -/* timesys.h - * - * This header file contains the global variables for the Time - * suite. - * - * 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 - -/* - * How many times a particular operation is performed while timed. - */ - -#ifndef OPERATION_COUNT -#define OPERATION_COUNT 100 -#endif - -/* functions */ - -#define put_time( _message, _total_time, \ - _iterations, _loop_overhead, _overhead ) \ - printf( \ - "%s %d\n", \ - (_message), \ - (((_total_time) - (_loop_overhead)) / (_iterations)) - (_overhead) \ - ) - -#if defined(STACK_CHECKER_ON) || defined(RTEMS_DEBUG) -#define Print_Warning() \ - do { \ - puts( \ - "\n" \ - "THE TIMES REPORTED BY THIS TEST INCLUDE DEBUG CODE!\n" \ - "\n" \ - ); \ - } while (0) - -#else -#define Print_Warning() -#endif - -/* variables */ - -TEST_EXTERN volatile unsigned32 end_time; /* ending time variable */ -TEST_EXTERN volatile unsigned32 overhead; /* loop overhead variable */ - -/* end of include file */ 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 -#include - -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 -#include -#include - -/* 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 - -/* 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 diff --git a/c/src/tests/tmitrontests/tmitrontests.am b/c/src/tests/tmitrontests/tmitrontests.am deleted file mode 100644 index c17e0fac5f..0000000000 --- a/c/src/tests/tmitrontests/tmitrontests.am +++ /dev/null @@ -1,13 +0,0 @@ -## $Id$ - -project_bspdir=$(PROJECT_ROOT)/@RTEMS_BSP@ - -$(project_bspdir)/tests: - @$(mkinstalldirs) $@ - -$(project_bspdir)/tests/$(TEST)$(LIB_VARIANT).exe: $(PGM) - $(INSTALL_PROGRAM) $< $@ - -TMPINSTALL_FILES = \ -$(project_bspdir)/tests \ -$(project_bspdir)/tests/$(TEST)$(LIB_VARIANT).exe -- cgit v1.2.3