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/itrontests/.cvsignore | 14 - testsuites/itrontests/ChangeLog | 437 ---------------- testsuites/itrontests/Makefile.am | 11 - testsuites/itrontests/README | 6 - testsuites/itrontests/configure.ac | 39 -- testsuites/itrontests/itronhello/.cvsignore | 2 - testsuites/itrontests/itronhello/Makefile.am | 28 - testsuites/itrontests/itronhello/init.c | 33 -- testsuites/itrontests/itronhello/itronhello.doc | 23 - testsuites/itrontests/itronhello/itronhello.scn | 3 - testsuites/itrontests/itronhello/system.h | 41 -- testsuites/itrontests/itronmbf01/.cvsignore | 2 - testsuites/itrontests/itronmbf01/Makefile.am | 28 - testsuites/itrontests/itronmbf01/init.c | 364 ------------- testsuites/itrontests/itronmbf01/itronmbf01.doc | 12 - testsuites/itrontests/itronmbf01/itronmbf01.scn | 71 --- testsuites/itrontests/itronmbf01/system.h | 40 -- testsuites/itrontests/itronmbox01/.cvsignore | 2 - testsuites/itrontests/itronmbox01/Makefile.am | 28 - testsuites/itrontests/itronmbox01/init.c | 34 -- testsuites/itrontests/itronmbox01/itronmbox01.doc | 0 testsuites/itrontests/itronmbox01/itronmbox01.scn | 3 - testsuites/itrontests/itronmbox01/system.h | 39 -- testsuites/itrontests/itronsem01/.cvsignore | 2 - testsuites/itrontests/itronsem01/Makefile.am | 28 - testsuites/itrontests/itronsem01/init.c | 332 ------------ testsuites/itrontests/itronsem01/itronsem01.doc | 12 - testsuites/itrontests/itronsem01/itronsem01.scn | 61 --- testsuites/itrontests/itronsem01/system.h | 39 -- testsuites/itrontests/itrontask01/.cvsignore | 2 - testsuites/itrontests/itrontask01/Makefile.am | 28 - testsuites/itrontests/itrontask01/init.c | 71 --- testsuites/itrontests/itrontask01/itrontask01.doc | 61 --- testsuites/itrontests/itrontask01/itrontask01.scn | 18 - testsuites/itrontests/itrontask01/system.h | 39 -- testsuites/itrontests/itrontask01/task1.c | 54 -- testsuites/itrontests/itrontask02/.cvsignore | 2 - testsuites/itrontests/itrontask02/Makefile.am | 28 - testsuites/itrontests/itrontask02/dormant.c | 42 -- testsuites/itrontests/itrontask02/init.c | 579 --------------------- testsuites/itrontests/itrontask02/itrontask02.doc | 34 -- testsuites/itrontests/itrontask02/itrontask02.scn | 80 --- testsuites/itrontests/itrontask02/system.h | 44 -- testsuites/itrontests/itrontask03/.cvsignore | 2 - testsuites/itrontests/itrontask03/Makefile.am | 28 - testsuites/itrontests/itrontask03/init.c | 137 ----- testsuites/itrontests/itrontask03/itrontask03.doc | 54 -- testsuites/itrontests/itrontask03/itrontask03.scn | 21 - testsuites/itrontests/itrontask03/preempt.c | 52 -- testsuites/itrontests/itrontask03/system.h | 49 -- testsuites/itrontests/itrontask03/task1.c | 57 -- testsuites/itrontests/itrontask03/task2.c | 31 -- testsuites/itrontests/itrontask03/task3.c | 39 -- testsuites/itrontests/itrontask04/.cvsignore | 2 - testsuites/itrontests/itrontask04/Makefile.am | 28 - testsuites/itrontests/itrontask04/init.c | 95 ---- testsuites/itrontests/itrontask04/itrontask04.doc | 49 -- testsuites/itrontests/itrontask04/itrontask04.scn | 34 -- testsuites/itrontests/itrontask04/system.h | 47 -- testsuites/itrontests/itrontask04/task1.c | 38 -- testsuites/itrontests/itrontask04/task2.c | 40 -- testsuites/itrontests/itrontask04/task3.c | 52 -- testsuites/itrontests/itrontime01/.cvsignore | 2 - testsuites/itrontests/itrontime01/Makefile.am | 28 - testsuites/itrontests/itrontime01/init.c | 60 --- testsuites/itrontests/itrontime01/itrontime01.doc | 0 testsuites/itrontests/itrontime01/itrontime01.scn | 4 - testsuites/itrontests/itrontime01/system.h | 39 -- testsuites/tmitrontests/.cvsignore | 14 - testsuites/tmitrontests/ChangeLog | 265 ---------- testsuites/tmitrontests/Makefile.am | 12 - testsuites/tmitrontests/README | 6 - testsuites/tmitrontests/configure.ac | 34 -- testsuites/tmitrontests/include/timesys.h | 55 -- 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 - 79 files changed, 4413 deletions(-) delete mode 100644 testsuites/itrontests/.cvsignore delete mode 100644 testsuites/itrontests/ChangeLog delete mode 100644 testsuites/itrontests/Makefile.am delete mode 100644 testsuites/itrontests/README delete mode 100644 testsuites/itrontests/configure.ac delete mode 100644 testsuites/itrontests/itronhello/.cvsignore delete mode 100644 testsuites/itrontests/itronhello/Makefile.am delete mode 100644 testsuites/itrontests/itronhello/init.c delete mode 100644 testsuites/itrontests/itronhello/itronhello.doc delete mode 100644 testsuites/itrontests/itronhello/itronhello.scn delete mode 100644 testsuites/itrontests/itronhello/system.h delete mode 100644 testsuites/itrontests/itronmbf01/.cvsignore delete mode 100644 testsuites/itrontests/itronmbf01/Makefile.am delete mode 100644 testsuites/itrontests/itronmbf01/init.c delete mode 100644 testsuites/itrontests/itronmbf01/itronmbf01.doc delete mode 100644 testsuites/itrontests/itronmbf01/itronmbf01.scn delete mode 100644 testsuites/itrontests/itronmbf01/system.h delete mode 100644 testsuites/itrontests/itronmbox01/.cvsignore delete mode 100644 testsuites/itrontests/itronmbox01/Makefile.am delete mode 100644 testsuites/itrontests/itronmbox01/init.c delete mode 100644 testsuites/itrontests/itronmbox01/itronmbox01.doc delete mode 100644 testsuites/itrontests/itronmbox01/itronmbox01.scn delete mode 100644 testsuites/itrontests/itronmbox01/system.h delete mode 100644 testsuites/itrontests/itronsem01/.cvsignore delete mode 100644 testsuites/itrontests/itronsem01/Makefile.am delete mode 100644 testsuites/itrontests/itronsem01/init.c delete mode 100644 testsuites/itrontests/itronsem01/itronsem01.doc delete mode 100644 testsuites/itrontests/itronsem01/itronsem01.scn delete mode 100644 testsuites/itrontests/itronsem01/system.h delete mode 100644 testsuites/itrontests/itrontask01/.cvsignore delete mode 100644 testsuites/itrontests/itrontask01/Makefile.am delete mode 100644 testsuites/itrontests/itrontask01/init.c delete mode 100644 testsuites/itrontests/itrontask01/itrontask01.doc delete mode 100644 testsuites/itrontests/itrontask01/itrontask01.scn delete mode 100644 testsuites/itrontests/itrontask01/system.h delete mode 100644 testsuites/itrontests/itrontask01/task1.c delete mode 100644 testsuites/itrontests/itrontask02/.cvsignore delete mode 100644 testsuites/itrontests/itrontask02/Makefile.am delete mode 100644 testsuites/itrontests/itrontask02/dormant.c delete mode 100644 testsuites/itrontests/itrontask02/init.c delete mode 100644 testsuites/itrontests/itrontask02/itrontask02.doc delete mode 100644 testsuites/itrontests/itrontask02/itrontask02.scn delete mode 100644 testsuites/itrontests/itrontask02/system.h delete mode 100644 testsuites/itrontests/itrontask03/.cvsignore delete mode 100644 testsuites/itrontests/itrontask03/Makefile.am delete mode 100644 testsuites/itrontests/itrontask03/init.c delete mode 100644 testsuites/itrontests/itrontask03/itrontask03.doc delete mode 100644 testsuites/itrontests/itrontask03/itrontask03.scn delete mode 100644 testsuites/itrontests/itrontask03/preempt.c delete mode 100644 testsuites/itrontests/itrontask03/system.h delete mode 100644 testsuites/itrontests/itrontask03/task1.c delete mode 100644 testsuites/itrontests/itrontask03/task2.c delete mode 100644 testsuites/itrontests/itrontask03/task3.c delete mode 100644 testsuites/itrontests/itrontask04/.cvsignore delete mode 100644 testsuites/itrontests/itrontask04/Makefile.am delete mode 100644 testsuites/itrontests/itrontask04/init.c delete mode 100644 testsuites/itrontests/itrontask04/itrontask04.doc delete mode 100644 testsuites/itrontests/itrontask04/itrontask04.scn delete mode 100644 testsuites/itrontests/itrontask04/system.h delete mode 100644 testsuites/itrontests/itrontask04/task1.c delete mode 100644 testsuites/itrontests/itrontask04/task2.c delete mode 100644 testsuites/itrontests/itrontask04/task3.c delete mode 100644 testsuites/itrontests/itrontime01/.cvsignore delete mode 100644 testsuites/itrontests/itrontime01/Makefile.am delete mode 100644 testsuites/itrontests/itrontime01/init.c delete mode 100644 testsuites/itrontests/itrontime01/itrontime01.doc delete mode 100644 testsuites/itrontests/itrontime01/itrontime01.scn delete mode 100644 testsuites/itrontests/itrontime01/system.h delete mode 100644 testsuites/tmitrontests/.cvsignore delete mode 100644 testsuites/tmitrontests/ChangeLog delete mode 100644 testsuites/tmitrontests/Makefile.am delete mode 100644 testsuites/tmitrontests/README delete mode 100644 testsuites/tmitrontests/configure.ac delete mode 100644 testsuites/tmitrontests/include/timesys.h 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 diff --git a/testsuites/itrontests/.cvsignore b/testsuites/itrontests/.cvsignore deleted file mode 100644 index bfdfd995be..0000000000 --- a/testsuites/itrontests/.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/testsuites/itrontests/ChangeLog b/testsuites/itrontests/ChangeLog deleted file mode 100644 index 669cacfe2e..0000000000 --- a/testsuites/itrontests/ChangeLog +++ /dev/null @@ -1,437 +0,0 @@ -2009-12-08 Joel Sherrill - - * itronmbf01/init.c, itronsem01/init.c, itronsem01/system.h, - itrontask02/dormant.c, itrontask02/init.c, itrontask03/init.c, - itrontask03/preempt.c: Use rtems_test_assert() consistently instead - of system assert(). rtems_test_assert() is designed to integrate into - the RTEMS test suite infrastructure. - -2009-10-30 Ralf Corsépius - - * itrontime01/init.c: Use %ld to print "time"s. - -2009-10-30 Ralf Corsépius - - * itrontime01/init.c: Use "long"s for "time"s (16bit compliance). - * itrontask04/task3.c: Add missing prototypes. - * itrontask02/system.h, itrontask03/system.h, itrontask04/system.h: - Add missing prototypes. - * itrontask02/dormant.c: Add missing prototypes. - * itrontask01/task1.c: Add missing prototypes. - * itrontask01/system.h: Add missing prototypes. - * itronsem01/init.c: Use PRId32 to print INT's. - * itronmbf01/init.c: Add missing prototypes. - -2009-10-20 Ralf Corsépius - - * configure.ac: Don't add -ansi -fasm to CFLAGS. - -2009-08-12 Joel Sherrill - - * itrontask01/task1.c, itrontask02/dormant.c, itrontask03/task1.c, - itrontask03/task2.c, itrontask03/task3.c, itrontask04/task3.c: - Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second() - in favor of new rtems_clock_get_ticks_per_second(). - -2009-08-10 Joel Sherrill - - * itrontask01/task1.c: Convert calls to legacy routine rtems_clock_get( - RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..). - -2009-04-03 Ralf Corsépius - - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: - Eliminate _exe_/.exe. - -2008-12-14 Joel Sherrill - - * itrontask04/init.c: Run all tests successfully with maxixum number of - priorities as 16 instead of 256. This was done by temporarily - modifying the score priority.h maximum. This allowed testing of all - API code to ensure that it worked properly with a reduced number of - priorities. Most modifications were to switch from hard-coded maximum - to using the API provided methods to determine maximum number of - priority levels. - -2008-05-21 Joel Sherrill - - * itronhello/system.h, itronmbox01/system.h, itrontask02/system.h, - itrontime01/system.h: Add use of - CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER. - -2008-01-31 Joel Sherrill - - * itronhello/init.c, itronmbf01/init.c, itronmbox01/init.c, - itronsem01/init.c, itrontask01/init.c, itrontask02/init.c, - itrontask03/init.c, itrontask04/init.c, itrontime01/init.c: Change - TEST_INIT to CONFIGURE_INIT. Make tmacros.h available to all POSIX - tests. Add a clock_settime case for < 1988. - -2007-05-11 Joel Sherrill - - * itronmbf01/init.c, itronmbf01/itronmbf01.scn, itrontask02/init.c, - itrontask03/itrontask03.scn, itrontask03/task1.c, - itrontask04/itrontask04.scn, itrontask04/task3.c: 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. - -2007-02-06 Joel Sherrill - - * itronmbf01/init.c: Address size_t/uint32_t typing issues in message - queue tests. - -2006-12-02 Ralf Corsépius - - * configure.ac: New BUG-REPORT address. - -2006-11-17 Joel Sherrill - - * itrontask04/init.c, itrontask04/itrontask04.scn: Cannot print with - dispatching disabled so fix test not to print while dispatching is - disabled. - -2006-10-17 Ralf Corsépius - - * configure.ac: Require autoconf-2.60. Require automake-1.10. - -2006-07-11 Ralf Corsépius - - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: Eliminate scndir, docdir. Use - rtems_testsdir instead. - -2005-11-22 Ralf Corsepius - - * configure.ac: Remove RTEMS_ENABLE_BARE, - BARE_CPU_CFLAGS, BARE_CPU_MODEL. - -2005-11-13 Ralf Corsepius - - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: - Convert to using *_PROGRAMS. - -2005-11-11 Ralf Corsepius - - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: Rework. - -2005-11-11 Ralf Corsepius - - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: Expand itrontests.am. - * itrontests.am: Remove. - -2005-11-09 Ralf Corsepius - - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: - AM_CPPFLAGS += -I..../support/include. - -2005-11-09 Ralf Corsepius - - * itrontests.am: Set project_bspdir=$(PROJECT_ROOT) - -2005-11-07 Ralf Corsepius - - * itrontests.am: Remove LIB_VARIANT. - -2005-11-07 Ralf Corsepius - - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: Remove SRC, PRINT_SRC. - -2005-11-07 Ralf Corsepius - - * Makefile.am: Cleanup. - -2005-11-07 Ralf Corsepius - - * itrontests.am: Add $(PGM): ${ARCH}/$(dirstamp). - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: - Partial conversion to automake. - -2004-11-22 Ralf Corsepius - - PR 721/tests - * itronsem01/init.c: Fix bogus assert. - -2004-09-24 Ralf Corsepius - - * configure.ac: Require automake > 1.9. - -2004-04-01 Ralf Corsepius - - * itronhello/system.h: Include instead of . - * itronmbf01/system.h: Include instead of . - * itronmbox01/system.h: Include instead of . - * itronsem01/system.h: Include instead of . - * itrontask01/system.h: Include instead of . - * itrontask02/system.h: Include instead of . - * itrontask03/system.h: Include instead of . - * itrontask04/system.h: Include instead of . - * itrontime01/system.h: Include instead of . - -2004-04-01 Ralf Corsepius - - * itronhello/system.h: Include instead of . - * itronmbf01/system.h: Include instead of . - * itronmbox01/system.h: Include instead of . - * itronsem01/system.h: Include instead of . - * itrontask01/system.h: Include instead of . - * itrontask02/system.h: Include instead of . - * itrontask03/system.h: Include instead of . - * itrontask04/system.h: Include instead of . - * itrontime01/system.h: Include instead of . - -2004-03-25 Ralf Corsepius - - * configure.ac: Add 2nd arg to RTEMS_TOP. - -2004-01-14 Ralf Corsepius - - * itronhello/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. - Add PRE/TMPINSTALL_FILES to CLEANFILES. - * itronmbf01/Makefile.am: Ditto. - * itronmbox01/Makefile.am: Ditto. - * itronsem01/Makefile.am: Ditto. - * itrontask01/Makefile.am: Ditto. - * itrontask02/Makefile.am: Ditto. - * itrontask03/Makefile.am: Ditto. - * itrontask04/Makefile.am: Ditto. - * itrontime01/Makefile.am: Ditto. - -2003-12-18 Ralf Corsepius - - * itrontests.am: Add dirstamp support. - -2003-12-17 Ralf Corsepius - - * itrontests.am: Use $(mkdir_p) instead of $(mkinstalldirs). - -2003-12-12 Ralf Corsepius - - * configure.ac: Require automake >= 1.8, autoconf >= 2.59. - -2003-12-01 Ralf Corsepius - - * itronhello/Makefile.am: Remove all-local: $(ARCH). - * itronmbf01/Makefile.am: Remove all-local: $(ARCH). - * itronmbox01/Makefile.am: Remove all-local: $(ARCH). - * itronsem01/Makefile.am: Remove all-local: $(ARCH). - * itrontask01/Makefile.am: Remove all-local: $(ARCH). - * itrontask02/Makefile.am: Remove all-local: $(ARCH). - * itrontask03/Makefile.am: Remove all-local: $(ARCH). - * itrontask04/Makefile.am: Remove all-local: $(ARCH). - * itrontime01/Makefile.am: Remove all-local: $(ARCH). - -2003-11-10 Ralf Corsepius - - * configure.ac: Reflect having moved to testsuites/. - -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 - - * itronhello/init.c, itronhello/itronhello.doc, itronhello/system.h, - itronmbf01/init.c, itronmbf01/itronmbf01.doc, itronmbf01/system.h, - itronmbox01/init.c, itronmbox01/system.h, itronsem01/init.c, - itronsem01/itronsem01.doc, itronsem01/system.h, itrontask01/init.c, - itrontask01/itrontask01.doc, itrontask01/system.h, - itrontask01/task1.c, itrontask02/dormant.c, itrontask02/init.c, - itrontask02/itrontask02.doc, itrontask02/system.h, - itrontask03/init.c, itrontask03/itrontask03.doc, - itrontask03/preempt.c, itrontask03/system.h, itrontask03/task1.c, - itrontask03/task2.c, itrontask03/task3.c, itrontask04/init.c, - itrontask04/itrontask04.doc, itrontask04/system.h, - itrontask04/task1.c, itrontask04/task2.c, itrontask04/task3.c, - itrontime01/init.c, itrontime01/system.h: 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/. - * itronhello/Makefile.am: Reflect having moved automake/. - * itronmbf01/Makefile.am: Reflect having moved automake/. - * itronmbox01/Makefile.am: Reflect having moved automake/. - * itronsem01/Makefile.am: Reflect having moved automake/. - * itrontask01/Makefile.am: Reflect having moved automake/. - * itrontask02/Makefile.am: Reflect having moved automake/. - * itrontask03/Makefile.am: Reflect having moved automake/. - * itrontask04/Makefile.am: Reflect having moved automake/. - * itrontime01/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 - - * itronhello/Makefile.am: Use .$(OBJEXT) instead of .o. - * itronmbf01/Makefile.am: Use .$(OBJEXT) instead of .o. - * itronmbox01/Makefile.am: Use .$(OBJEXT) instead of .o. - * itronsem01/Makefile.am: Use .$(OBJEXT) instead of .o. - * itrontask01/Makefile.am: Use .$(OBJEXT) instead of .o. - * itrontask02/Makefile.am: Use .$(OBJEXT) instead of .o. - * itrontask03/Makefile.am: Use .$(OBJEXT) instead of .o. - * itrontask04/Makefile.am: Use .$(OBJEXT) instead of .o. - * itrontime01/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. - * itronhello/init.c, itronmbf01/init.c, itronmbox01/init.c, - itronsem01/init.c, itrontask01/task1.c, itrontask02/init.c, - itrontask03/task1.c, itrontask04/task3.c, itrontime01/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]). - * itronhello/Makefile.am: Remove AUTOMAKE_OPTIONS. - * Makefile.am: Remove AUTOMAKE_OPTIONS. - * itronmbf01/Makefile.am: Remove AUTOMAKE_OPTIONS. - * itronmbox01/Makefile.am: Remove AUTOMAKE_OPTIONS. - * itronsem01/Makefile.am: Remove AUTOMAKE_OPTIONS. - * itrontask01/Makefile.am: Remove AUTOMAKE_OPTIONS. - * itrontask02/Makefile.am: Remove AUTOMAKE_OPTIONS. - * itrontask03/Makefile.am: Remove AUTOMAKE_OPTIONS. - * itrontask04/Makefile.am: Remove AUTOMAKE_OPTIONS. - * itrontime01/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 - - * itrontests.am: Use TMPINSTALL_FILES = to make automake-1.5 happy. - -2001-09-19 Ralf Corsepius - - * itrontask03/Makefile.am: include leaf.am instead of leaf.cfg. - * itrontask04/Makefile.am: include leaf.am instead of leaf.cfg. - * itronmbf01/Makefile.am: include leaf.am instead of leaf.cfg. - * itronsem01/Makefile.am: include leaf.am instead of leaf.cfg. - * itronhello/Makefile.am: include leaf.am instead of leaf.cfg. - * itrontime01/Makefile.am: include leaf.am instead of leaf.cfg. - * itrontask01/Makefile.am: include leaf.am instead of leaf.cfg. - * itrontask02/Makefile.am: include leaf.am instead of leaf.cfg. - * itronmbox01/Makefile.am: include leaf.am instead of leaf.cfg. - -2001-05-10 Ralf Corsepius - - * configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]). - -2001-04-20 Joel Sherrill - - * itronmbf01/itronmbf01.scn, itronmbox01/init.c, - itronsem01/itronsem01.scn, itrontime01/init.c: Various - adjustments so test output matches screens more reliably. - -2000-11-20 Joel Sherrill - - * itrontask01/system.h: Configure enough stack memory. - -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. - * itrontests.am: Remove DEFS. - -2000-09-04 Ralf Corsepius - - * itronhello/Makefile.am, itronmbf01/Makefile.am, - itronmbox01/Makefile.am, itronsem01/Makefile.am, - itrontask01/Makefile.am, itrontask02/Makefile.am, - itrontask03/Makefile.am, itrontask04/Makefile.am, - itrontime01/Makefile.am: Include compile.am - -2000-08-10 Joel Sherrill - - * ChangeLog: New file. diff --git a/testsuites/itrontests/Makefile.am b/testsuites/itrontests/Makefile.am deleted file mode 100644 index 05629b1da9..0000000000 --- a/testsuites/itrontests/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -## -## $Id$ -## - -ACLOCAL_AMFLAGS = -I ../aclocal - -SUBDIRS = itronhello itrontask01 itrontask02 itrontask03 itrontask04 \ - itronmbf01 itronmbox01 itronsem01 itrontime01 - -include $(top_srcdir)/../automake/subdirs.am -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/README b/testsuites/itrontests/README deleted file mode 100644 index 65c5d4165d..0000000000 --- a/testsuites/itrontests/README +++ /dev/null @@ -1,6 +0,0 @@ -# -# $Id$ -# - -This directory contains the functionality tests for the ITRON 3.0 API -implementation. diff --git a/testsuites/itrontests/configure.ac b/testsuites/itrontests/configure.ac deleted file mode 100644 index 4e039d8ade..0000000000 --- a/testsuites/itrontests/configure.ac +++ /dev/null @@ -1,39 +0,0 @@ -## Process this file with autoconf to produce a configure script. -## -## $Id$ - -AC_PREREQ(2.60) -AC_INIT([rtems-c-src-tests-itrontests],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) -AC_CONFIG_SRCDIR([itronhello]) -RTEMS_TOP([../..],[..]) - -RTEMS_CANONICAL_TARGET_CPU - -AM_INIT_AUTOMAKE([no-define foreign 1.10]) -AM_MAINTAINER_MODE - - -RTEMS_ENV_RTEMSBSP - -RTEMS_PROJECT_ROOT - -RTEMS_PROG_CC_FOR_TARGET - -RTEMS_CANONICALIZE_TOOLS - -RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) - - -# Explicitly list all Makefiles here -AC_CONFIG_FILES([Makefile -itronhello/Makefile -itronmbf01/Makefile -itronmbox01/Makefile -itronsem01/Makefile -itrontask01/Makefile -itrontask02/Makefile -itrontask03/Makefile -itrontask04/Makefile -itrontime01/Makefile -]) -AC_OUTPUT diff --git a/testsuites/itrontests/itronhello/.cvsignore b/testsuites/itrontests/itronhello/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itronhello/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itronhello/Makefile.am b/testsuites/itrontests/itronhello/Makefile.am deleted file mode 100644 index 9ad8162204..0000000000 --- a/testsuites/itrontests/itronhello/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itronhello -itronhello_SOURCES = init.c system.h - -dist_rtems_tests_DATA = itronhello.scn -dist_rtems_tests_DATA += itronhello.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itronhello_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itronhello_OBJECTS) $(itronhello_LDADD) -LINK_LIBS = $(itronhello_LDLIBS) - -itronhello$(EXEEXT): $(itronhello_OBJECTS) $(itronhello_DEPENDENCIES) - @rm -f itronhello$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itronhello/init.c b/testsuites/itrontests/itronhello/init.c deleted file mode 100644 index dfc7767732..0000000000 --- a/testsuites/itrontests/itronhello/init.c +++ /dev/null @@ -1,33 +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 - -void ITRON_Init( void ) -{ - printf( "\n\n*** ITRON HELLO WORLD TEST ***\n" ); - printf( "Hello World\n" ); - printf( "*** END OF ITRON HELLO WORLD TEST ***\n" ); - rtems_test_exit( 0 ); -} diff --git a/testsuites/itrontests/itronhello/itronhello.doc b/testsuites/itrontests/itronhello/itronhello.doc deleted file mode 100644 index 086906938e..0000000000 --- a/testsuites/itrontests/itronhello/itronhello.doc +++ /dev/null @@ -1,23 +0,0 @@ -# -# $Id$ -# -# 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. -# - -This file describes the directives and concepts tested by this test set. - -test set name: itronhello - -directives: - cre_tsk, sta_tsk - -concepts: - - a. Verifies the initial itron task can be created and started. - - diff --git a/testsuites/itrontests/itronhello/itronhello.scn b/testsuites/itrontests/itronhello/itronhello.scn deleted file mode 100644 index 7acacc083b..0000000000 --- a/testsuites/itrontests/itronhello/itronhello.scn +++ /dev/null @@ -1,3 +0,0 @@ -*** ITRON HELLO WORLD TEST *** -Hello World -*** END OF ITRON HELLO WORLD TEST *** diff --git a/testsuites/itrontests/itronhello/system.h b/testsuites/itrontests/itronhello/system.h deleted file mode 100644 index 0a8d447448..0000000000 --- a/testsuites/itrontests/itronhello/system.h +++ /dev/null @@ -1,41 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * COPYRIGHT (c) 1989-2008. - * 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 */ - -/* NOTICE: the clock driver is explicitly disabled */ -#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 1 - -#define CONFIGURE_ITRON_INIT_TASK_TABLE - -#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM - -#include - -/* global variables */ - -TEST_EXTERN rtems_id Global_variable; /* example global variable */ - -/* end of include file */ diff --git a/testsuites/itrontests/itronmbf01/.cvsignore b/testsuites/itrontests/itronmbf01/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itronmbf01/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itronmbf01/Makefile.am b/testsuites/itrontests/itronmbf01/Makefile.am deleted file mode 100644 index 7c784d07e7..0000000000 --- a/testsuites/itrontests/itronmbf01/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itronmbf01 -itronmbf01_SOURCES = init.c system.h - -dist_rtems_tests_DATA = itronmbf01.scn -dist_rtems_tests_DATA += itronmbf01.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itronmbf01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itronmbf01_OBJECTS) $(itronmbf01_LDADD) -LINK_LIBS = $(itronmbf01_LDLIBS) - -itronmbf01$(EXEEXT): $(itronmbf01_OBJECTS) $(itronmbf01_DEPENDENCIES) - @rm -f itronmbf01$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itronmbf01/init.c b/testsuites/itrontests/itronmbf01/init.c deleted file mode 100644 index b39841385a..0000000000 --- a/testsuites/itrontests/itronmbf01/init.c +++ /dev/null @@ -1,364 +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-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$ - */ - -#define CONFIGURE_INIT -#include "system.h" -#include - -/* - * The following is hopefully temporary. - */ - -#include - -#define put_time(_s) \ -do { \ - time_t a_time_t; \ - a_time_t = time( 0 ); \ - printf( "%s%s", _s, ctime( &a_time_t ) ); \ -} while(0) - - - -void TestCre(void); -void TestDel(void); -void TestPsnd(void); -void TestRef(void); -void TestTrcv(void); -void TestRcv(void); -void TestPrcv(void); - -void ITRON_Init( void ) -{ - printf( "\n\n*** ITRONMBF01 -- ITRON MESSAGE BUFFER TEST ***\n" ); - - TestCre(); - TestDel(); - TestPsnd(); - TestRef(); - TestRcv(); - TestRef(); - TestPrcv(); - TestTrcv(); - - printf("\n\n*** END OF ITRONMBF01 --- ITRON MESSAGE BUFFER TEST ***\n"); - rtems_test_exit(0); -} - -void TestCre(void) -{ - ER status; - T_CMBF pk_cmbf; - - /* - * Exercise cre_mbf - this code seems to exercise every path. - */ - - puts( "Init - cre_mbf - NULL pk_cmbf returns E_PAR" ); - status = cre_mbf( 1, NULL ); - rtems_test_assert( status == E_PAR ); - - puts( "Init - cre_mbf - negative values for bufsz returns E_PAR" ); - pk_cmbf.bufsz = -1; - pk_cmbf.maxmsz = 100; - pk_cmbf.mbfatr = 0; - pk_cmbf.exinf = NULL; - status = cre_mbf( 1, &pk_cmbf ); - rtems_test_assert( status == E_PAR ); - - puts( "Init - cre_mbf - negative values for maxmsz returns E_PAR" ); - pk_cmbf.bufsz = 100; - pk_cmbf.maxmsz = -1; - status = cre_mbf( 1, &pk_cmbf ); - rtems_test_assert( status == E_PAR ); - - puts( "Init - cre_mbf - bufsz < maxmsz returns E_PAR" ); - pk_cmbf.bufsz = 100; - pk_cmbf.maxmsz = 101; - status = cre_mbf( 1, &pk_cmbf ); - rtems_test_assert( status == E_PAR ); - - /* - * Now run through all the bad ID errors - */ - - pk_cmbf.bufsz = 200; - pk_cmbf.maxmsz = 30; - puts( "Init - cre_mbf - bad id (less than -4) - E_OACV" ); - status = cre_mbf( -5, &pk_cmbf ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - cre_mbf - bad id (between 0 and -4) - E_ID" ); - status = cre_mbf( -4, &pk_cmbf ); - rtems_test_assert( status == E_ID ); - - puts( "Init - cre_mbf - bad id (0) - E_ID" ); - status = cre_mbf( 0, &pk_cmbf ); - rtems_test_assert( status == E_ID ); - - puts( "Init - cre_mbf - bad id (too great) - E_ID" ); - status = cre_mbf( CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS + 1, &pk_cmbf ); - rtems_test_assert( status == E_ID ); - - puts( "Init - cre_mbf - create mbf 1 TA_TFIFO - E_OK" ); - pk_cmbf.bufsz = 600; - pk_cmbf.maxmsz = 200; - pk_cmbf.mbfatr = TA_TFIFO; - status = cre_mbf( 1, &pk_cmbf ); - rtems_test_assert( status == E_OK ); - - puts( "Init - cre_mbf - create mbf 1 again - E_OBJ" ); - status = cre_mbf( 1, &pk_cmbf ); - rtems_test_assert( status == E_OBJ ); - - puts( "Init - cre_mbf - create mbf 2 TA_TPRI - E_OK" ); - pk_cmbf.bufsz = 600; - pk_cmbf.maxmsz = 200; - pk_cmbf.mbfatr = TA_TPRI; - status = cre_mbf( 2, &pk_cmbf ); - rtems_test_assert( status == E_OK ); -} - -void TestDel(void) -{ - ER status; - - /* - * Generate all the bad id errors for del_mbf - */ - - puts( "Init - del_mbf - bad id (less than -4) - E_OACV" ); - status = del_mbf( -5 ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - del_mbf - bad id (between 0 and -4) - E_ID" ); - status = del_mbf( -4 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - del_mbf - bad id (0) - E_ID" ); - status = del_mbf( 0 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - del_mbf - bad id (too great) - E_ID" ); - status = del_mbf( CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS + 1 ); - rtems_test_assert( status == E_ID ); - - - puts("Init - del_mbf - E_OK" ); - status = del_mbf(2); - rtems_test_assert(status == E_OK); -} - -void TestPsnd(void) -{ - ER status; - char msg[100] = "This is test message 1"; - - /* - * Generate all the bad id errors for psnd_mbf - */ - - puts( "Init - psnd_mbf - bad id (less than -4) - E_OACV" ); - status = psnd_mbf(-5, msg, sizeof(msg)); - rtems_test_assert( status == E_OACV ); - - puts( "Init - psnd_mbf - bad id (between 0 and -4) - E_ID" ); - status = psnd_mbf(-4, msg, sizeof(msg)); - rtems_test_assert( status == E_ID ); - - puts( "Init - psnd_mbf - bad id (0) - E_ID" ); - status = psnd_mbf(0, msg, sizeof(msg)); - rtems_test_assert( status == E_ID ); - - puts( "Init - psnd_mbf - bad id (too great) - E_ID" ); - status = psnd_mbf(CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS + 1, msg, - sizeof(msg)); - rtems_test_assert( status == E_ID ); - - puts( "Init - psnd_mbf - msg == 0, E_PAR" ); - status = psnd_mbf(1, 0, sizeof(msg)); - rtems_test_assert( status == E_PAR ); - - puts( "Init - psnd_mbf - msgsz too big - E_PAR" ); - status = psnd_mbf(1, msg, 300); - rtems_test_assert( status == E_PAR ); - - puts( "Init - psnd_mbf - msgsz <0 - E_PAR" ); - status = psnd_mbf(1, msg, -10); - rtems_test_assert( status == E_PAR ); - - puts( "Init - psnd_mbf - E_OK" ); - status = psnd_mbf(1, msg, sizeof(msg)); - rtems_test_assert( status == E_OK ); -} - -void TestRef(void) -{ - ER status; - T_RMBF pk_rmbf; - - puts( "Init - ref_mbf - bad id (less than -4) - E_OACV" ); - status = ref_mbf(&pk_rmbf, -5); - rtems_test_assert( status == E_OACV ); - - puts( "Init - ref_mbf - bad id (between 0 and -4) - E_ID" ); - status = ref_mbf(&pk_rmbf, -4); - rtems_test_assert( status == E_ID ); - - puts( "Init - ref_mbf - bad id (0) - E_ID" ); - status = ref_mbf(&pk_rmbf, 0); - rtems_test_assert( status == E_ID ); - - puts( "Init - ref_mbf - bad id (too great) - E_ID" ); - status = ref_mbf(&pk_rmbf, - CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS + 1); - rtems_test_assert( status == E_ID ); - - puts( "Init - ref_mbf - NULL pk_mbf returns E_PAR" ); - status = ref_mbf( NULL, 1 ); - rtems_test_assert( status == E_PAR ); - - puts( "Init - ref_mbf - mbf 1 - E_OK" ); - status = ref_mbf( &pk_rmbf, 1 ); - rtems_test_assert( status == E_OK ); - - printf( "Init - mbf 1 msgsz = %" PRId32 "\n", pk_rmbf.msgsz ); - printf( "Init - mbf 1 frbufsz = %" PRId32 "\n", pk_rmbf.frbufsz ); - printf( "Init - mbf 1 waiting tasks = %d\n", pk_rmbf.wtsk ); - printf( "Init - mbf 1 sending tasks = %d\n", pk_rmbf.stsk); -} - -void TestRcv(void) -{ - ER status; - char buffer[200]; - INT s; - - puts( "Init - rcv_mbf - bad id (less than -4) - E_OACV" ); - status = rcv_mbf(buffer, &s, -5); - rtems_test_assert( status == E_OACV ); - - puts( "Init - rcv_mbf - bad id (between 0 and -4) - E_ID" ); - status = rcv_mbf(buffer, &s, -4); - rtems_test_assert( status == E_ID ); - - puts( "Init - rcv_mbf - bad id (0) - E_ID" ); - status = rcv_mbf(buffer, &s, 0); - rtems_test_assert( status == E_ID ); - - puts( "Init - rcv_mbf - bad id (too great) - E_ID" ); - status = rcv_mbf(buffer, &s, CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS + 1); - rtems_test_assert( status == E_ID ); - - puts( "Init - rcv_mbf - NULL msg returns E_PAR" ); - status = rcv_mbf(NULL, &s, 1); - rtems_test_assert( status == E_PAR ); - - puts( "Init - rcv_mbf - NULL p_msgsz returns E_PAR" ); - status = rcv_mbf(buffer, 0, 1); - rtems_test_assert( status == E_PAR ); - - puts("Init - rcv_mbf -- OK"); - status = rcv_mbf(buffer, &s, 1); - rtems_test_assert(status == E_OK); - printf("Message:[%s], length:%" PRId32 "\n", buffer, s); -} - - -void TestPrcv(void) -{ - ER status; - char buffer[200]; - INT s; - - puts( "Init - prcv_mbf - bad id (less than -4) - E_OACV" ); - status = prcv_mbf(buffer, &s, -5); - rtems_test_assert( status == E_OACV ); - - puts( "Init - prcv_mbf - bad id (between 0 and -4) - E_ID" ); - status = prcv_mbf(buffer, &s, -4); - rtems_test_assert( status == E_ID ); - - puts( "Init - prcv_mbf - bad id (0) - E_ID" ); - status = prcv_mbf(buffer, &s, 0); - rtems_test_assert( status == E_ID ); - - puts( "Init - prcv_mbf - bad id (too great) - E_ID" ); - status = prcv_mbf(buffer, &s, CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS + 1); - rtems_test_assert( status == E_ID ); - - puts( "Init - prcv_mbf - NULL msg returns E_PAR" ); - status = prcv_mbf(NULL, &s, 1); - rtems_test_assert( status == E_PAR ); - - puts( "Init - prcv_mbf - NULL p_msgsz returns E_PAR" ); - status = prcv_mbf(buffer, 0, 1); - rtems_test_assert( status == E_PAR ); - - puts("Init - prcv_mbf -- E_TMOUT"); - status = prcv_mbf(buffer, &s, 1); - rtems_test_assert(status == E_TMOUT); -} - - -void TestTrcv(void) -{ - ER status; - char buffer[200]; - INT s; - - puts( "Init - trcv_mbf - bad id (less than -4) - E_OACV" ); - status = trcv_mbf(buffer, &s, -5, 5000); - rtems_test_assert( status == E_OACV ); - - puts( "Init - trcv_mbf - bad id (between 0 and -4) - E_ID" ); - status = trcv_mbf(buffer, &s, -4, 5000); - rtems_test_assert( status == E_ID ); - - puts( "Init - trcv_mbf - bad id (0) - E_ID" ); - status = trcv_mbf(buffer, &s, 0, 5000); - rtems_test_assert( status == E_ID ); - - puts( "Init - trcv_mbf - bad id (too great) - E_ID" ); - status = trcv_mbf(buffer, &s, - CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS + 1, - 5000); - rtems_test_assert( status == E_ID ); - - puts( "Init - trcv_mbf - NULL msg returns E_PAR" ); - status = trcv_mbf(NULL, &s, 1, 5000); - rtems_test_assert( status == E_PAR ); - - puts( "Init - trcv_mbf - NULL p_msgsz returns E_PAR" ); - status = trcv_mbf(buffer, 0, 1, 5000); - rtems_test_assert( status == E_PAR ); - - puts( "Init - trcv_mbf - tmout <-2 returns E_PAR" ); - status = trcv_mbf(buffer, &s, 1, -2); - rtems_test_assert( status == E_PAR ); - - puts("\nInit - trcv_mbf -- E_TMOUT"); - put_time( "Init - starting to block at "); - status = trcv_mbf(buffer, &s, 1, 1000); - rtems_test_assert(status == E_TMOUT); - put_time( "Init - time out at "); -} diff --git a/testsuites/itrontests/itronmbf01/itronmbf01.doc b/testsuites/itrontests/itronmbf01/itronmbf01.doc deleted file mode 100644 index 5c0baceb8d..0000000000 --- a/testsuites/itrontests/itronmbf01/itronmbf01.doc +++ /dev/null @@ -1,12 +0,0 @@ -# -# $Id$ -# -# 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. -# - - diff --git a/testsuites/itrontests/itronmbf01/itronmbf01.scn b/testsuites/itrontests/itronmbf01/itronmbf01.scn deleted file mode 100644 index d7164f308c..0000000000 --- a/testsuites/itrontests/itronmbf01/itronmbf01.scn +++ /dev/null @@ -1,71 +0,0 @@ -*** ITRONMBF01 -- ITRON MESSAGE BUFFER TEST *** -Init - cre_mbf - NULL pk_cmbf returns E_PAR -Init - cre_mbf - negative values for bufsz returns E_PAR -Init - cre_mbf - negative values for maxmsz returns E_PAR -Init - cre_mbf - bufsz < maxmsz returns E_PAR -Init - cre_mbf - bad id (less than -4) - E_OACV -Init - cre_mbf - bad id (between 0 and -4) - E_ID -Init - cre_mbf - bad id (0) - E_ID -Init - cre_mbf - bad id (too great) - E_ID -Init - cre_mbf - create mbf 1 TA_TFIFO - E_OK -Init - cre_mbf - create mbf 1 again - E_OBJ -Init - cre_mbf - create mbf 2 TA_TPRI - E_OK -Init - del_mbf - bad id (less than -4) - E_OACV -Init - del_mbf - bad id (between 0 and -4) - E_ID -Init - del_mbf - bad id (0) - E_ID -Init - del_mbf - bad id (too great) - E_ID -Init - del_mbf - E_OK -Init - psnd_mbf - bad id (less than -4) - E_OACV -Init - psnd_mbf - bad id (between 0 and -4) - E_ID -Init - psnd_mbf - bad id (0) - E_ID -Init - psnd_mbf - bad id (too great) - E_ID -Init - psnd_mbf - msg == 0, E_PAR -Init - psnd_mbf - msgsz too big - E_PAR -Init - psnd_mbf - msgsz <0 - E_PAR -Init - psnd_mbf - E_OK -Init - ref_mbf - bad id (less than -4) - E_OACV -Init - ref_mbf - bad id (between 0 and -4) - E_ID -Init - ref_mbf - bad id (0) - E_ID -Init - ref_mbf - bad id (too great) - E_ID -Init - ref_mbf - NULL pk_mbf returns E_PAR -Init - ref_mbf - mbf 1 - E_OK -Init - mbf 1 msgsz = 100 -Init - mbf 1 frbufsz = 400 -Init - mbf 1 waiting tasks = 0 -Init - mbf 1 sending tasks = 0 -Init - rcv_mbf - bad id (less than -4) - E_OACV -Init - rcv_mbf - bad id (between 0 and -4) - E_ID -Init - rcv_mbf - bad id (0) - E_ID -Init - rcv_mbf - bad id (too great) - E_ID -Init - rcv_mbf - NULL msg returns E_PAR -Init - rcv_mbf - NULL p_msgsz returns E_PAR -Init - rcv_mbf -- OK -Message:[This is test message 1], length:100 -Init - ref_mbf - bad id (less than -4) - E_OACV -Init - ref_mbf - bad id (between 0 and -4) - E_ID -Init - ref_mbf - bad id (0) - E_ID -Init - ref_mbf - bad id (too great) - E_ID -Init - ref_mbf - NULL pk_mbf returns E_PAR -Init - ref_mbf - mbf 1 - E_OK -Init - mbf 1 msgsz = 0 -Init - mbf 1 frbufsz = 600 -Init - mbf 1 waiting tasks = 0 -Init - mbf 1 sending tasks = 0 -Init - prcv_mbf - bad id (less than -4) - E_OACV -Init - prcv_mbf - bad id (between 0 and -4) - E_ID -Init - prcv_mbf - bad id (0) - E_ID -Init - prcv_mbf - bad id (too great) - E_ID -Init - prcv_mbf - NULL msg returns E_PAR -Init - prcv_mbf - NULL p_msgsz returns E_PAR -Init - prcv_mbf -- E_TMOUT -Init - trcv_mbf - bad id (less than -4) - E_OACV -Init - trcv_mbf - bad id (between 0 and -4) - E_ID -Init - trcv_mbf - bad id (0) - E_ID -Init - trcv_mbf - bad id (too great) - E_ID -Init - trcv_mbf - NULL msg returns E_PAR -Init - trcv_mbf - NULL p_msgsz returns E_PAR -Init - trcv_mbf - tmout <-2 returns E_PAR -Init - trcv_mbf -- E_TMOUT -Init - starting to block at Fri Jan 1 00:00:00 1988 -Init - time out at Fri Jan 1 00:00:01 1988 -*** END OF ITRONMBF01 --- ITRON MESSAGE BUFFER TEST *** diff --git a/testsuites/itrontests/itronmbf01/system.h b/testsuites/itrontests/itronmbf01/system.h deleted file mode 100644 index a46d20aac1..0000000000 --- a/testsuites/itrontests/itronmbf01/system.h +++ /dev/null @@ -1,40 +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 - -/* functions */ - -void ITRON_Init( void ); - -/* configuration information */ - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 1 -#define CONFIGURE_MAXIMUM_ITRON_MESSAGE_BUFFERS 10 - -#define CONFIGURE_ITRON_INIT_TASK_TABLE -#define CONFIGURE_ITRON_INIT_TASK_STACK_SIZE (4 * RTEMS_MINIMUM_STACK_SIZE) - -#include - -/* global variables */ - -TEST_EXTERN rtems_id Global_variable; /* example global variable */ - -/* end of include file */ diff --git a/testsuites/itrontests/itronmbox01/.cvsignore b/testsuites/itrontests/itronmbox01/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itronmbox01/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itronmbox01/Makefile.am b/testsuites/itrontests/itronmbox01/Makefile.am deleted file mode 100644 index 31cc5216eb..0000000000 --- a/testsuites/itrontests/itronmbox01/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itronmbox01 -itronmbox01_SOURCES = init.c system.h - -dist_rtems_tests_DATA = itronmbox01.scn -dist_rtems_tests_DATA += itronmbox01.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itronmbox01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itronmbox01_OBJECTS) $(itronmbox01_LDADD) -LINK_LIBS = $(itronmbox01_LDLIBS) - -itronmbox01$(EXEEXT): $(itronmbox01_OBJECTS) $(itronmbox01_DEPENDENCIES) - @rm -f itronmbox01$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itronmbox01/init.c b/testsuites/itrontests/itronmbox01/init.c deleted file mode 100644 index 3defd23bf6..0000000000 --- a/testsuites/itrontests/itronmbox01/init.c +++ /dev/null @@ -1,34 +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 ) -{ - printf( "\n\n*** ITRON MBOX TEST 01 ***\n" ); - printf( "ITRON Mailboxes are implemented but there is currently no test.\n" ); - printf( "*** END OF ITRON MBOX TEST 01 ***\n" ); - rtems_test_exit( 0 ); -} diff --git a/testsuites/itrontests/itronmbox01/itronmbox01.doc b/testsuites/itrontests/itronmbox01/itronmbox01.doc deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/testsuites/itrontests/itronmbox01/itronmbox01.scn b/testsuites/itrontests/itronmbox01/itronmbox01.scn deleted file mode 100644 index 89329090ba..0000000000 --- a/testsuites/itrontests/itronmbox01/itronmbox01.scn +++ /dev/null @@ -1,3 +0,0 @@ -*** ITRON MBOX TEST 01 *** -ITRON Mailboxes are implemented but there is currently no test. -*** END OF ITRON MBOX TEST 01 *** diff --git a/testsuites/itrontests/itronmbox01/system.h b/testsuites/itrontests/itronmbox01/system.h deleted file mode 100644 index 357d58c819..0000000000 --- a/testsuites/itrontests/itronmbox01/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-2008. - * 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 */ - -/* NOTICE: the clock driver is explicitly disabled */ -#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 1 - -#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/itrontests/itronsem01/.cvsignore b/testsuites/itrontests/itronsem01/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itronsem01/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itronsem01/Makefile.am b/testsuites/itrontests/itronsem01/Makefile.am deleted file mode 100644 index a303ff0c06..0000000000 --- a/testsuites/itrontests/itronsem01/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itronsem01 -itronsem01_SOURCES = init.c system.h - -dist_rtems_tests_DATA = itronsem01.scn -dist_rtems_tests_DATA += itronsem01.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itronsem01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itronsem01_OBJECTS) $(itronsem01_LDADD) -LINK_LIBS = $(itronsem01_LDLIBS) - -itronsem01$(EXEEXT): $(itronsem01_OBJECTS) $(itronsem01_DEPENDENCIES) - @rm -f itronsem01$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itronsem01/init.c b/testsuites/itrontests/itronsem01/init.c deleted file mode 100644 index 302daa5a16..0000000000 --- a/testsuites/itrontests/itronsem01/init.c +++ /dev/null @@ -1,332 +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-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$ - */ - -#define CONFIGURE_INIT -#include "system.h" -#include - -/* - * The following is hopefully temporary. - */ - -#include - -#define put_time(_s) \ - do { \ - time_t a_time_t; \ - a_time_t = time( 0 ); \ - printf( "%s%s", _s, ctime( &a_time_t ) ); \ - } while(0) - -void ITRON_Init( void ) -{ - ER status; - T_CSEM pk_csem; - T_RSEM pk_rsem; - - printf( "\n\n*** ITRONSEM01 -- ITRON SEMAPHORE TEST ***\n" ); - - /* - * Exercise cre_sem - this code seems to exercise every path. - */ - - puts( "Init - cre_sem - NULL pk_sem returns E_PAR" ); - status = cre_sem( 1, NULL ); - rtems_test_assert( status == E_PAR ); - - puts( "Init - cre_sem - isemcnt > maxsem returns E_PAR" ); - pk_csem.sematr = 0; - pk_csem.isemcnt = 3; - pk_csem.maxsem = 2; - status = cre_sem( 1, &pk_csem ); - rtems_test_assert( status == E_PAR ); - - puts( "Init - cre_sem - maxsem of 0 returns E_PAR" ); - pk_csem.isemcnt = 0; - pk_csem.maxsem = 0; - status = cre_sem( 1, &pk_csem ); - rtems_test_assert( status == E_PAR ); - - /* - * Now run through all the bad ID errors - */ - - pk_csem.isemcnt = 2; - pk_csem.maxsem = 3; - puts( "Init - cre_sem - bad id (less than -4) - E_OACV" ); - status = cre_sem( -5, &pk_csem ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - cre_sem - bad id (between 0 and -4) - E_ID" ); - status = cre_sem( -4, &pk_csem ); - rtems_test_assert( status == E_ID ); - - puts( "Init - cre_sem - bad id (0) - E_ID" ); - status = cre_sem( 0, &pk_csem ); - rtems_test_assert( status == E_ID ); - - puts( "Init - cre_sem - bad id (too great) - E_ID" ); - status = cre_sem( CONFIGURE_MAXIMUM_ITRON_SEMAPHORES + 1, &pk_csem ); - rtems_test_assert( status == E_ID ); - - puts( "Init - cre_sem - create semaphore 1 TA_TFIFO - E_OK" ); - pk_csem.isemcnt = 2; - pk_csem.maxsem = 3; - pk_csem.sematr = TA_TFIFO; - status = cre_sem( 1, &pk_csem ); - rtems_test_assert( status == E_OK ); - - puts( "Init - cre_sem - create semaphore 1 again - E_OBJ" ); - status = cre_sem( 1, &pk_csem ); - rtems_test_assert( status == E_OBJ ); - - puts( "Init - cre_sem - create semaphore 2 TA_TPRI - E_OK" ); - pk_csem.isemcnt = 2; - pk_csem.maxsem = 3; - pk_csem.sematr = TA_TPRI; - status = cre_sem( 2, &pk_csem ); - rtems_test_assert( status == E_OK ); - - /* - * Generate all the bad id errors for del_sem - */ - - puts( "Init - del_sem - bad id (less than -4) - E_OACV" ); - status = del_sem( -5 ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - del_sem - bad id (between 0 and -4) - E_ID" ); - status = del_sem( -4 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - del_sem - bad id (0) - E_ID" ); - status = del_sem( 0 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - del_sem - bad id (too great) - E_ID" ); - status = del_sem( CONFIGURE_MAXIMUM_ITRON_SEMAPHORES + 1 ); - rtems_test_assert( status == E_ID ); - - /* - * Generate all the bad id errors for sig_sem - */ - - puts( "Init - sig_sem - bad id (less than -4) - E_OACV" ); - status = sig_sem( -5 ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - sig_sem - bad id (between 0 and -4) - E_ID" ); - status = sig_sem( -4 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - sig_sem - bad id (0) - E_ID" ); - status = sig_sem( 0 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - sig_sem - bad id (too great) - E_ID" ); - status = wai_sem( CONFIGURE_MAXIMUM_ITRON_SEMAPHORES + 1 ); - rtems_test_assert( status == E_ID ); - - /* - * Generate all the bad id errors for preq_sem - */ - - puts( "Init - preq_sem - bad id (less than -4) - E_OACV" ); - status = preq_sem( -5 ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - preq_sem - bad id (between 0 and -4) - E_ID" ); - status = preq_sem( -4 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - preq_sem - bad id (0) - E_ID" ); - status = preq_sem( 0 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - preq_sem - bad id (too great) - E_ID" ); - status = preq_sem( CONFIGURE_MAXIMUM_ITRON_SEMAPHORES + 1 ); - rtems_test_assert( status == E_ID ); - - /* - * Generate all the bad id errors for wai_sem - */ - - puts( "Init - wai_sem - bad id (less than -4) - E_OACV" ); - status = wai_sem( -5 ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - wai_sem - bad id (between 0 and -4) - E_ID" ); - status = wai_sem( -4 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - wai_sem - bad id (0) - E_ID" ); - status = wai_sem( 0 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - wai_sem - bad id (too great) - E_ID" ); - status = wai_sem( CONFIGURE_MAXIMUM_ITRON_SEMAPHORES + 1 ); - rtems_test_assert( status == E_ID ); - - /* - * Generate all the bad id errors for twai_sem - */ - - puts( "Init - twai_sem - bad id (less than -4) - E_OACV" ); - status = twai_sem( -5, 1000 ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - twai_sem - bad id (between 0 and -4) - E_ID" ); - status = twai_sem( -4, 1000 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - twai_sem - bad id (0) - E_ID" ); - status = twai_sem( 0, 1000 ); - rtems_test_assert( status == E_ID ); - - puts( "Init - twai_sem - bad id (too great) - E_ID" ); - status = twai_sem( CONFIGURE_MAXIMUM_ITRON_SEMAPHORES + 1, 1000 ); - rtems_test_assert( status == E_ID ); - - /* - * Generate all the bad id errors for ref_sem - */ - - puts( "Init - ref_sem - bad id (less than -4) - E_OACV" ); - status = ref_sem( -5, &pk_rsem ); - rtems_test_assert( status == E_OACV ); - - puts( "Init - ref_sem - bad id (between 0 and -4) - E_ID" ); - status = ref_sem( -4, &pk_rsem ); - rtems_test_assert( status == E_ID ); - - puts( "Init - ref_sem - bad id (0) - E_ID" ); - status = ref_sem( 0, &pk_rsem ); - rtems_test_assert( status == E_ID ); - - puts( "Init - ref_sem - bad id (too great) - E_ID" ); - status = ref_sem( CONFIGURE_MAXIMUM_ITRON_SEMAPHORES + 1, &pk_rsem ); - rtems_test_assert( status == E_ID ); - - /* - * Exercise preq_sem (and sig_sem a little) - */ - - - puts( "Init - preq_sem - semaphore 1 available (count --> 1) - E_OK" ); - status = preq_sem( 1 ); - rtems_test_assert( status == E_OK ); - - puts( "Init - preq_sem - semaphore 1 available (count --> 0) - E_OK" ); - status = preq_sem( 1 ); - rtems_test_assert( status == E_OK ); - - puts( "Init - preq_sem - semaphore 1 unavailable - E_TMOUT" ); - status = preq_sem( 1 ); - rtems_test_assert( status == E_TMOUT ); - - puts( "Init - sig_sem - semaphore 1 (count --> 1) - E_OK" ); - status = sig_sem( 1 ); - rtems_test_assert( status == E_OK ); - - puts("Init - twai_sem(TMO_POL) - semaphore 1 available (count --> 0) - E_OK"); - status = twai_sem( 1, TMO_POL ); - rtems_test_assert( status == E_OK ); - - puts( "Init - twai_sem(TMO_POL) - semaphore 1 available - E_TMOUT" ); - status = twai_sem( 1, TMO_POL ); - rtems_test_assert( status == E_TMOUT ); - - /* - * Exercise twai_sem - */ - - puts( "Init - twai_sem - semaphore 1 unavailable - 1 second E_TMOUT" ); - put_time( "Init - starting to block at "); - status = twai_sem( 1, 1000 ); - rtems_test_assert( status == E_TMOUT ); - put_time( "Init - timed out at "); - puts( "Init - twai_sem - semaphore 1 unavailable - timeout completed" ); - - /* - * Now let's test exceed the maximum count of semaphore 1 - */ - - puts( "Init - sig_sem - semaphore 1 (count --> 1) - E_OK" ); - status = sig_sem( 1 ); - rtems_test_assert( status == E_OK ); - - puts( "Init - sig_sem - semaphore 1 (count --> 2) - E_OK" ); - status = sig_sem( 1 ); - rtems_test_assert( status == E_OK ); - - puts( "Init - sig_sem - semaphore 1 (count --> 3) - E_OK" ); - status = sig_sem( 1 ); - rtems_test_assert( status == E_OK ); - - puts( "Init - sig_sem - semaphore 1 (count > maximum) - E_QOVR" ); - status = sig_sem( 1 ); - rtems_test_assert( status == E_QOVR ); - - /* - * Exercise ref_sem - */ - - puts( "Init - ref_sem - NULL pk_sem returns E_PAR" ); - status = ref_sem( 1, NULL ); - rtems_test_assert( status == E_PAR ); - - puts( "Init - ref_sem - semaphore 1 - E_OK" ); - status = ref_sem( 1, &pk_rsem ); - rtems_test_assert( status == E_OK ); - printf( "Init - semaphore 1 count = %" PRId32 "\n", pk_rsem.semcnt ); - printf( "Init - semaphore 1 waiting tasks = %d\n", pk_rsem.wtsk ); - - puts( "Init - preq_sem - semaphore 1 (count --> 2) - E_OK" ); - status = preq_sem( 1 ); - rtems_test_assert( status == E_OK ); - - puts( "Init - ref_sem - semaphore 1 - E_OK" ); - status = ref_sem( 1, &pk_rsem ); - rtems_test_assert( status == E_OK ); - printf( "Init - semaphore 1 count = %" PRId32 "\n", pk_rsem.semcnt ); - printf( "Init - semaphore 1 waiting tasks = %d\n", pk_rsem.wtsk ); - - - /* - * Exercise del_sem - */ - - /* XXX really want another task blocking on the semaphore XXX */ - - puts( "Init - del_sem - semaphore 1 deleted - E_OK" ); - status = del_sem( 1 ); - rtems_test_assert( status == E_OK ); - - puts( "Init - XXX need other tasks to complete the test XXX" ); - - puts( "Init - dly_tsk - 1 second to let other task run" ); - status = dly_tsk( 1000 ); - rtems_test_assert( status == E_OK ); - - printf( "*** END OF ITRONSEM01 -- ITRON SEMAPHORE TEST ***\n" ); - rtems_test_exit( 0 ); -} diff --git a/testsuites/itrontests/itronsem01/itronsem01.doc b/testsuites/itrontests/itronsem01/itronsem01.doc deleted file mode 100644 index 5c0baceb8d..0000000000 --- a/testsuites/itrontests/itronsem01/itronsem01.doc +++ /dev/null @@ -1,12 +0,0 @@ -# -# $Id$ -# -# 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. -# - - diff --git a/testsuites/itrontests/itronsem01/itronsem01.scn b/testsuites/itrontests/itronsem01/itronsem01.scn deleted file mode 100644 index 33b81e2570..0000000000 --- a/testsuites/itrontests/itronsem01/itronsem01.scn +++ /dev/null @@ -1,61 +0,0 @@ -*** ITRONSEM01 -- ITRON SEMAPHORE TEST *** -Init - cre_sem - NULL pk_sem returns E_PAR -Init - cre_sem - isemcnt > maxsem returns E_PAR -Init - cre_sem - maxsem of 0 returns E_PAR -Init - cre_sem - bad id (less than -4) - E_OACV -Init - cre_sem - bad id (between 0 and -4) - E_ID -Init - cre_sem - bad id (0) - E_ID -Init - cre_sem - bad id (too great) - E_ID -Init - cre_sem - create semaphore 1 TA_TFIFO - E_OK -Init - cre_sem - create semaphore 1 again - E_OBJ -Init - cre_sem - create semaphore 2 TA_TPRI - E_OK -Init - del_sem - bad id (less than -4) - E_OACV -Init - del_sem - bad id (between 0 and -4) - E_ID -Init - del_sem - bad id (0) - E_ID -Init - del_sem - bad id (too great) - E_ID -Init - sig_sem - bad id (less than -4) - E_OACV -Init - sig_sem - bad id (between 0 and -4) - E_ID -Init - sig_sem - bad id (0) - E_ID -Init - sig_sem - bad id (too great) - E_ID -Init - preq_sem - bad id (less than -4) - E_OACV -Init - preq_sem - bad id (between 0 and -4) - E_ID -Init - preq_sem - bad id (0) - E_ID -Init - preq_sem - bad id (too great) - E_ID -Init - wai_sem - bad id (less than -4) - E_OACV -Init - wai_sem - bad id (between 0 and -4) - E_ID -Init - wai_sem - bad id (0) - E_ID -Init - wai_sem - bad id (too great) - E_ID -Init - twai_sem - bad id (less than -4) - E_OACV -Init - twai_sem - bad id (between 0 and -4) - E_ID -Init - twai_sem - bad id (0) - E_ID -Init - twai_sem - bad id (too great) - E_ID -Init - ref_sem - bad id (less than -4) - E_OACV -Init - ref_sem - bad id (between 0 and -4) - E_ID -Init - ref_sem - bad id (0) - E_ID -Init - ref_sem - bad id (too great) - E_ID -Init - preq_sem - semaphore 1 available (count --> 1) - E_OK -Init - preq_sem - semaphore 1 available (count --> 0) - E_OK -Init - preq_sem - semaphore 1 unavailable - E_TMOUT -Init - sig_sem - semaphore 1 (count --> 1) - E_OK -Init - twai_sem(TMO_POL) - semaphore 1 available (count --> 0) - E_OK -Init - twai_sem(TMO_POL) - semaphore 1 available - E_TMOUT -Init - twai_sem - semaphore 1 unavailable - 1 second E_TMOUT -Init - starting to block at Fri Jan 1 00:00:00 1988 -Init - timed out at Fri Jan 1 00:00:01 1988 -Init - twai_sem - semaphore 1 unavailable - timeout completed -Init - sig_sem - semaphore 1 (count --> 1) - E_OK -Init - sig_sem - semaphore 1 (count --> 2) - E_OK -Init - sig_sem - semaphore 1 (count --> 3) - E_OK -Init - sig_sem - semaphore 1 (count > maximum) - E_QOVR -Init - ref_sem - NULL pk_sem returns E_PAR -Init - ref_sem - semaphore 1 - E_OK -Init - semaphore 1 count = 4 -Init - semaphore 1 waiting tasks = 0 -Init - preq_sem - semaphore 1 (count --> 2) - E_OK -Init - ref_sem - semaphore 1 - E_OK -Init - semaphore 1 count = 3 -Init - semaphore 1 waiting tasks = 0 -Init - del_sem - semaphore 1 deleted - E_OK -Init - XXX need other tasks to complete the test XXX -Init - dly_tsk - 1 second to let other task run -*** END OF ITRONSEM01 -- ITRON SEMAPHORE TEST *** diff --git a/testsuites/itrontests/itronsem01/system.h b/testsuites/itrontests/itronsem01/system.h deleted file mode 100644 index 5e468f266b..0000000000 --- a/testsuites/itrontests/itronsem01/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-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_CLOCK_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 1 -#define CONFIGURE_MAXIMUM_ITRON_SEMAPHORES 10 - -#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/itrontests/itrontask01/.cvsignore b/testsuites/itrontests/itrontask01/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itrontask01/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itrontask01/Makefile.am b/testsuites/itrontests/itrontask01/Makefile.am deleted file mode 100644 index 57ff06cb17..0000000000 --- a/testsuites/itrontests/itrontask01/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itrontask01 -itrontask01_SOURCES = init.c task1.c system.h - -dist_rtems_tests_DATA = itrontask01.scn -dist_rtems_tests_DATA += itrontask01.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itrontask01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itrontask01_OBJECTS) $(itrontask01_LDADD) -LINK_LIBS = $(itrontask01_LDLIBS) - -itrontask01$(EXEEXT): $(itrontask01_OBJECTS) $(itrontask01_DEPENDENCIES) - @rm -f itrontask01$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itrontask01/init.c b/testsuites/itrontests/itrontask01/init.c deleted file mode 100644 index 9283ec092b..0000000000 --- a/testsuites/itrontests/itrontask01/init.c +++ /dev/null @@ -1,71 +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 - -void ITRON_Init( void ) -{ - rtems_time_of_day time; - ER status; - T_CTSK pk_ctsk; - - puts( "\n\n*** ITRON TASK TEST 1 ***" ); - - /* - * XXX - Change this to an itron clock !! - */ - - build_time( &time, 12, 31, 1988, 9, 0, 0, 0 ); - status = rtems_clock_set( &time ); - directive_failed( status, "rtems_clock_set" ); - - pk_ctsk.exinf = NULL; - pk_ctsk.tskatr = TA_HLNG; - pk_ctsk.itskpri = 1; - pk_ctsk.task = Task_2_through_4; - - pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE * 2; - status = cre_tsk( 2, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA1" ); - - pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE * 2; - status = cre_tsk( 3, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA2" ); - - pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE * 3; - status = cre_tsk( 4, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA3" ); - - status = sta_tsk( 2, 0 ); - directive_failed( status, "sta_tsk of TA1" ); - - status = sta_tsk( 3, 0 ); - directive_failed( status, "sta_tsk of TA1" ); - - status = sta_tsk( 4, 0 ); - directive_failed( status, "sta_tsk of TA1" ); - - exd_tsk(); - directive_failed( 0, "exd_tsk" ); -} diff --git a/testsuites/itrontests/itrontask01/itrontask01.doc b/testsuites/itrontests/itrontask01/itrontask01.doc deleted file mode 100644 index 8ee0262d1a..0000000000 --- a/testsuites/itrontests/itrontask01/itrontask01.doc +++ /dev/null @@ -1,61 +0,0 @@ -# -# $Id$ -# -# 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. -# - -This file describes the directives and concepts tested by this test set. -This test is based upon the test in sp01. - -test set name: itrontask01 - -directives: - cre_tsk, exd_tsk, get_tid, sta_tsk - -concepts: XXX verify - - a. Verifies system can create and start both the executive's system - initialization and idle task. - - b. Verifies executive can swap between three application tasks at the - same priority and the executive's internal idle task. - - c. Verifies can print strings to the CRT on port 2 of the mvme136 board - using Print and Println in the board support package. - - d. Verifies interrupt handler can handle a task switch from an interrupt - as specified with the i_return directive. - - e. Verifies executive initialization performed correctly. - - f. Verifies the executive trap handler except for the halt function. - - g. Verifies that a task can get the task identification number of itself. - - a. Verifies exd_tsk - - b. Verifies get_tid - -notes: - - rtems clock directives should change to itron clock directives when - the clock directives are merged. - - change rtems task wake after to itron routines. - -output: - "TA1" is printed once every 5 seconds. - "TA2" is printed once every 10 seconds. - "TA3" is printed once every 15 seconds. - - - - - - - diff --git a/testsuites/itrontests/itrontask01/itrontask01.scn b/testsuites/itrontests/itrontask01/itrontask01.scn deleted file mode 100644 index 7ccefcbda4..0000000000 --- a/testsuites/itrontests/itrontask01/itrontask01.scn +++ /dev/null @@ -1,18 +0,0 @@ -*** ITRON TASK TEST 1 *** -TA1 - rtems_clock_get - 09:00:00 12/31/1988 -TA2 - rtems_clock_get - 09:00:00 12/31/1988 -TA3 - rtems_clock_get - 09:00:00 12/31/1988 -TA1 - rtems_clock_get - 09:00:05 12/31/1988 -TA2 - rtems_clock_get - 09:00:10 12/31/1988 -TA1 - rtems_clock_get - 09:00:10 12/31/1988 -TA3 - rtems_clock_get - 09:00:15 12/31/1988 -TA1 - rtems_clock_get - 09:00:15 12/31/1988 -TA2 - rtems_clock_get - 09:00:20 12/31/1988 -TA1 - rtems_clock_get - 09:00:20 12/31/1988 -TA1 - rtems_clock_get - 09:00:25 12/31/1988 -TA3 - rtems_clock_get - 09:00:30 12/31/1988 -TA1 - rtems_clock_get - 09:00:30 12/31/1988 -TA2 - rtems_clock_get - 09:00:30 12/31/1988 -*** END OF ITRON TASK TEST 1 *** - -NOTE: The order of the prints at each time interval is irrelevant. diff --git a/testsuites/itrontests/itrontask01/system.h b/testsuites/itrontests/itrontask01/system.h deleted file mode 100644 index e684269a77..0000000000 --- a/testsuites/itrontests/itrontask01/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 - -/* functions */ - -void ITRON_Init( void ); -void Task_2_through_4(void); - -/* configuration information */ - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 4 -#define CONFIGURE_EXTRA_TASK_STACKS (RTEMS_MINIMUM_STACK_SIZE * 4) - - -#define CONFIGURE_ITRON_INIT_TASK_TABLE - -#include - -/* global variables */ - -/* end of include file */ diff --git a/testsuites/itrontests/itrontask01/task1.c b/testsuites/itrontests/itrontask01/task1.c deleted file mode 100644 index f04adb30ed..0000000000 --- a/testsuites/itrontests/itrontask01/task1.c +++ /dev/null @@ -1,54 +0,0 @@ -/* Task_1_through_3 - * - * This routine serves as a test task. It verifies the basic task - * switching capabilities of the executive. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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 "system.h" - -void Task_2_through_4(void) -{ - ID tid; - int tid_index; - rtems_time_of_day time; - ER status; - char name[30]; - - status = get_tid( &tid ); - directive_failed( status, "get_tid"); - - tid_index = tid - 1; /* account for init tasks */ - - sprintf(name, "TA%d", tid_index); - - while( FOREVER ) { - status = rtems_clock_get_tod( &time ); - directive_failed( status, "rtems_clock_get_tod" ); - - if ( time.second >= 35 ) { - puts( "*** END OF ITRON TASK TEST 1 ***" ); - rtems_test_exit( 0 ); - } - - printf(name); - print_time( " - rtems_clock_get_tod - ", &time, "\n" ); - - status = rtems_task_wake_after( - tid_index * 5 * rtems_clock_get_ticks_per_second() ); - directive_failed( status, "rtems_task_wake_after" ); - } -} diff --git a/testsuites/itrontests/itrontask02/.cvsignore b/testsuites/itrontests/itrontask02/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itrontask02/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itrontask02/Makefile.am b/testsuites/itrontests/itrontask02/Makefile.am deleted file mode 100644 index 4ce8357798..0000000000 --- a/testsuites/itrontests/itrontask02/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itrontask02 -itrontask02_SOURCES = init.c dormant.c system.h - -dist_rtems_tests_DATA = itrontask02.scn -dist_rtems_tests_DATA += itrontask02.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itrontask02_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itrontask02_OBJECTS) $(itrontask02_LDADD) -LINK_LIBS = $(itrontask02_LDLIBS) - -itrontask02$(EXEEXT): $(itrontask02_OBJECTS) $(itrontask02_DEPENDENCIES) - @rm -f itrontask02$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itrontask02/dormant.c b/testsuites/itrontests/itrontask02/dormant.c deleted file mode 100644 index 24f60ac539..0000000000 --- a/testsuites/itrontests/itrontask02/dormant.c +++ /dev/null @@ -1,42 +0,0 @@ -/* Dormant - * - * This routine serves as two test tasks. - * It has one dormant and one sleeping tasks. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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 "system.h" - -void Dormant_task(void) -{ - puts( "DORMANT - ext_tsk - going to DORMANT state" ); - ext_tsk( ); - - puts( "ERROR==>ext_tsk of DORMANT returned" ); - rtems_test_assert(0); -} - - -void Non_Dormant_task(void) -{ - ER status; - - while (TRUE) { - puts( "NON-DORMANT - Sleep for 2 minutes" ); - status = rtems_task_wake_after( 120*rtems_clock_get_ticks_per_second() ); - directive_failed( status, "rtems_task_wake_after" ); - } -} diff --git a/testsuites/itrontests/itrontask02/init.c b/testsuites/itrontests/itrontask02/init.c deleted file mode 100644 index df2691bb23..0000000000 --- a/testsuites/itrontests/itrontask02/init.c +++ /dev/null @@ -1,579 +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-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$ - */ - -#define CONFIGURE_INIT -#include "system.h" -#include - -void ITRON_Init( void ) -{ - - /* - * Status Codes for these errors - * - * - * E_OK - Normal Completion - * - * E_NOMEM - Insufficient memory (Memory for control block and/or user - * stack cannot be allocated) - * - * E_ID - Invalid ID Number (tskid was invalid or could not be used) - * - * E_RSATR - Reserved attribute (tskatr was invalid or could not be used) - * - * E_OBJ - Invalid object state (a task of the same ID already exists) - * - * E_OACV - Object access violation (A tskid less than -4 was specified - * from a user task. This is implementation dependent.) - * - * E_PAR - Parameter error (pk_ctsk, task, itskpri and/or stksz is invalid) - * - * E_NOEXS - Object does not exist (the task specified by tskid does not - * exist) - * - * E_CTX - Context error (issued from task-independent portions or a task - * in dispatch disabled state) - * - * - * - * Network Specific Errors (ITRON calls these Connection Function Errors) - * - * EN_OBJNO - An object number which could not be accessed on the target - * node is specified. - * - * EN_CTXID - Specified an object on another node when the system call - * was issued from a task in dispatch disabled state or from - * a task-independent portion - * - * EN_PAR - A value outside the range supported by the target node and/or - * transmission packet format was specified as a parameter - * (a value outside supported range was specified for exinf, - * tskatr, task, itskpri and/or stksz) - * - * EN_RPAR - A value outside the range supported by the requesting node - * and/or transmission packet format was returned as a return - * parameter (a value outside supported range was returned for - * exinf, tskpri and/or tskstat) - * - */ - - - rtems_time_of_day time; - ER status; - T_CTSK pk_ctsk; - T_RTSK pk_rtsk; /* Reference Task Packet */ - - - puts( "\n\n*** ITRON TASK TEST 2 ***\n" ); - - build_time( &time, 12, 31, 1988, 9, 0, 0, 0 ); - status = rtems_clock_set( &time ); - directive_failed( status, "rtems_clock_set" ); - - - /* - * Set My priority to 8 so that dummy tasks will be - * forced to run when started. - */ - - status = chg_pri( TSK_SELF, 8 ); - fatal_directive_status( status, E_OK, "chg_pri of TSK_SELF"); - status = ref_tsk( &pk_rtsk, TSK_SELF ); - fatal_directive_status( status, E_OK, "ref_tsk of TSK_SELF"); - fatal_directive_status( pk_rtsk.tskpri, 8, "task priority of SELF"); - - /* - * Create and verify a DORMANT task. - */ - - pk_ctsk.exinf = NULL; - pk_ctsk.tskatr = TA_HLNG; - pk_ctsk.itskpri = 1; - pk_ctsk.task = Dormant_task; - pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE; - - puts( "Init - cre_tsk - Dormant Task" ); - status = cre_tsk( DORMANT_TASK_ID, &pk_ctsk ); - fatal_directive_status( status, E_OK, "cre_tsk of DORMANT"); - status = ref_tsk( &pk_rtsk, DORMANT_TASK_ID ); - fatal_directive_status( status, E_OK, "ref_tsk of DORMANT"); - fatal_directive_status( pk_rtsk.tskstat, TTS_DMT, "task state of DORMANT"); - - /* - * Create, Start and verify a not DORMANT task. - */ - - pk_ctsk.task = Non_Dormant_task; - puts( "Init - cre_tsk - Non-Dormant Task" ); - status = cre_tsk( NON_DORMANT_TASK_ID, &pk_ctsk ); - fatal_directive_status( status, E_OK, "cre_tsk of NON_DORMANT"); - status = sta_tsk( NON_DORMANT_TASK_ID, 1 ); - status = ref_tsk( &pk_rtsk, NON_DORMANT_TASK_ID ); - fatal_directive_status( status, E_OK, "ref_tsk of NON_DORMANT"); - fatal_directive_status( pk_rtsk.tskstat,TTS_WAI,"task state of NON_DORMANT"); - - - /* - * Bad ID errors - */ - - puts( "\n*** Create Task Errors ***" ); - - puts( "Init - cre_tsk - access violation ( id less than -4) - E_OACV" ); - status = cre_tsk( -5, &pk_ctsk ); - fatal_directive_status( status, E_OACV, "cre_tsk of -5"); - - puts( "Init - cre_tsk - bad id (between 0 and -4) - E_ID" ); - status = cre_tsk( -2, &pk_ctsk ); - fatal_directive_status( status, E_ID, "cre_tsk of -2"); - - puts( "Init - cre_tsk - cannot create TSK_SELF - E_ID" ); - status = cre_tsk( TSK_SELF, &pk_ctsk ); - fatal_directive_status( status, E_ID, "cre_tsk of TSK_SELF"); - - puts( "Init - cre_tsk - invalid id; id already exists - E_OBJ" ); - status = cre_tsk( 1, &pk_ctsk ); - fatal_directive_status( status, E_OBJ, "cre_tsk of 1"); - - /* - * Bad task attribute errors - */ - - pk_ctsk.tskatr = -1; - puts( "Init - cre_tsk - tskatr is invalid - E_RSATR" ); - status = cre_tsk( 5, &pk_ctsk ); - fatal_directive_status( status, E_RSATR, "cre_tsk with tskatr of -1"); - - puts( "Init - cre_tsk - pk_ctsk is invalid - E_PAR" ); - status = cre_tsk( 5, NULL ); - fatal_directive_status( status, E_PAR, "cre_tsk with NULL discription"); - - pk_ctsk.tskatr = TA_HLNG; - pk_ctsk.itskpri = 0; - puts( "Init - cre_tsk - itskpri is 0 - E_PAR" ); - status = cre_tsk( 5, &pk_ctsk ); - fatal_directive_status( status, E_PAR, "cre_tsk with priority of 0"); - pk_ctsk.itskpri = 257; /* XXX Design parameter not requirement. */ - puts( "Init - cre_tsk - itskpri is 257 - E_PAR" ); - status = cre_tsk( 5, &pk_ctsk ); - fatal_directive_status( status, E_PAR, "cre_tsk with priority of 257"); - - pk_ctsk.stksz = -1; - puts( "Init - cre_tsk - stksz is invalid - E_PAR" ); - status = cre_tsk( 5, &pk_ctsk ); - fatal_directive_status( status, E_PAR, "cre_tsk with size of -1"); - - pk_ctsk.task = NULL; - puts( "Init - cre_tsk - task is invalid - E_PAR" ); - status = cre_tsk( 5, &pk_ctsk ); - fatal_directive_status( status, E_PAR, "cre_tsk with null task identifier"); - - -#if (0) - /* these errors can not be generated for cre_tsk at this time */ - fatal_directive_status( status, E_NOMEM, ""); - fatal_directive_status( status, EN_OBJNO, ""); - fatal_directive_status( status, EN_CTXID, ""); - fatal_directive_status( status, EN_PAR, ""); -#endif - - puts( "\n\n*** Delete Task Errors ***" ); - - /* - * Reset structure - */ - - pk_ctsk.exinf = NULL; - pk_ctsk.tskatr = TA_HLNG; - pk_ctsk.itskpri = 1; - pk_ctsk.task = Dormant_task; - pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE; - - - puts( "Init - del_tsk - cannot delete TSK_SELF - E_OBJ" ); - status = del_tsk( TSK_SELF ); - fatal_directive_status( status, E_OBJ, "del_tsk with SELF"); - - puts( "Init - del_tsk - task is not DORMANT - E_OBJ" ); - status = del_tsk( NON_DORMANT_TASK_ID ); - fatal_directive_status( status, E_OBJ, "del_tsk NON_DORMANT"); - - puts( "Init - del_tsk - task does not exist - E_NOEXS" ); - status = del_tsk( 5 ); - fatal_directive_status( status, E_NOEXS, "del_tsk 5"); - - puts( "Init - del_tsk - access violation ( id less than -4) - E_OACV" ); - status = del_tsk( -5 ); - fatal_directive_status( status, E_OACV, "del_tsk -5"); - - puts( "Init - del_tsk - cannot delete TSK_SELF - E_OBJ" ); - status = del_tsk( TSK_SELF ); - fatal_directive_status( status, E_OBJ, "del_tsk self"); - - puts( "Init - del_tsk - bad id (between 0 and -4) - E_ID" ); - status = del_tsk( -3 ); - fatal_directive_status( status, E_ID, "del_tsk -3"); - -#if (0) - /* these errors can not be generated for del_tsk at this time */ - fatal_directive_status( status, EN_OBJNO, "del_tsk "); - fatal_directive_status( status, EN_CTXID, "del_tsk "); -#endif - - - puts( "\n\n*** Start Task Errors ***" ); - - puts( "Init - sta_tsk - access violation ( id less than -4) - E_OACV" ); - status = sta_tsk( -5, 1 ); - fatal_directive_status( status, E_OACV, "sta_tsk of -5"); - - puts( "Init - sta_tsk - bad id (between 0 and -4) - E_ID" ); - status = sta_tsk( -2, 1 ); - fatal_directive_status( status, E_ID, "sta_tsk of -2"); - - puts( "Init - sta_tsk - cannot start TSK_SELF - E_OBJ" ); - status = sta_tsk( TSK_SELF, 1 ); - fatal_directive_status( status, E_OBJ, "sta_tsk of self"); - - puts( "Init - sta_tsk - task is not DORMANT - E_OBJ" ); - status = sta_tsk( NON_DORMANT_TASK_ID, 1 ); - fatal_directive_status( status, E_OBJ, "sta_tsk NON_DORMANT"); - - puts( "Init - sta_tsk - task does not exist - E_NOEXS" ); - status = sta_tsk( 5, 1 ); - fatal_directive_status( status, E_NOEXS, "5"); - -#if (0) - /* these errors can not be generated for sta_tsk at this time */ - fatal_directive_status( status, EN_OBJNO, "sta_tsk"); - fatal_directive_status( status, EN_CTXID, "sta_tsk"); - fatal_directive_status( status, EN_PAR, "sta_tsk"); -#endif - - -#if (0) - /* these errors can not be tested at this time */ - puts( "\n\n*** Exit Task Errors ***" ); - puts( "Init - ext_tsk - context error - E_CTX" ); - status = ext_tsk( ); - fatal_directive_status( status, E_CTX, "ext_tsk "); - - puts( "\n\n*** Exit and Delete Task Errors ***" ); - puts( "Init - exd_tsk - context error - E_CTX" ); - status = exd_tsk( ); - fatal_directive_status( status, E_CTX, "exd_tsk"); -#endif - - - puts( "\n\n*** Terminate Other Task Errors ***" ); - - puts( "Init - ter_tsk - bad id (between 0 and -4) - E_ID" ); - status = ter_tsk( -2 ); - fatal_directive_status( status, E_ID, "ter_tsk of -2"); - - puts( "Init - ter_tsk - cannot terminate TSK_SELF (0) - E_OBJ" ); - status = ter_tsk( TSK_SELF ); - fatal_directive_status( status, E_OBJ, "ter_tsk of self"); - - puts( "Init - ter_tsk - task is not DORMANT - E_OBJ" ); - status = ter_tsk( DORMANT_TASK_ID ); - fatal_directive_status( status, E_OBJ, "ter_tsk DORMANT"); - - puts( "Init - ter_tsk - task does not exist - E_NOEXS" ); - status = ter_tsk( 5 ); - fatal_directive_status( status, E_NOEXS, "ter_tsk of 5"); - - puts( "Init - ter_tsk - access violation ( id less than -4) - E_OACV" ); - status = ter_tsk( -5 ); - fatal_directive_status( status, E_OACV, "ter_tsk of -5"); - -#if (0) - /* these errors can not be generated for ter_tsk at this time */ - fatal_directive_status( status, EN_OBJNO, "ter_tsk"); - fatal_directive_status( status, EN_CTXID, "ter_tsk"); -#endif - - -#if (0) - status = dis_dsp( ); - fatal_directive_status( status, E_CTX, "dis_dsp"); - - status = ena_dsp( ); - fatal_directive_status( status, E_CTX, "ena_dsp"); -#endif - - puts( "\n\n*** Change Priority Task Errors ***" ); - - puts( "Init - chg_pri - bad id (between 0 and -4) - E_ID" ); - status = chg_pri( -2, 1 ); - fatal_directive_status( status, E_ID, "chg_pri of -2"); - - /* Call from task independent portion to cause E_OBJ - puts( "Init - chg_pri - change priority of TSK_SELF - E_OBJ" ); - status = chg_pri( XXX - INTERRUPT, 1 ); - rtems_test_assert( status == E_OBJ ); - */ - - puts( "Init - chg_pri - task is DORMANT - E_OBJ" ); - status = chg_pri( DORMANT_TASK_ID, 1 ); - fatal_directive_status( status, E_OBJ, "chg_pri of DORMANT"); - - puts( "Init - chg_pri - task does not exist - E_NOEXS" ); - status = chg_pri( 5, 1 ); - fatal_directive_status( status, E_NOEXS, "chg_pri of 5"); - - puts( "Init - chg_pri - access violation ( id less than -4) - E_OACV" ); - status = chg_pri( -5, 1 ); - fatal_directive_status( status, E_OACV, "chg_pri of -5"); - - puts( "Init - chg_pri - invalid priority - E_PAR" ); - status = chg_pri( 1, -1 ); - fatal_directive_status( status, E_PAR, "chg_pri with priority of -1"); - -#if (0) - /* these errors can not be generated for chg_pri at this time */ - fatal_directive_status( status, EN_OBJNO, "chg_pri"); - fatal_directive_status( status, EN_CTXID, "chg_pri"); - fatal_directive_status( status, EN_PAR, "chg_pri"); -#endif - - /* This gave me a nasty-gram - * "core_find_mapping() - access to unmaped address, attach a default map - * to handle this - addr=0x80002098 nr_bytes=0x4 processor=0x40134008 - * cia=0xc744" - */ - - puts( "\n\n*** Rotate Ready Queue Errors ***" ); - puts( "Init - rot_rdq - priority -1 - E_PAR" ); - status = rot_rdq( -1 ); - fatal_directive_status( status, E_PAR, "rot_rdq -1"); - puts( "Init - rot_rdq - priority 257 - E_PAR" ); - status = rot_rdq( 257 ); - fatal_directive_status( status, E_PAR, "rot_rdq 256"); - - /* XXX - This routine is not coded */ - - puts( "Init - rel_rdq - XXX Add when rel_wai coded - E_OK" ); - status = rel_wai( 1 ); - fatal_directive_status( status, E_OK, "rel_wai"); - - puts( "Init - rel_rdq - XXX Add when rel_wai coded - E_ID" ); - status = E_ID; - fatal_directive_status( status, E_ID, "rel_wai"); - - puts( "Init - rel_rdq - XXX Add when rel_wai coded - E_NOEXS" ); - status = E_NOEXS; - fatal_directive_status( status, E_NOEXS, "rel_wai"); - - puts( "Init - rel_rdq - XXX Add when rel_wai coded - E_OACV" ); - status = E_OACV; - fatal_directive_status( status, E_OACV, "rel_wai"); - - puts( "Init - rel_rdq - XXX Add when rel_wai coded - E_OBJ" ); - status = E_OBJ; - fatal_directive_status( status, E_OBJ, "rel_wai"); - - puts( "Init - rel_rdq - XXX Add when rel_wai coded - EN_OBJNO" ); - status = EN_OBJNO; - fatal_directive_status( status, EN_OBJNO, "rel_wai"); - - puts( "Init - rel_rdq - XXX Add when rel_wai coded - EN_CTXID" ); - status = EN_CTXID; - fatal_directive_status( status, EN_CTXID, "rel_wai"); - - - puts( "\n\n*** Reference Task Status Errors ***" ); - puts( "Init - ref_tsk - bad id (between 0 and -4) - E_ID" ); - status = ref_tsk( &pk_rtsk, -2 ); - fatal_directive_status( status, E_ID, "ref_tsk -2"); - - /* XXX Call from task independent portion to cause E_ID - puts( "Init - ref_tsk - reference INTERRUPT - E_ID" ); - status = ref_tsk( &pk_rtsk, TSK_SELF ); - rtems_test_assert( status == E_ID ); - */ - - puts( "Init - ref_tsk - task does not exist - E_NOEXS" ); - status = ref_tsk( &pk_rtsk, 5 ); - fatal_directive_status( status, E_NOEXS, "ref_tsk 5"); - - puts( "Init - ref_tsk - access violation ( id less than -4) - E_OACV" ); - status = ref_tsk( &pk_rtsk, -5 ); - fatal_directive_status( status, E_OACV, "ref_tsk -5"); - - puts( "Init - ref_tsk - packet address is bad - E_PAR" ); - status = ref_tsk( NULL, 1 ); - fatal_directive_status( status, E_PAR, "ref_tsk SELF with NULL descriptor"); - -#if (0) - /* these errors can not be generated for ref_tsk at this time */ - fatal_directive_status( status, EN_OBJNO, "ref_tsk"); - fatal_directive_status( status, EN_CTXID, "ref_tsk"); - fatal_directive_status( status, EN_RPAR, "ref_tsk"); -#endif - - puts( "\n\n*** Suspend Task Errors ***" ); - - puts( "Init - sus_tsk - access violation ( id less than -4) - E_OACV" ); - status = sus_tsk( -5 ); - fatal_directive_status( status, E_OACV, "sus_tsk of -5"); - - puts( "Init - sus_tsk - bad id (between 0 and -4) - E_ID" ); - status = sus_tsk( -2 ); - fatal_directive_status( status, E_ID, "sus_tsk of -2"); - - puts( "Init - sus_tsk - cannot suspend SELF - E_OBJ" ); - status = sus_tsk( TSK_SELF ); - fatal_directive_status( status, E_OBJ, "sus_tsk of self"); - - puts( "Init - sus_tsk - task does not exist - E_NOEXS" ); - status = sus_tsk( 5 ); - fatal_directive_status( status, E_NOEXS, "sus_tsk of 5"); - - /* XXX - We support nested suspends and will never return this error. - puts( "Init - sus_tsk - no support for nested SUSPENDS - E_QOVR" ); - status = sus_tsk( 1 ); - fatal_directive_status( status, E_QOVR, "sus_tsk"); - */ - - /* XXX - Can not test this. - puts( "Init - sus_tsk - exceeded limit for nested SUSPENDS - E_QOVR" ); - status = sus_tsk( 1 ); - fatal_directive_status( status, E_QOVR, "sus_tsk"); - */ - -#if (0) - /* these errors can not be generated for sus_tsk at this time */ - fatal_directive_status( status, EN_OBJNO, "sus_tsk"); - fatal_directive_status( status, EN_CTXID, "sus_tsk"); -#endif - - - puts( "\n\n*** Resume Task Errors ***" ); - - puts( "Init - rsm_tsk - access violation ( id less than -4) - E_OACV" ); - status = rsm_tsk( -5 ); - fatal_directive_status( status, E_OACV, "rsm_tsk -5"); - - puts( "Init - rsm_tsk - bad id (between 0 and -4) - E_ID" ); - status = rsm_tsk( -2 ); - fatal_directive_status( status, E_ID, "rsm_tsk -2"); - - puts( "Init - rsm_tsk - cannot resume SELF - E_OBJ" ); - status = rsm_tsk( TSK_SELF ); - fatal_directive_status( status, E_OBJ, "rsm_tsk self"); - - puts( "Init - rsm_tsk - task is DORMANT - E_OBJ" ); - status = rsm_tsk( DORMANT_TASK_ID ); - fatal_directive_status( status, E_OBJ, "rsm_tsk DORMANT"); - - puts( "Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK" ); - status = rsm_tsk( NON_DORMANT_TASK_ID ); - fatal_directive_status( status, E_OBJ, "rsm_tsk NON_DORMANT"); - - puts( "Init - rsm_tsk - task does not exist - E_NOEXS" ); - status = rsm_tsk( 5 ); - fatal_directive_status( status, E_NOEXS, "rms_tsk 5"); - -#if (0) - /* these errors can not be generated for rsm_tsk at this time */ - fatal_directive_status( status, EN_OBJNO, "rsm_tsk"); - fatal_directive_status( status, EN_CTXID, "rsm_tsk"); -#endif - - - puts( "\n\n*** Forcibly Resume Task Errors ***" ); - - puts( "Init - frsm_tsk - access violation ( id less than -4) - E_OACV" ); - status = frsm_tsk( -5 ); - fatal_directive_status( status, E_OACV, "frsm_tsk -5"); - - puts( "Init - frsm_tsk - bad id (between 0 and -4) - E_ID" ); - status = frsm_tsk( -2 ); - fatal_directive_status( status, E_ID, "frsm_tsk -2"); - - puts( "Init - frsm_tsk - cannot forcibly resume SELF - E_OBJ" ); - status = frsm_tsk( TSK_SELF ); - fatal_directive_status( status, E_OBJ, "frsm_tsk self"); - - puts( "Init - frsm_tsk - task is DORMANT - E_OBJ" ); - status = frsm_tsk( DORMANT_TASK_ID ); - fatal_directive_status( status, E_OBJ, "frsm_tsk DORMANT"); - - puts( "Init - frsm_tsk - task does not exist - E_NOEXS" ); - status = frsm_tsk( 5 ); - fatal_directive_status( status, E_NOEXS, "frsm_tsk 5"); - - puts( "Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK" ); - status = frsm_tsk( NON_DORMANT_TASK_ID ); - fatal_directive_status( status, E_OK, "frsm_tsk NON_DORMANT"); - -#if (0) - /* these errors can not be generated for frsm_tsk at this time */ - fatal_directive_status( status, EN_OBJNO, "frsm_tsk"); - fatal_directive_status( status, EN_CTXID, "frsm_tsk"); -#endif - - -#if (0) -XXXXX - FIX ME - /* these directives are not coded */ - slp_tsk( ); - fatal_directive_status( status, E_OK, ""); - fatal_directive_status( status, E_PAR, ""); - fatal_directive_status( status, E_RLWAI, ""); - fatal_directive_status( status, E_TMOUT, ""); - fatal_directive_status( status, E_CTX, ""); - - - tslp_tsk( TMO ); - fatal_directive_status( status, E_OK, ""); - fatal_directive_status( status, E_PAR, ""); - fatal_directive_status( status, E_RLWAI, ""); - fatal_directive_status( status, E_TMOUT, ""); - fatal_directive_status( status, E_CTX, ""); - - wup_tsk( ID ); - fatal_directive_status( status, E_OK, ""); - fatal_directive_status( status, E_ID, ""); - fatal_directive_status( status, E_NOEXS, ""); - fatal_directive_status( status, E_OACV, ""); - fatal_directive_status( status, E_OBJ, ""); - fatal_directive_status( status, E_QOVR, ""); - fatal_directive_status( status, EN_OBJNO, ""); - fatal_directive_status( status, EN_CTXID, ""); - - - can_tsk( INT, ID ); - fatal_directive_status( status, E_OK, ""); - fatal_directive_status( status, E_ID, ""); - fatal_directive_status( status, E_NOEXS, ""); - fatal_directive_status( status, E_OACV, ""); - fatal_directive_status( status, E_OBJ, ""); - fatal_directive_status( status, EN_OBJNO, ""); - fatal_directive_status( status, EN_CTXID, ""); - fatal_directive_status( status, EN_RPAR, ""); -#endif - - puts( "*** END OF ITRON TASK TEST 2 ***" ); - rtems_test_exit( 0 ); -} diff --git a/testsuites/itrontests/itrontask02/itrontask02.doc b/testsuites/itrontests/itrontask02/itrontask02.doc deleted file mode 100644 index 8872c983a2..0000000000 --- a/testsuites/itrontests/itrontask02/itrontask02.doc +++ /dev/null @@ -1,34 +0,0 @@ -# -# $Id$ -# -# 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. -# - -This file describes the directives and concepts tested by this test set. -This test forces and verifies error conditions for the task and task -synchronization managers.. - -test set name: itrontask02 - -directives: - chg_pri cre_tsk del_tsk dis_dsp ena_dsp exd_tsk ext_tsk - frsm_tsk get_tid ref_tsk rel_wai rot_rdq rsm_tsk slp_tsk - sta_tsk sus_tsk ter_tsk tslp_tsk wup_tsk - -concepts: - - a. Verification of error codes from all task and task synchronization - commands. - -notes: - Unimplementted functions are stubbed out and should be added when - the functions are finished. - -output: - Name of command and expected error code. - Test asserts when an unexpected error code or an error does not occur. diff --git a/testsuites/itrontests/itrontask02/itrontask02.scn b/testsuites/itrontests/itrontask02/itrontask02.scn deleted file mode 100644 index a7a7aca31b..0000000000 --- a/testsuites/itrontests/itrontask02/itrontask02.scn +++ /dev/null @@ -1,80 +0,0 @@ -*** ITRON TASK TEST 2 *** -Init - cre_tsk - Dormant Task -Init - cre_tsk - Non-Dormant Task -NON-DORMANT - Sleep for 2 minutes - -*** Create Task Errors *** -Init - cre_tsk - access violation ( id less than -4) - E_OACV -Init - cre_tsk - bad id (between 0 and -4) - E_ID -Init - cre_tsk - cannot create TSK_SELF - E_ID -Init - cre_tsk - invalid id; id already exists - E_OBJ -Init - cre_tsk - tskatr is invalid - E_RSATR -Init - cre_tsk - pk_ctsk is invalid - E_PAR -Init - cre_tsk - itskpri is 0 - E_PAR -Init - cre_tsk - itskpri is 257 - E_PAR -Init - cre_tsk - stksz is invalid - E_PAR -Init - cre_tsk - task is invalid - E_PAR - -*** Delete Task Errors *** -Init - del_tsk - cannot delete TSK_SELF - E_OBJ -Init - del_tsk - task is not DORMANT - E_OBJ -Init - del_tsk - task does not exist - E_NOEXS -Init - del_tsk - access violation ( id less than -4) - E_OACV -Init - del_tsk - cannot delete TSK_SELF - E_OBJ -Init - del_tsk - bad id (between 0 and -4) - E_ID - -*** Start Task Errors *** -Init - sta_tsk - access violation ( id less than -4) - E_OACV -Init - sta_tsk - bad id (between 0 and -4) - E_ID -Init - sta_tsk - cannot start TSK_SELF - E_OBJ -Init - sta_tsk - task is not DORMANT - E_OBJ -Init - sta_tsk - task does not exist - E_NOEXS - -*** Terminate Other Task Errors *** -Init - ter_tsk - bad id (between 0 and -4) - E_ID -Init - ter_tsk - cannot terminate TSK_SELF (0) - E_OBJ -Init - ter_tsk - task is not DORMANT - E_OBJ -Init - ter_tsk - task does not exist - E_NOEXS -Init - ter_tsk - access violation ( id less than -4) - E_OACV - -*** Change Priority Task Errors *** -Init - chg_pri - bad id (between 0 and -4) - E_ID -Init - chg_pri - task is DORMANT - E_OBJ -Init - chg_pri - task does not exist - E_NOEXS -Init - chg_pri - access violation ( id less than -4) - E_OACV -Init - chg_pri - invalid priority - E_PAR - -*** Rotate Ready Queue Errors *** -Init - rot_rdq - priority -1 - E_PAR -Init - rot_rdq - priority 257 - E_PAR - -*** Reference Task Status Errors *** -Init - ref_tsk - bad id (between 0 and -4) - E_ID -Init - ref_tsk - task does not exist - E_NOEXS -Init - ref_tsk - access violation ( id less than -4) - E_OACV -Init - ref_tsk - packet address is bad - E_PAR - -*** Suspend Task Errors *** -Init - sus_tsk - access violation ( id less than -4) - E_OACV -Init - sus_tsk - bad id (between 0 and -4) - E_ID -Init - sus_tsk - cannot suspend SELF - E_OBJ -Init - sus_tsk - task does not exist - E_NOEXS - -*** Resume Task Errors *** -Init - rsm_tsk - access violation ( id less than -4) - E_OACV -Init - rsm_tsk - bad id (between 0 and -4) - E_ID -Init - rsm_tsk - cannot resume SELF - E_OBJ -Init - rsm_tsk - task is DORMANT - E_OBJ -Init - rsm_tsk - task is NON_DORMANT not suspended - E_OK -Init - rsm_tsk - task does not exist - E_NOEXS - -*** Forcibly Resume Task Errors *** -Init - frsm_tsk - access violation ( id less than -4) - E_OACV -Init - frsm_tsk - bad id (between 0 and -4) - E_ID -Init - frsm_tsk - cannot forcibly resume SELF - E_OBJ -Init - frsm_tsk - task is DORMANT - E_OBJ -Init - frsm_tsk - task does not exist - E_NOEXS -Init - frsm_tsk - task is NON_DORMANT not suspended - E_OK - -*** END OF ITRON TASK TEST 2 *** - diff --git a/testsuites/itrontests/itrontask02/system.h b/testsuites/itrontests/itrontask02/system.h deleted file mode 100644 index bde798bf10..0000000000 --- a/testsuites/itrontests/itrontask02/system.h +++ /dev/null @@ -1,44 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * COPYRIGHT (c) 1989-2008. - * 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 ); -void Dormant_task(void); -void Non_Dormant_task(void); - -/* configuration information */ - -/* NOTICE: the clock driver is explicitly disabled */ -#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 5 - -#define CONFIGURE_ITRON_INIT_TASK_TABLE - -#include - -/* global variables */ - -#define DORMANT_TASK_ID 2 -#define NON_DORMANT_TASK_ID 3 - -TEST_EXTERN rtems_id Global_variable; /* example global variable */ - -/* end of include file */ diff --git a/testsuites/itrontests/itrontask03/.cvsignore b/testsuites/itrontests/itrontask03/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itrontask03/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itrontask03/Makefile.am b/testsuites/itrontests/itrontask03/Makefile.am deleted file mode 100644 index 5d4a514977..0000000000 --- a/testsuites/itrontests/itrontask03/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itrontask03 -itrontask03_SOURCES = init.c preempt.c task1.c task2.c task3.c system.h - -dist_rtems_tests_DATA = itrontask03.scn -dist_rtems_tests_DATA += itrontask03.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itrontask03_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itrontask03_OBJECTS) $(itrontask03_LDADD) -LINK_LIBS = $(itrontask03_LDLIBS) - -itrontask03$(EXEEXT): $(itrontask03_OBJECTS) $(itrontask03_DEPENDENCIES) - @rm -f itrontask03$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itrontask03/init.c b/testsuites/itrontests/itrontask03/init.c deleted file mode 100644 index 1b204805d0..0000000000 --- a/testsuites/itrontests/itrontask03/init.c +++ /dev/null @@ -1,137 +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-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$ - */ - -#define CONFIGURE_INIT -#include "system.h" -#include - -void ITRON_Init( void ) -{ - ER status; - T_CTSK pk_ctsk; - T_RTSK pk_rtsk; - - pk_ctsk.exinf = NULL; - pk_ctsk.tskatr = TA_HLNG; - pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE; - pk_ctsk.itskpri = PREEMPT_PRIORITY; - pk_ctsk.task = Preempt_task; - - puts( "\n\n*** ITRON TASK TEST 3 ***" ); - - /* - * Create and start the Preempt task the first time. - * Verify that it is dormant when it comes back. - */ - - puts( "INIT - Create and Start PREEMPT" ); - status = chg_pri( TSK_SELF, (PREEMPT_PRIORITY+2) ); - directive_failed( status, "chg_pri of SELF" ); - - status = cre_tsk( PREEMPT_TASK_ID, &pk_ctsk ); - directive_failed( status, "cre_tsk of RTEMS_PREEMPT" ); - - status = sta_tsk( PREEMPT_TASK_ID, 0 ); - directive_failed( status, "sta_tsk of RTEMS_PREEMPT" ); - puts( "INIT - rot_rdq - no tasks at this priority" ); - status = rot_rdq( 1 ); - directive_failed( status, "rot_rdq" ); - - puts( "INIT - ref_tsk PREEMPT - Validate DORMANT STATE" ); - status = ref_tsk( &pk_rtsk, PREEMPT_TASK_ID ); - directive_failed( status, "INIT - ref_tsk of RTEMS_PREEMPT"); - fatal_directive_status(pk_rtsk.tskstat,TTS_DMT,"tskstat of PREEMPT"); - - /* - * Restart the Preempt Task. - */ - - status = sta_tsk( PREEMPT_TASK_ID, 0 ); - directive_failed( status, "sta_tsk of RTEMS_PREEMPT" ); - puts( "INIT - rot_rdq - yielding processor" ); - status = rot_rdq( 1 ); - directive_failed( status, "rot_rdq" ); - puts( "INIT - ref_tsk PREEMPT - Validate no longer exists" ); - status = ref_tsk( &pk_rtsk, PREEMPT_TASK_ID ); - fatal_directive_status( status, E_NOEXS, "tskstat of PREEMPT"); - status = chg_pri( TSK_SELF, PREEMPT_PRIORITY ); - directive_failed( status, "chg_pri of SELF" ); - - /* - * XXX - */ - - pk_ctsk.itskpri = 3; - pk_ctsk.task = Task_1; - status = cre_tsk( TA1_ID, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA1" ); - - pk_ctsk.task = Task_2; - status = cre_tsk( TA2_ID, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA2" ); - - pk_ctsk.task = Task_3; - status = cre_tsk( TA3_ID, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA3" ); - - status = sta_tsk( TA1_ID, 0 ); - directive_failed( status, "sta_tsk of TA1" ); - status = sta_tsk( TA2_ID, 0 ); - directive_failed( status, "sta_tsk of TA2" ); - status = sta_tsk( TA3_ID, 0 ); - directive_failed( status, "sta_tsk of TA3" ); - - status = ref_tsk( &pk_rtsk, TA1_ID); - directive_failed( status, "INIT - ref_tsk of TA1"); - fatal_directive_status( pk_rtsk.tskstat, TTS_RDY , "tskstat of TA1"); - - puts( "INIT - suspending TA2 while middle task on a ready chain" ); - status = sus_tsk( TA2_ID ); - directive_failed( status, "sus_tsk of TA2" ); - status = ref_tsk( &pk_rtsk, TA2_ID); - directive_failed( status, "INIT - ref_tsk of TA2"); - fatal_directive_status( pk_rtsk.tskstat, TTS_SUS, "tskstat of TA2"); - - status = ter_tsk( TA1_ID ); - directive_failed( status, "ter_tsk of TA1" ); - status = del_tsk( TA1_ID ); - directive_failed( status, "del_tsk of TA1" ); - status = ter_tsk( TA2_ID ); - directive_failed( status, "ter_tsk of TA2" ); - status = ter_tsk( TA3_ID ); - directive_failed( status, "ter_tsk of TA3" ); - - pk_ctsk.itskpri = 1; - pk_ctsk.task = Task_1; - status = cre_tsk( TA1_ID, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA1 at priority 1" ); - - status = sta_tsk( TA1_ID, 0 ); - directive_failed( status, "sta_tsk of TA1" ); - status = sta_tsk( TA2_ID, 0 ); - directive_failed( status, "sta_tsk of TA2" ); - status = sta_tsk( TA3_ID, 0 ); - directive_failed( status, "sta_tsk of TA3" ); - - exd_tsk(); - rtems_test_assert(0); -} diff --git a/testsuites/itrontests/itrontask03/itrontask03.doc b/testsuites/itrontests/itrontask03/itrontask03.doc deleted file mode 100644 index 35cf95f975..0000000000 --- a/testsuites/itrontests/itrontask03/itrontask03.doc +++ /dev/null @@ -1,54 +0,0 @@ -# -# $Id$ -# -# 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. -# - -This file describes the directives and concepts tested by this test set. -This test is based upon the test in sp0. - -test set name: itrontask03 - -directives: - chg_pri cre_tsk del_tsk exd_tsk rot_rdq sta_tsk sus_tsk ter_tsk - -concepts: XXX - Verify - - a. verifies rot_rdq can be used by equal priority tasks to correctly yeild the processor - - b. Verifies sus_tsk suspends another task. - - c. Verifies rot_rdq with a yeild process response. - - a. Verifies that a task can delete another task and also delete itself. - - b. Verifies that memory is freed back to the heap correctly. - - c. Verifies that TCBs are freed back to the inactive chain correctly. - - d. Verifies that a task can get the task identification number of - another task. - - e. Verifies the _Set_state routine where the task is not READY. - - f. Verifies the break statement in the _Block_activate routine. - - g. Verifies the while loop in the _Prev_tcb routine. - -notes: - - rtems_wake_after calls should be replaced with itron calls when - the time functionality is added. - -output: - - - - - - diff --git a/testsuites/itrontests/itrontask03/itrontask03.scn b/testsuites/itrontests/itrontask03/itrontask03.scn deleted file mode 100644 index 50b468e44a..0000000000 --- a/testsuites/itrontests/itrontask03/itrontask03.scn +++ /dev/null @@ -1,21 +0,0 @@ -*** ITRON TASK TEST 3 *** -INIT - Create and Start PREEMPT -PREEMPT - ref_tsk validation -PREEMPT - chg_pri increment priority -PREEMPT - ext_tsk - going to DORMANT state -INIT - rot_rdq - no tasks at this priority -INIT - ref_tsk PREEMPT - Validate DORMANT STATE -PREEMPT - ref_tsk validation -PREEMPT - exd_tsk - Exit and Delete task -INIT - rot_rdq - yielding processor -INIT - ref_tsk PREEMPT - Validate no longer exists -INIT - suspending TA2 while middle task on a ready chain -TA1 - rtems_task_wake_after - sleep 1 second -TA2 - rtems_task_wake_after - sleep 1 minute -TA3 - rtems_task_wake_after - sleep 5 seconds -TA1 - chg_pri - set TA3's priority to 2 -TA1 - sus_tsk - suspend TA2 -TA1 - - delete TA2 -TA1 - rtems_task_wake_after - sleep for 5 seconds -TA3 - exd_tsk - exit and delete self -*** END OF ITRON TASK TEST 3 *** diff --git a/testsuites/itrontests/itrontask03/preempt.c b/testsuites/itrontests/itrontask03/preempt.c deleted file mode 100644 index 0ff6101c23..0000000000 --- a/testsuites/itrontests/itrontask03/preempt.c +++ /dev/null @@ -1,52 +0,0 @@ -/* Preempt_task - * - * This routine serves as a test task. It verifies the task manager. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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 "system.h" - -int Preempt_task_Count; - -void Preempt_task() -{ - ER status; - T_RTSK pk_rtsk; - - puts( "PREEMPT - ref_tsk validation" ); - status = ref_tsk( &pk_rtsk, PREEMPT_TASK_ID ); - fatal_directive_status( status, E_OK , "ref_tsk of PREEMPT"); - rtems_test_assert( pk_rtsk.tskpri == PREEMPT_PRIORITY ); - rtems_test_assert( pk_rtsk.itskpri == PREEMPT_PRIORITY ); - rtems_test_assert( pk_rtsk.task == Preempt_task ); - rtems_test_assert( pk_rtsk.stksz >= RTEMS_MINIMUM_STACK_SIZE ); - rtems_test_assert( pk_rtsk.tskstat == (TTS_RUN | TTS_RDY) ); - - if ( Preempt_task_Count == 0 ) { - Preempt_task_Count ++; - puts( "PREEMPT - chg_pri increment priority "); - status = chg_pri( PREEMPT_TASK_ID, (PREEMPT_PRIORITY+1) ); - directive_failed( status, "chg_pri" ); - puts( "PREEMPT - ext_tsk - going to DORMANT state" ); - ext_tsk( ); - rtems_test_assert( 0 ); - } else { - Preempt_task_Count ++; - puts( "PREEMPT - exd_tsk - Exit and Delete task" ); - exd_tsk( ); - rtems_test_assert( 0 ); - } -} diff --git a/testsuites/itrontests/itrontask03/system.h b/testsuites/itrontests/itrontask03/system.h deleted file mode 100644 index 400fdd0a18..0000000000 --- a/testsuites/itrontests/itrontask03/system.h +++ /dev/null @@ -1,49 +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 - -/* functions */ - -void ITRON_Init( void ); -void Preempt_task(void); -void Task_1(void); -void Task_2(void); -void Task_3(void); - -/* configuration information */ - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 6 - -#define CONFIGURE_ITRON_INIT_TASK_TABLE - -#include - -/* global variables */ - -#define PREEMPT_TASK_ID 2 -#define TA1_ID 3 -#define TA2_ID 4 -#define TA3_ID 5 - - -#define PREEMPT_PRIORITY 1 -TEST_EXTERN rtems_id Global_variable; /* example global variable */ - -/* end of include file */ diff --git a/testsuites/itrontests/itrontask03/task1.c b/testsuites/itrontests/itrontask03/task1.c deleted file mode 100644 index f5f75bb456..0000000000 --- a/testsuites/itrontests/itrontask03/task1.c +++ /dev/null @@ -1,57 +0,0 @@ -/* Task_1 - * - * This routine serves as a test task. It verifies the task manager. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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 "system.h" - -void Task_1() -{ - ER status; - - /* - * XXX - Change to itron routine. - */ - - puts( "TA1 - rtems_task_wake_after - sleep 1 second" ); - status = rtems_task_wake_after( 1*rtems_clock_get_ticks_per_second() ); - directive_failed( status, "rtems_task_wake_after" ); - - status = chg_pri( TA3_ID , 2 ); - directive_failed( status, "chg_pri" ); - - puts( "TA1 - chg_pri - set TA3's priority to 2" ); - - puts( "TA1 - sus_tsk - suspend TA2" ); - status = sus_tsk( TA2_ID ); - directive_failed( status, "sus_tsk of TA2" ); - - puts( "TA1 - - delete TA2" ); - status = ter_tsk( TA2_ID ); - directive_failed( status, "ter_tsk of TA2" ); - - /* - * XXX - Change to itron routine. - */ - - puts( "TA1 - rtems_task_wake_after - sleep for 5 seconds" ); - status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() ); - directive_failed( status, "rtems_task_wake_after" ); - - puts( "*** END OF ITRON TASK TEST 3 ***" ); - rtems_test_exit( 0 ); -} diff --git a/testsuites/itrontests/itrontask03/task2.c b/testsuites/itrontests/itrontask03/task2.c deleted file mode 100644 index 2541a80f66..0000000000 --- a/testsuites/itrontests/itrontask03/task2.c +++ /dev/null @@ -1,31 +0,0 @@ -/* Task_2 - * - * This routine serves as a test task. It sleeps for 1 minute but - * does not expect to wake up. Task 1 should suspend then delete it - * so that it appears to never wake up. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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 "system.h" - -void Task_2() -{ - rtems_status_code status; - - puts( "TA2 - rtems_task_wake_after - sleep 1 minute" ); - status = rtems_task_wake_after( 60*rtems_clock_get_ticks_per_second() ); - directive_failed( status, "rtems_task_wake_after in TA2" ); -} diff --git a/testsuites/itrontests/itrontask03/task3.c b/testsuites/itrontests/itrontask03/task3.c deleted file mode 100644 index 7e394d99c3..0000000000 --- a/testsuites/itrontests/itrontask03/task3.c +++ /dev/null @@ -1,39 +0,0 @@ -/* Task_3 - * - * This routine serves as a test task. It simply sleeps for 5 seconds - * and then deletes itself. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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 "system.h" - -void Task_3() -{ - rtems_status_code status; - - /* - * XXX - Convert Later. - */ - - puts( "TA3 - rtems_task_wake_after - sleep 5 seconds" ); - status = rtems_task_wake_after( 5*rtems_clock_get_ticks_per_second() ); - directive_failed( status, "rtems_task_wake_after in TA3" ); - - - puts( "TA3 - exd_tsk - exit and delete self" ); - exd_tsk(); - directive_failed( 0, "exd_tsk" ); -} diff --git a/testsuites/itrontests/itrontask04/.cvsignore b/testsuites/itrontests/itrontask04/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itrontask04/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itrontask04/Makefile.am b/testsuites/itrontests/itrontask04/Makefile.am deleted file mode 100644 index 9d9673b19e..0000000000 --- a/testsuites/itrontests/itrontask04/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itrontask04 -itrontask04_SOURCES = init.c task1.c task2.c task3.c system.h - -dist_rtems_tests_DATA = itrontask04.scn -dist_rtems_tests_DATA += itrontask04.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itrontask04_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itrontask04_OBJECTS) $(itrontask04_LDADD) -LINK_LIBS = $(itrontask04_LDLIBS) - -itrontask04$(EXEEXT): $(itrontask04_OBJECTS) $(itrontask04_DEPENDENCIES) - @rm -f itrontask04$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itrontask04/init.c b/testsuites/itrontests/itrontask04/init.c deleted file mode 100644 index cbcc0f386e..0000000000 --- a/testsuites/itrontests/itrontask04/init.c +++ /dev/null @@ -1,95 +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-2008. - * 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 ) -{ - ER status; - T_CTSK pk_ctsk; - - puts( "\n\n*** ITRON TASK TEST 4 ***" ); - - status = chg_pri( 0, RTEMS_MAXIMUM_PRIORITY - 2 ); - directive_failed( status, "chg_pri to MAX - 2" ); - - pk_ctsk.exinf = NULL; - pk_ctsk.tskatr = TA_HLNG; - pk_ctsk.stksz = RTEMS_MINIMUM_STACK_SIZE; - pk_ctsk.itskpri = 2; - - pk_ctsk.task = Task_1; - status = cre_tsk( TA1_ID, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA1" ); - - pk_ctsk.task = Task_2; - status = cre_tsk( TA2_ID, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA2" ); - - pk_ctsk.itskpri = 1; - pk_ctsk.task = Task_3; - status = cre_tsk( TA3_ID, &pk_ctsk ); - directive_failed( status, "cre_tsk of TA3" ); - - puts("INIT - dis_dsp while starting tasks"); - status = dis_dsp( ); - - /* dispatching disabled -- NOT LEGAL TO PRINT UNTIL ENABLED */ - - directive_failed_with_level( status, "dis_dsp from ITRON_Init", 1 ); - status = sta_tsk( TA1_ID, 0 ); - directive_failed_with_level( status, "sta_tsk of TA1", 1 ); - status = sta_tsk( TA2_ID, 0 ); - directive_failed_with_level( status, "sta_tsk of TA2", 1 ); - status = sta_tsk( TA3_ID, 0 ); - directive_failed_with_level( status, "sta_tsk of TA3", 1 ); - - /* puts( "INIT - suspending TA2 3 times" ); */ - status = sus_tsk( TA2_ID ); - directive_failed_with_level( status, "sus_tsk of TA2", 1 ); - status = sus_tsk( TA2_ID ); - directive_failed_with_level( status, "sus_tsk of TA2", 1 ); - status = sus_tsk( TA2_ID ); - directive_failed_with_level( status, "sus_tsk of TA2", 1 ); - - status = ena_dsp( ); - - /* dispatching enabled -- LEGAL TO PRINT AGAIN */ - - puts("INIT - ena_dsp after starting tasks"); - - puts( "INIT - suspending TA1 3 times" ); - status = sus_tsk( TA1_ID ); - directive_failed( status, "sus_tsk of TA2" ); - status = sus_tsk( TA1_ID ); - directive_failed( status, "sus_tsk of TA2" ); - status = sus_tsk( TA1_ID ); - directive_failed( status, "sus_tsk of TA2" ); - - puts("INIT - exd_tsk"); - exd_tsk(); - directive_failed( 0, "exd_tsk" ); -} diff --git a/testsuites/itrontests/itrontask04/itrontask04.doc b/testsuites/itrontests/itrontask04/itrontask04.doc deleted file mode 100644 index 6b7e16104e..0000000000 --- a/testsuites/itrontests/itrontask04/itrontask04.doc +++ /dev/null @@ -1,49 +0,0 @@ -# -# $Id$ -# -# 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. -# - -This file describes the directives and concepts tested by this test set. - -test set name: itrontask04 - -directives: - chg_pri cre_tsk dis_dsp ena_dsp exd_tsk frsm_tsk rot_rdq rsm_tsk - sta_tsk sus_tsk - -concepts: - - a. This test check task suspend and resume functionality. - - b. Verifies the suspend count works correctly. - - c. Verifies the forced resume works correctly - - d. Verifies the rotate ready queue works correctly - - e. Verifies a task called with rtems suspend can be resumed - with an itron resume call. ( XXX - May not be necessary. ) - - f. verifies rot_rdq can be used by non-equal priority tasks to correctly rotate ready queue. - - g. Verifies enable dispatch and disable dispatch work. - -notes: - - This verision of ITRON does not provide a way for a task to - suspend itself (only another task can suspend it). Therefore, - the test calls rtems_task_suspend to suspend it. - - rtems_task_wake_after calls should be replaced with itron call - when the ITRON functionality is finished. - -output: - - XXX - Verify the output messages on this test. It looks like - the suspend count doesn't look correct. ??? Nov 10, 99 diff --git a/testsuites/itrontests/itrontask04/itrontask04.scn b/testsuites/itrontests/itrontask04/itrontask04.scn deleted file mode 100644 index 539a581c6a..0000000000 --- a/testsuites/itrontests/itrontask04/itrontask04.scn +++ /dev/null @@ -1,34 +0,0 @@ -** ITRON TASK TEST 4 *** -INIT - dis_dsp while starting tasks -TA3 - frsm_tsk TA1 -TA3 - rsm_tsk TA2 -TA3 - rot_rdq priority 2 queue -TA3 - rtems_task_wake_after - sleep 1 second -TA2 - rtems_task_suspend RTEMS_SELF -INIT - ena_dsp after starting tasks -INIT - suspending TA1 3 times -INIT - exd_tsk -TA3 - frsm_tsk TA1 -TA3 - rsm_tsk TA2 -TA3 - rot_rdq priority 2 queue -TA3 - rtems_task_wake_after - sleep 1 second -TA2 - rtems_task_suspend RTEMS_SELF -TA3 - frsm_tsk TA1 -TA3 - rsm_tsk TA2 -TA3 - rot_rdq priority 2 queue -TA3 - rtems_task_wake_after - sleep 1 second -TA2 - rtems_task_suspend RTEMS_SELF -TA2 - rtems_task_suspend RTEMS_SELF -TA3 - frsm_tsk TA1 -TA3 - rsm_tsk TA2 -TA3 - rot_rdq priority 2 queue -TA3 - rtems_task_wake_after - sleep 1 second -TA2 - rtems_task_suspend RTEMS_SELF -TA2 - rtems_task_suspend RTEMS_SELF -TA3 - frsm_tsk TA1 -TA3 - rsm_tsk TA2 -TA3 - rot_rdq priority 2 queue -TA3 - rtems_task_wake_after - sleep 1 second -TA2 - rtems_task_suspend RTEMS_SELF -TA2 - rtems_task_suspend RTEMS_SELF -*** END OF ITRON TASK TEST 4 *** diff --git a/testsuites/itrontests/itrontask04/system.h b/testsuites/itrontests/itrontask04/system.h deleted file mode 100644 index 319435ef34..0000000000 --- a/testsuites/itrontests/itrontask04/system.h +++ /dev/null @@ -1,47 +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 - -/* functions */ - -extern void ITRON_Init( void ); -extern void Preempt_task(void); -extern void Task_1(void); -extern void Task_2(void); -extern void Task_3(void); - -/* configuration information */ - -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 5 - -#define CONFIGURE_ITRON_INIT_TASK_TABLE - -#include - -/* global variables */ - -#define PREEMPT_TASK_ID 2 -#define TA1_ID 3 -#define TA2_ID 4 -#define TA3_ID 5 - -TEST_EXTERN rtems_id Global_variable; /* example global variable */ - -/* end of include file */ diff --git a/testsuites/itrontests/itrontask04/task1.c b/testsuites/itrontests/itrontask04/task1.c deleted file mode 100644 index b284c48bb4..0000000000 --- a/testsuites/itrontests/itrontask04/task1.c +++ /dev/null @@ -1,38 +0,0 @@ -/* Task_1 - * - * This routine serves as a test task. It verifies the task manager. - * - * Input parameters: - * argument - task argument - * - * 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$ - */ - -#include "system.h" - -/* - * XXX - This test requires tasks to suspend self, yet ITRON defines - * this as an error. - */ - -void Task_1() -{ - rtems_status_code status; - - while (1) { - - puts( "TA2 - rtems_task_suspend RTEMS_SELF" ); - status = rtems_task_suspend( RTEMS_SELF ); - directive_failed( status, "TA2 rtems_task_suspend RTEMS_SELF" ); - - } -} diff --git a/testsuites/itrontests/itrontask04/task2.c b/testsuites/itrontests/itrontask04/task2.c deleted file mode 100644 index beea46211c..0000000000 --- a/testsuites/itrontests/itrontask04/task2.c +++ /dev/null @@ -1,40 +0,0 @@ -/* Task_2 - * - * This routine serves as a test task. It sleeps for 1 minute but - * does not expect to wake up. Task 1 should suspend then delete it - * so that it appears to never wake up. - * - * Input parameters: - * argument - task argument - * - * 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$ - */ - -#include "system.h" - -/* - * XXX - This test requires tasks to suspend self, yet ITRON defines - * this as an error. - */ - -void Task_2() -{ - rtems_status_code status; - - while (1) { - - puts( "TA2 - rtems_task_suspend RTEMS_SELF" ); - status = rtems_task_suspend( RTEMS_SELF ); - directive_failed( status, "TA2 rtems_task_suspend RTEMS_SELF" ); - - } -} diff --git a/testsuites/itrontests/itrontask04/task3.c b/testsuites/itrontests/itrontask04/task3.c deleted file mode 100644 index 41a0576bba..0000000000 --- a/testsuites/itrontests/itrontask04/task3.c +++ /dev/null @@ -1,52 +0,0 @@ -/* Task_3 - * - * This routine serves as a test task. It simply sleeps for 5 seconds - * and then deletes itself. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * 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 "system.h" - -void Task_3(void) -{ - rtems_status_code status; - int i; - - for(i=0; i<5; i++) { - puts("TA3 - frsm_tsk TA1"); - status = frsm_tsk( TA1_ID ); - directive_failed( status, "TA3 - frsm_tsk TA1" ); - - puts("TA3 - rsm_tsk TA2"); - status = rsm_tsk( TA2_ID ); - directive_failed( status, "TA3 - rsm_tsk TA2" ); - - puts( "TA3 - rot_rdq priority 2 queue"); - status = rot_rdq( 2 ); - directive_failed( status, "rot_rdq for 2" ); - - /* - * XXX - Convert Later. - */ - - puts( "TA3 - rtems_task_wake_after - sleep 1 second" ); - status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() ); - directive_failed( status, "rtems_task_wake_after in TA3" ); - } - - puts( "*** END OF ITRON TASK TEST 4 ***" ); - rtems_test_exit( 0 ); -} diff --git a/testsuites/itrontests/itrontime01/.cvsignore b/testsuites/itrontests/itrontime01/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/testsuites/itrontests/itrontime01/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/testsuites/itrontests/itrontime01/Makefile.am b/testsuites/itrontests/itrontime01/Makefile.am deleted file mode 100644 index 61654d861f..0000000000 --- a/testsuites/itrontests/itrontime01/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -## -## $Id$ -## - -MANAGERS = all - -rtems_tests_PROGRAMS = itrontime01 -itrontime01_SOURCES = init.c system.h - -dist_rtems_tests_DATA = itrontime01.scn -dist_rtems_tests_DATA += itrontime01.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -itrontime01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(itrontime01_OBJECTS) $(itrontime01_LDADD) -LINK_LIBS = $(itrontime01_LDLIBS) - -itrontime01$(EXEEXT): $(itrontime01_OBJECTS) $(itrontime01_DEPENDENCIES) - @rm -f itrontime01$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/itrontests/itrontime01/init.c b/testsuites/itrontests/itrontime01/init.c deleted file mode 100644 index 1973d72410..0000000000 --- a/testsuites/itrontests/itrontime01/init.c +++ /dev/null @@ -1,60 +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 - -/* - * get the current time in second since epoch (1970), change it since 1985, - * compute the time in millisecond - * - */ - -int time_sec_epoch( void ) { - -long s_time,t_time,r_time; -long m_sec; - -t_time = time(NULL); -s_time = (1985L-1970L)*365L*24L*60L*60L; -r_time = t_time - s_time; -m_sec = r_time*1000; - -printf( "Time from 1970: %ld\n", t_time ); -printf( "Time between 1970 and 1985: %ld\n", s_time ); -printf( "Time from 1985: %ld\n", r_time ); -printf("milliseconds: %ld\n",m_sec); - -return 0; -} - - - -void ITRON_Init( void ) -{ - printf( "\n\n*** ITRON TIME TEST 01 ***\n" ); - printf( "The Time Services are not completely implemented.\n" ); - printf( "*** END OF ITRON TIME TEST 01 ***\n" ); - rtems_test_exit( 0 ); -} diff --git a/testsuites/itrontests/itrontime01/itrontime01.doc b/testsuites/itrontests/itrontime01/itrontime01.doc deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/testsuites/itrontests/itrontime01/itrontime01.scn b/testsuites/itrontests/itrontime01/itrontime01.scn deleted file mode 100644 index c76eb631fd..0000000000 --- a/testsuites/itrontests/itrontime01/itrontime01.scn +++ /dev/null @@ -1,4 +0,0 @@ -*** ITRON TIME TEST 01 *** -The Time Services are not completely implemented. -*** END OF ITRON TIME TEST 01 *** - diff --git a/testsuites/itrontests/itrontime01/system.h b/testsuites/itrontests/itrontime01/system.h deleted file mode 100644 index 357d58c819..0000000000 --- a/testsuites/itrontests/itrontime01/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-2008. - * 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 */ - -/* NOTICE: the clock driver is explicitly disabled */ -#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER - -#define CONFIGURE_MAXIMUM_ITRON_TASKS 1 - -#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/.cvsignore b/testsuites/tmitrontests/.cvsignore deleted file mode 100644 index bfdfd995be..0000000000 --- a/testsuites/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/testsuites/tmitrontests/ChangeLog b/testsuites/tmitrontests/ChangeLog deleted file mode 100644 index 9384f2237d..0000000000 --- a/testsuites/tmitrontests/ChangeLog +++ /dev/null @@ -1,265 +0,0 @@ -2009-12-08 Joel Sherrill - - * tmitronsem01/system.h: Use rtems_test_assert() consistently instead - of system assert(). rtems_test_assert() is designed to integrate into - the RTEMS test suite infrastructure. - -2009-10-30 Ralf Corsépius - - * include/timesys.h: Use PRId32. - -2009-10-20 Ralf Corsépius - - * configure.ac: Don't add -ansi -fasm to CFLAGS. - -2009-04-03 Ralf Corsépius - - * tmitronsem01/Makefile.am: Makefile.am: Eliminate _exe_/.exe. - -2008-09-17 Joel Sherrill - - * include/timesys.h: Rename STACK_CHECKER_ON to more appropriate - CONFIGURE_STACK_CHECKER_ENABLED. - -2008-08-31 Joel Sherrill - - * tmitronsem01/Makefile.am, tmitronsem01/init.c: Eliminate empty - function from every benchmark timer driver. Fix spelling. - -2008-01-31 Joel Sherrill - - * tmitronsem01/init.c: Change TEST_INIT to CONFIGURE_INIT. Make - tmacros.h available to all POSIX tests. Add a clock_settime case for - < 1988. - -2006-12-02 Ralf Corsépius - - * configure.ac: New BUG-REPORT address. - -2006-10-17 Ralf Corsépius - - * configure.ac: Require autoconf-2.60. Require automake-1.10. - -2006-07-11 Ralf Corsépius - - * tmitronsem01/Makefile.am: Eliminate scndir, docdir. Use - rtems_testsdir instead. - -2005-11-22 Ralf Corsepius - - * configure.ac: Remove RTEMS_ENABLE_BARE, - BARE_CPU_CFLAGS, BARE_CPU_MODEL. - -2005-11-13 Ralf Corsepius - - * tmitronsem01/Makefile.am: Convert to using *_PROGRAMS. - -2005-11-11 Ralf Corsepius - - * tmitronsem01/Makefile.am: Rework. - -2005-11-11 Ralf Corsepius - - * tmitrontests.am: Remove. - * tmitronsem01/Makefile.am: Expand tmitrontests.am. - -2005-11-09 Ralf Corsepius - - * tmitronsem01/Makefile.am: AM_CPPFLAGS += -I..../support/include. - -2005-11-09 Ralf Corsepius - - * tmitrontests.am: Set project_bspdir=$(PROJECT_ROOT) - -2005-11-07 Ralf Corsepius - - * tmitrontests.am: Remove LIB_VARIANT. - -2005-11-07 Ralf Corsepius - - * tmitronsem01/Makefile.am: Remove SRC, PRINT_SRC. - -2005-11-07 Ralf Corsepius - - * Makefile.am: Cleanup. - -2005-11-07 Ralf Corsepius - - * tmitrontests.am: Add $(PGM): ${ARCH}/$(dirstamp). - * tmitronsem01/Makefile.am: - Partial conversion to automake. - -2004-09-24 Ralf Corsepius - - * configure.ac: Require automake > 1.9. - -2004-04-01 Ralf Corsepius - - * tmitronsem01/system.h: Include instead of . - -2004-04-01 Ralf Corsepius - - * tmitronsem01/system.h: Include instead of . - -2004-03-30 Ralf Corsepius - - * include/timesys.h: Convert to using c99 fixed size types. - -2004-03-26 Ralf Corsepius - - * include/Makefile.am: Remove. - * Makefile.am: Merge-in include/Makefile.am. - * configure.ac: Reflect changes above. - -2004-03-25 Ralf Corsepius - - * configure.ac: Add 2nd arg to RTEMS_TOP. - -2004-01-14 Ralf Corsepius - - * tmitronsem01/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES. - Add PRE/TMPINSTALL_FILES to CLEANFILES. - -2003-12-18 Ralf Corsepius - - * tmitrontests.am: Add dirstamp support. - -2003-12-17 Ralf Corsepius - - * tmitrontests.am: Use $(mkdir_p) instead of $(mkinstalldirs). - -2003-12-12 Ralf Corsepius - - * configure.ac: Require automake >= 1.8, autoconf >= 2.59. - -2003-12-01 Ralf Corsepius - - * include/Makefile.am: Reformat. - * tmitronsem01/Makefile.am: Remove all-local: $(ARCH). - -2003-11-10 Ralf Corsepius - - * configure.ac: Reflect having moved to testsuites/. - -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/testsuites/tmitrontests/Makefile.am b/testsuites/tmitrontests/Makefile.am deleted file mode 100644 index 3c8833d195..0000000000 --- a/testsuites/tmitrontests/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -## -## $Id$ -## - -ACLOCAL_AMFLAGS = -I ../aclocal - -noinst_HEADERS = include/timesys.h - -SUBDIRS = tmitronsem01 - -include $(top_srcdir)/../automake/subdirs.am -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/tmitrontests/README b/testsuites/tmitrontests/README deleted file mode 100644 index 65c5d4165d..0000000000 --- a/testsuites/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/testsuites/tmitrontests/configure.ac b/testsuites/tmitrontests/configure.ac deleted file mode 100644 index 9e8de499c7..0000000000 --- a/testsuites/tmitrontests/configure.ac +++ /dev/null @@ -1,34 +0,0 @@ -## Process this file with autoconf to produce a configure script. -## -## $Id$ - -AC_PREREQ(2.60) -AC_INIT([rtems-c-src-tests-tmitrontests],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) -AC_CONFIG_SRCDIR([tmitronsem01]) -RTEMS_TOP([../..],[..]) - -RTEMS_CANONICAL_TARGET_CPU - -AM_INIT_AUTOMAKE([no-define foreign 1.10]) -AM_MAINTAINER_MODE - - -RTEMS_ENV_RTEMSBSP - -RTEMS_PROJECT_ROOT - -RTEMS_PROG_CC_FOR_TARGET - -RTEMS_CANONICALIZE_TOOLS - -RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) - - -OPERATION_COUNT=${OPERATION_COUNT-100} -AC_SUBST(OPERATION_COUNT) - -# Explicitly list all Makefiles here -AC_CONFIG_FILES([Makefile -tmitronsem01/Makefile -]) -AC_OUTPUT diff --git a/testsuites/tmitrontests/include/timesys.h b/testsuites/tmitrontests/include/timesys.h deleted file mode 100644 index 3c7cbdd64f..0000000000 --- a/testsuites/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 %" PRId32 "\n", \ - (_message), \ - (((_total_time) - (_loop_overhead)) / (_iterations)) - (_overhead) \ - ) - -#if defined(CONFIGURE_STACK_CHECKER_ENABLED) || 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 uint32_t end_time; /* ending time variable */ -TEST_EXTERN volatile uint32_t overhead; /* loop overhead variable */ - -/* end of include file */ 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