2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>

* base_sp/Makefile.am, hello/Makefile.am, iostream/Makefile.am,
	loopback/Makefile.am, nsecs/Makefile.am,
	pppd/Makefile.am, ticker/Makefile.am, ticker/system.h,
	unlimited/Makefile.am: Add optional managers to Makefiles. Clean up
	test cases so last output line follows END OF pattern. Make sure test
	case all run. All tests appeared ok on sis.
	* nsecs/init.c: Commit hack so test will compile when POSIX is
	disabled.  Remove hack when clock_gettime() is present even when
	--disable-posix.
This commit is contained in:
Joel Sherrill
2007-05-11 19:45:50 +00:00
parent dc172333df
commit dd61160701
11 changed files with 27 additions and 18 deletions
+12
View File
@@ -1,3 +1,15 @@
2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* base_sp/Makefile.am, hello/Makefile.am, iostream/Makefile.am,
loopback/Makefile.am, nsecs/Makefile.am,
pppd/Makefile.am, ticker/Makefile.am, ticker/system.h,
unlimited/Makefile.am: Add optional managers to Makefiles. Clean up
test cases so last output line follows END OF pattern. Make sure test
case all run. All tests appeared ok on sis.
* nsecs/init.c: Commit hack so test will compile when POSIX is
disabled. Remove hack when clock_gettime() is present even when
--disable-posix.
2007-05-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* ticker/Makefile.am, ticker/init.c, ticker/system.h, ticker/tasks.c:
+1 -1
View File
@@ -2,7 +2,7 @@
## $Id$
##
MANAGERS = io
MANAGERS = io semaphore
rtems_tests_PROGRAMS = base_sp.exe
base_sp_exe_SOURCES = init.c apptask.c system.h
+1 -1
View File
@@ -2,7 +2,7 @@
## $Id$
##
MANAGERS = io
MANAGERS = io semaphore
rtems_tests_PROGRAMS = hello.exe
hello_exe_SOURCES = init.c system.h
+1 -1
View File
@@ -2,7 +2,7 @@
## $Id$
##
MANAGERS = io
MANAGERS = all
rtems_tests_PROGRAMS = iostream.exe
iostream_exe_SOURCES = init.cc system.h
+1 -1
View File
@@ -2,7 +2,7 @@
## $Id$
##
MANAGERS = io event
MANAGERS = all
rtems_tests_PROGRAMS = loopback.exe
loopback_exe_SOURCES = init.c
+2
View File
@@ -2,6 +2,8 @@
## $Id$
##
MANAGERS = all
rtems_tests_PROGRAMS = nsecs.exe
nsecs_exe_SOURCES = init.c
+5 -7
View File
@@ -69,21 +69,19 @@ rtems_task Init(
for (index=0 ; index <10 ; index++ ) {
struct timespec start, stop;
struct timespec diff;
#if 0
clock_gettime( CLOCK_REALTIME, &start );
clock_gettime( CLOCK_REALTIME, &stop );
#else
_TOD_Get( &start );
_TOD_Get( &stop );
#endif
subtract_em( &start, &stop, &diff );
#if 0
printf( "%d:%d %d:%d ",
start.tv_sec, start.tv_nsec,
stop.tv_sec, stop.tv_nsec,
);
#else
printf( "Start: %s:%d\nStop : %s:%d",
my_ctime(start.tv_sec), start.tv_nsec,
my_ctime(stop.tv_sec), stop.tv_nsec
);
#endif
printf( " --> %d:%d\n", diff.tv_sec, diff.tv_nsec );
}
+1 -1
View File
@@ -2,7 +2,7 @@
## $Id$
##
MANAGERS = io event semaphore
MANAGERS = all
rtems_tests_PROGRAMS = pppd.exe
pppd_exe_SOURCES = init.c pppdapp.c netconfig.h system.h
+1 -1
View File
@@ -2,7 +2,7 @@
## $Id$
##
MANAGERS = io clock
MANAGERS = all
rtems_tests_PROGRAMS = ticker.exe
ticker_exe_SOURCES = init.c tasks.c system.h
+1 -4
View File
@@ -41,11 +41,8 @@ extern rtems_name Task_name[ 4 ]; /* array of task names */
#include <bsp.h> /* for device driver prototypes */
#if defined(CONFIGURE_INIT)
int atexit(void (*function)(void)){}
#endif
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 4
+1 -1
View File
@@ -2,7 +2,7 @@
## $Id$
##
MANAGERS = io event
MANAGERS = io event semaphore
rtems_tests_PROGRAMS = unlimited.exe
unlimited_exe_SOURCES = init.c test1.c test2.c test3.c system.h