diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-22 01:27:20 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-22 01:27:20 +0000 |
commit | 9628a69d5fa69de2cdd0e61a2945e7e35cd26046 (patch) | |
tree | 4093af5a5735c1576d4245d06a3b925e4209e9ca /rtems-test-template | |
parent | 433217fa6348542c24174d458d11390af6dd9480 (diff) |
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* spfatal/Makefile.am, spfatal/TEST.doc, spfatal/TEST.scn,
spfatal/testcase.h: New files.
Diffstat (limited to 'rtems-test-template')
-rw-r--r-- | rtems-test-template/ChangeLog | 5 | ||||
-rw-r--r-- | rtems-test-template/spfatal/Makefile.am | 27 | ||||
-rw-r--r-- | rtems-test-template/spfatal/TEST.doc | 22 | ||||
-rw-r--r-- | rtems-test-template/spfatal/TEST.scn | 1 | ||||
-rw-r--r-- | rtems-test-template/spfatal/testcase.h | 25 |
5 files changed, 80 insertions, 0 deletions
diff --git a/rtems-test-template/ChangeLog b/rtems-test-template/ChangeLog index 3127052..b3825ae 100644 --- a/rtems-test-template/ChangeLog +++ b/rtems-test-template/ChangeLog @@ -1,5 +1,10 @@ 2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com> + * spfatal/Makefile.am, spfatal/TEST.doc, spfatal/TEST.scn, + spfatal/testcase.h: New files. + +2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com> + * sptest_operation_from_tsr/init.c: Fix loop. 2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com> diff --git a/rtems-test-template/spfatal/Makefile.am b/rtems-test-template/spfatal/Makefile.am new file mode 100644 index 0000000..dbb16e6 --- /dev/null +++ b/rtems-test-template/spfatal/Makefile.am @@ -0,0 +1,27 @@ +## +## $Id$ +## + +MANAGERS = all + +rtems_tests_PROGRAMS = @LOWER@ +@LOWER@_SOURCES = ../spfatal_support/init.c \ + ../spfatal_support/system.h testcase.h + +dist_rtems_tests_DATA = @LOWER@.scn +dist_rtems_tests_DATA += @LOWER@.doc + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(top_srcdir)/../automake/compile.am +include $(top_srcdir)/../automake/leaf.am + +AM_CPPFLAGS += -I$(top_srcdir)/../support/include + +LINK_OBJS = $(@LOWER@_OBJECTS) $(@LOWER@_LDADD) +LINK_LIBS = $(@LOWER@_LDLIBS) + +@LOWER@$(EXEEXT): $(@LOWER@_OBJECTS) $(@LOWER@_DEPENDENCIES) + @rm -f @LOWER@$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/rtems-test-template/spfatal/TEST.doc b/rtems-test-template/spfatal/TEST.doc new file mode 100644 index 0000000..5c5378c --- /dev/null +++ b/rtems-test-template/spfatal/TEST.doc @@ -0,0 +1,22 @@ +# +# $Id$ +# +# COPYRIGHT (c) 1989-2010. +# 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: @LOWER@ + +directives: + + XXX list them + +concepts: + ++ XXX list them diff --git a/rtems-test-template/spfatal/TEST.scn b/rtems-test-template/spfatal/TEST.scn new file mode 100644 index 0000000..a636120 --- /dev/null +++ b/rtems-test-template/spfatal/TEST.scn @@ -0,0 +1 @@ +XXX fill in with test output diff --git a/rtems-test-template/spfatal/testcase.h b/rtems-test-template/spfatal/testcase.h new file mode 100644 index 0000000..90a03bd --- /dev/null +++ b/rtems-test-template/spfatal/testcase.h @@ -0,0 +1,25 @@ +/* + * COPYRIGHT (c) 1989-2010. + * 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$ + */ + +/* XXX these will have to be tailored */ +#define FATAL_ERROR_TEST_NAME "@DESC@" +#define FATAL_ERROR_DESCRIPTION "@DESC@" +#define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_RTEMS_API +#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE +#define FATAL_ERROR_EXPECTED_ERROR 0 + +void force_error() +{ + /* XXX if not triggered directly or indirectly via a configuration */ + /* XXX error, then do something here to trigger it */ + + /* we will not run this far */ +} |