2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* include/.cvsignore: Remove.
	* include/buffer_test_io.h: Remove.
	* include/tmacros.h: Remove.
	* .cvsignore: Remove.
	* ChangeLog: Remove.
	* Makefile.am: Remove.
	* configure.ac: Remove.
This commit is contained in:
Ralf Corsepius
2003-11-11 00:51:14 +00:00
parent 3ee1550d3c
commit 82b3b0f220
6 changed files with 0 additions and 532 deletions

View File

@@ -1,123 +0,0 @@
2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/.cvsignore: Remove.
* include/buffer_test_io.h: Remove.
* include/tmacros.h: Remove.
* .cvsignore: Remove.
* ChangeLog: Remove.
* Makefile.am: Remove.
* configure.ac: Remove.
2003-09-04 Joel Sherrill <joel@OARcorp.com>
* include/tmacros.h: URL for license changed.
2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reflect having moved aclocal/.
2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reflect having moved automake/.
2003-08-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use rtems-bugs@rtems.com as bug report email address.
2003-03-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove AC_CONFIG_AUX_DIR.
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AM_INIT_AUTOMAKE([1.7.2]).
2003-02-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AC_PREREQ(2.57).
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat.
Add autom4te*cache.
Remove autom4te.cache.
2002-08-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Remove.
* Makefile.am: Merge in former include/Makefile.am.
* configure.ac: Reflect changes above.
Take out unnecessary autoconf macros.
2002-08-01 Joel Sherrill <joel@OARcorp.com>
* 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.
* include/buffer_test_io.h: New file.
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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.
2001-11-07 Joel Sherrill <joel@OARcorp.com>
Tracked as PR72 but related to the object id problem (PR36)
reported by Todor.Todorov@barco.com.
but discovered independently.
* include/tmacros.h: Added fatal_directive_check_status_only().
2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Add autom4te.cache for autoconf > 2.52.
* configure.in: Remove.
* configure.ac: New file, generated from configure.in by autoupdate.
2001-08-16 Joel Sherrill <joel@OARcorp.com>
* include/tmacros.h: Attempt to print errno as further information.
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]).
2001-01-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Remove stubdr, wrapup, AC_INIT(include).
* Makefile.am: Remove stubdr, wrapup.
* stubdr/Makefile.am, stubdr/open.c, stubdr/close.c, stubdr/init.c,
stubdr/stubdrv.h, stubdr/cntrl.c, stubdr/.cvsignore, stubdr/read.c,
stubdr/write.c, wrapup/Makefile.am, wrapup/.cvsignore, stubdr/,
wrapup/: Remove.
2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS.
2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* stubdr/Makefile.am: Replace leaf.cfg w/ automake/lib.am.
2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Switch to ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal.
2000-10-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: ACLOCAL_AMFLAGS= -I $(RTEMS_TOPdir)/macros.
Switch to GNU canonicalization.
2000-09-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* stubdr/Makefile.am, wrapup/Makefile.am: Include compile.am
2000-08-10 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: New file.

View File

@@ -1,25 +0,0 @@
##
## $Id$
##
ACLOCAL_AMFLAGS = -I ../aclocal
project_bspdir = $(PROJECT_ROOT)/@RTEMS_BSP@
noinst_HEADERS = include/tmacros.h include/buffer_test_io.h
TMPINSTALLFILES = $(project_bspdir)/lib/include \
$(project_bspdir)/lib/include/tmacros.h \
$(project_bspdir)/lib/include/buffer_test_io.h
$(project_bspdir)/lib/include:
$(mkinstalldirs) $@
$(project_bspdir)/lib/include/%.h: include/%.h
$(INSTALL_DATA) $< $@
CLEANFILES = $(project_bspdir)/lib/include/tmacros.h \
$(project_bspdir)/lib/include/buffer_test_io.h
all-local: $(TMPINSTALLFILES)
include $(top_srcdir)/../automake/local.am

View File

@@ -1,22 +0,0 @@
## Process this file with autoconf to produce a configure script.
##
## $Id$
AC_PREREQ(2.57)
AC_INIT([rtems-c-src-tests-support],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
AC_CONFIG_SRCDIR([include])
RTEMS_TOP(../../../..)
RTEMS_CANONICAL_TARGET_CPU
AM_INIT_AUTOMAKE([no-define foreign 1.7.2])
AM_MAINTAINER_MODE
RTEMS_ENV_RTEMSBSP
RTEMS_PROJECT_ROOT
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile
])
AC_OUTPUT

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,117 +0,0 @@
/*
* Support for running the test output through a buffer
*
* $Id$
*/
#ifndef __BUFFER_TEST_IO_h
#define __BUFFER_TEST_IO_h
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
/*
* Uncomment this to get buffered test output. When commented out,
* test output behaves as it always has and is printed ASAP.
*/
/* #define TESTS_BUFFER_OUTPUT */
#if !defined(TESTS_BUFFER_OUTPUT)
#define rtems_test_exit(_s) \
do { \
exit(_s); \
} while (0)
#define FLUSH_OUTPUT() \
do { \
fflush(stdout); \
} while (0)
#else /* buffer test output */
#define _TEST_OUTPUT_BUFFER_SIZE 2048
extern char _test_output_buffer[_TEST_OUTPUT_BUFFER_SIZE];
void _test_output_append(char *);
void _test_output_flush(void);
#define rtems_test_exit(_s) \
do { \
_test_output_flush(); \
exit(_s); \
} while (0)
#undef printf
#define printf(...) \
do { \
char _buffer[128]; \
sprintf( _buffer, __VA_ARGS__); \
_test_output_append( _buffer ); \
} while (0)
#undef puts
#define puts(_string) \
do { \
char _buffer[128]; \
sprintf( _buffer, "%s\n", _string ); \
_test_output_append( _buffer ); \
} while (0)
#undef putchar
#define putchar(_c) \
do { \
char _buffer[2]; \
_buffer[0] = _c; \
_buffer[1] = '\0'; \
_test_output_append( _buffer ); \
} while (0)
/* we write to stderr when there is a pause() */
#define FLUSH_OUTPUT() _test_output_flush()
#if defined(TEST_INIT) || defined(CONFIGURE_INIT)
char _test_output_buffer[_TEST_OUTPUT_BUFFER_SIZE];
int _test_output_buffer_index = 0;
void _test_output_append(char *_buffer)
{
char *p;
for ( p=_buffer ; *p ; p++ ) {
_test_output_buffer[_test_output_buffer_index++] = *p;
_test_output_buffer[_test_output_buffer_index] = '\0';
#if 0
if ( *p == '\n' ) {
fprintf( stderr, "BUFFER -- %s", _test_output_buffer );
_test_output_buffer_index = 0;
_test_output_buffer[0] = '\0';
}
#endif
if ( _test_output_buffer_index >= (_TEST_OUTPUT_BUFFER_SIZE - 80) )
_test_output_flush();
}
}
#include <termios.h>
#include <unistd.h>
void _test_output_flush(void)
{
fprintf( stderr, "%s", _test_output_buffer );
_test_output_buffer_index = 0;
tcdrain( 2 );
}
#endif /* TEST_INIT */
#endif /* TESTS_BUFFER_OUTPUT */
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -1,243 +0,0 @@
/* tmacros.h
*
* This include file contains macros which are useful in the RTEMS
* test suites.
*
* 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$
*/
#ifndef __TMACROS_h
#define __TMACROS_h
#ifdef __cplusplus
extern "C" {
#endif
#include <bsp.h> /* includes <rtems.h> */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <rtems/error.h>
#define FOREVER 1 /* infinite loop */
#ifdef TEST_INIT
#define TEST_EXTERN
#define CONFIGURE_INIT
#else
#define TEST_EXTERN extern
#endif
#include <buffer_test_io.h>
/*
* Check that that the dispatch disable level is proper for the
* mode/state of the test. Normally it should be 0 when in task space.
*/
#define check_dispatch_disable_level( _expect ) \
do { \
extern volatile rtems_unsigned32 _Thread_Dispatch_disable_level; \
if ( (_expect) != -1 && _Thread_Dispatch_disable_level != (_expect) ) { \
printf( "\n_Thread_Dispatch_disable_level is (%d) not %d\n", \
_Thread_Dispatch_disable_level, (_expect) ); \
FLUSH_OUTPUT(); \
rtems_test_exit( 1 ); \
} \
} while ( 0 )
/*
* These macros properly report errors within the Classic API
*/
#define directive_failed( _dirstat, _failmsg ) \
fatal_directive_status( _dirstat, RTEMS_SUCCESSFUL, _failmsg )
#define directive_failed_with_level( _dirstat, _failmsg, _level ) \
fatal_directive_status_with_level( \
_dirstat, RTEMS_SUCCESSFUL, _failmsg, _level )
#define fatal_directive_status( _stat, _desired, _msg ) \
fatal_directive_status_with_level( _stat, _desired, _msg, 0 )
#define fatal_directive_check_status_only( _stat, _desired, _msg ) \
do { \
if ( (_stat) != (_desired) ) { \
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
(_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
FLUSH_OUTPUT(); \
rtems_test_exit( _stat ); \
} \
} while ( 0 )
#define fatal_directive_status_with_level( _stat, _desired, _msg, _level ) \
do { \
check_dispatch_disable_level( _level ); \
fatal_directive_check_status_only( _stat, _desired, _msg ); \
} while ( 0 )
/*
* These macros properly report errors from the POSIX API
*/
#define posix_service_failed( _dirstat, _failmsg ) \
fatal_posix_service_status( _dirstat, RTEMS_SUCCESSFUL, _failmsg )
#define posix_service_failed_with_level( _dirstat, _failmsg, _level ) \
fatal_posix_service_status_with_level( \
_dirstat, RTEMS_SUCCESSFUL, _failmsg, _level )
#define fatal_posix_service_status( _stat, _desired, _msg ) \
fatal_posix_service_status_with_level( _stat, _desired, _msg, 0 )
#define fatal_posix_service_status_with_level( _stat, _desired, _msg, _level ) \
do { \
check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
printf( "\n%s FAILED -- expected (%d - %s) got (%d - %s)\n", \
(_msg), _desired, strerror(_desired), _stat, strerror(_stat) ); \
printf( "\n FAILED -- errno (%d - %s)\n", \
errno, strerror(errno) ); \
FLUSH_OUTPUT(); \
rtems_test_exit( _stat ); \
} \
} while ( 0 )
/*
* Generic integer version of the error reporting
*/
#define int_service_failed( _dirstat, _failmsg ) \
fatal_int_service_status( _dirstat, RTEMS_SUCCESSFUL, _failmsg )
#define int_service_failed_with_level( _dirstat, _failmsg, _level ) \
fatal_int_service_status_with_level( \
_dirstat, RTEMS_SUCCESSFUL, _failmsg, _level )
#define fatal_int_service_status( _stat, _desired, _msg ) \
fatal_int_service_status_with_level( _stat, _desired, _msg, 0 )
#define fatal_int_service_status_with_level( _stat, _desired, _msg, _level ) \
do { \
check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
(_msg), (_desired), (_stat) ); \
FLUSH_OUTPUT(); \
rtems_test_exit( _stat ); \
} \
} while ( 0 )
/*
* Print the time
*/
#define sprint_time(_str, _s1, _tb, _s2) \
do { \
sprintf( (str), "%s%02d:%02d:%02d %02d/%02d/%04d%s", \
_s1, (_tb)->hour, (_tb)->minute, (_tb)->second, \
(_tb)->month, (_tb)->day, (_tb)->year, _s2 ); \
} while ( 0 )
#define print_time(_s1, _tb, _s2) \
do { \
printf( "%s%02d:%02d:%02d %02d/%02d/%04d%s", \
_s1, (_tb)->hour, (_tb)->minute, (_tb)->second, \
(_tb)->month, (_tb)->day, (_tb)->year, _s2 ); \
} while ( 0 )
#define put_dot( _c ) \
do { \
putchar( _c ); \
FLUSH_OUTPUT(); \
} while ( 0 )
#define new_line puts( "" )
#define puts_nocr printf
#ifdef RTEMS_TEST_NO_PAUSE
#define rtems_test_pause() \
do { \
printf( "<pause>\n" ); \
FLUSH_OUTPUT(); \
} while ( 0 )
#define rtems_test_pause_and_screen_number( _screen ) \
do { \
printf( "<pause - screen %d>\n", (_screen) ); \
FLUSH_OUTPUT(); \
} while ( 0 )
#else
#define rtems_test_pause() \
do { \
char buffer[ 80 ]; \
printf( "<pause>" ); \
FLUSH_OUTPUT(); \
gets( buffer ); \
puts( "" ); \
} while ( 0 )
#define rtems_test_pause_and_screen_number( _screen ) \
do { \
char buffer[ 80 ]; \
printf( "<pause - screen %d>", (_screen) ); \
FLUSH_OUTPUT(); \
gets( buffer ); \
puts( "" ); \
} while ( 0 )
#endif
#define put_name( name, crlf ) \
{ rtems_unsigned32 c0, c1, c2, c3; \
c0 = (name >> 24) & 0xff; \
c1 = (name >> 16) & 0xff; \
c2 = (name >> 8) & 0xff; \
c3 = name & 0xff; \
putchar( (char)c0 ); \
if ( c1 ) putchar( (char)c1 ); \
if ( c2 ) putchar( (char)c2 ); \
if ( c3 ) putchar( (char)c3 ); \
if ( crlf ) \
putchar( '\n' ); \
}
#ifndef build_time
#define build_time( TB, MON, DAY, YR, HR, MIN, SEC, TK ) \
{ (TB)->year = YR; \
(TB)->month = MON; \
(TB)->day = DAY; \
(TB)->hour = HR; \
(TB)->minute = MIN; \
(TB)->second = SEC; \
(TB)->ticks = TK; }
#endif
#define task_number( tid ) \
( rtems_get_index( tid ) - \
rtems_configuration_get_rtems_api_configuration()->number_of_initialization_tasks )
static inline rtems_unsigned32 get_ticks_per_second( void )
{
rtems_interval ticks_per_second;
(void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_second );
return ticks_per_second;
}
#define TICKS_PER_SECOND get_ticks_per_second()
#ifdef __cplusplus
}
#endif
#endif