From 62812daba81dfec31cd3c49eb109121eb3d63e38 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 17 Jun 2010 16:03:51 +0000 Subject: Remove (Abandoned) --- testsuites/tmitrontests/tmitronsem01/.cvsignore | 2 - testsuites/tmitrontests/tmitronsem01/Makefile.am | 30 ----- testsuites/tmitrontests/tmitronsem01/init.c | 144 --------------------- testsuites/tmitrontests/tmitronsem01/system.h | 38 ------ .../tmitrontests/tmitronsem01/tmitronsem01.doc | 9 -- 5 files changed, 223 deletions(-) delete mode 100644 testsuites/tmitrontests/tmitronsem01/.cvsignore delete mode 100644 testsuites/tmitrontests/tmitronsem01/Makefile.am delete mode 100644 testsuites/tmitrontests/tmitronsem01/init.c delete mode 100644 testsuites/tmitrontests/tmitronsem01/system.h delete mode 100644 testsuites/tmitrontests/tmitronsem01/tmitronsem01.doc (limited to 'testsuites/tmitrontests/tmitronsem01') diff --git a/testsuites/tmitrontests/tmitronsem01/.cvsignore b/testsuites/tmitrontests/tmitronsem01/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/tmitrontests/tmitronsem01/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/tmitrontests/tmitronsem01/Makefile.am b/testsuites/tmitrontests/tmitronsem01/Makefile.am deleted file mode 100644 index 6ed227ee8a..0000000000 --- a/testsuites/tmitrontests/tmitronsem01/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = tmitronsem01 -tmitronsem01_SOURCES = init.c system.h \ - ../../support/src/tmtests_empty_function.c - -dist_rtems_tests_DATA = tmitronsem01.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -tmitronsem01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -OPERATION_COUNT = @OPERATION_COUNT@ -AM_CPPFLAGS += -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT) -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(tmitronsem01_OBJECTS) $(tmitronsem01_LDADD) -LINK_LIBS = $(tmitronsem01_LDLIBS) - -tmitronsem01$(EXEEXT): $(tmitronsem01_OBJECTS) $(tmitronsem01_DEPENDENCIES) - @rm -f tmitronsem01$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/tmitrontests/tmitronsem01/init.c b/testsuites/tmitrontests/tmitronsem01/init.c deleted file mode 100644 index 81bdf5a0fc..0000000000 --- a/testsuites/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 CONFIGURE_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 - */ - - benchmark_timer_initialize(); - (void) cre_sem( 1, &pk_csem ); - end_time = benchmark_timer_read(); - put_time( - "cre_sem", - end_time, - 1, - 0, /* no loop overhead to take out */ - 0 /* no calling overhead */ - ); - - /* - * time one invocation of del_sem - */ - - benchmark_timer_initialize(); - (void) del_sem( 1 ); - end_time = benchmark_timer_read(); - 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) - */ - - benchmark_timer_initialize(); - for ( index = 1 ; index<=OPERATION_COUNT ; index++ ) - (void) preq_sem( 1 ); - end_time = benchmark_timer_read(); - 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) - */ - - benchmark_timer_initialize(); - for ( index = 1 ; index<=OPERATION_COUNT ; index++ ) - (void) preq_sem( 1 ); - end_time = benchmark_timer_read(); - 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) - */ - - benchmark_timer_initialize(); - for ( index = 1 ; index<=OPERATION_COUNT ; index++ ) - (void) sig_sem( 1 ); - end_time = benchmark_timer_read(); - 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 - */ - - benchmark_timer_initialize(); - for ( index = 1 ; index<=OPERATION_COUNT ; index++ ) - (void) ref_sem( 1, &pk_rsem ); - end_time = benchmark_timer_read(); - 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/testsuites/tmitrontests/tmitronsem01/system.h b/testsuites/tmitrontests/tmitronsem01/system.h deleted file mode 100644 index a3f6f8c37a..0000000000 --- a/testsuites/tmitrontests/tmitronsem01/system.h +++ /dev/null @@ -1,38 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * 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 -#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/testsuites/tmitrontests/tmitronsem01/tmitronsem01.doc b/testsuites/tmitrontests/tmitronsem01/tmitronsem01.doc deleted file mode 100644 index 717c02a792..0000000000 --- a/testsuites/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 -- cgit v1.2.3