diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-14 14:29:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-14 14:29:40 +0000 |
commit | 02ba7cac299252839e5cd165bf3c7832be88fa1b (patch) | |
tree | a75667b7f38790c506e33f06ba9680616c5daed4 /testsuites/sptests/spprintk | |
parent | 2009-05-13 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-02ba7cac299252839e5cd165bf3c7832be88fa1b.tar.bz2 |
2009-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, spwatchdog/system.h,
spwkspace/Makefile.am, spwkspace/init.c: Add shell of test for
printk. These will help coverage. Simplify spwkspace.
* spprintk/.cvsignore, spprintk/Makefile.am, spprintk/init.c,
spprintk/spprintk.scn: New files.
* spwkspace/system.h: Removed.
Diffstat (limited to 'testsuites/sptests/spprintk')
-rw-r--r-- | testsuites/sptests/spprintk/.cvsignore | 2 | ||||
-rw-r--r-- | testsuites/sptests/spprintk/Makefile.am | 27 | ||||
-rw-r--r-- | testsuites/sptests/spprintk/init.c | 45 | ||||
-rw-r--r-- | testsuites/sptests/spprintk/spprintk.scn | 0 |
4 files changed, 74 insertions, 0 deletions
diff --git a/testsuites/sptests/spprintk/.cvsignore b/testsuites/sptests/spprintk/.cvsignore new file mode 100644 index 0000000000..282522db03 --- /dev/null +++ b/testsuites/sptests/spprintk/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/testsuites/sptests/spprintk/Makefile.am b/testsuites/sptests/spprintk/Makefile.am new file mode 100644 index 0000000000..1d6ac2b1d0 --- /dev/null +++ b/testsuites/sptests/spprintk/Makefile.am @@ -0,0 +1,27 @@ +## +## $Id$ +## + +MANAGERS = all + +rtems_tests_PROGRAMS = spprintk +spprintk_SOURCES = init.c + +dist_rtems_tests_DATA = spprintk.scn + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(top_srcdir)/../automake/compile.am +include $(top_srcdir)/../automake/leaf.am + +spprintk_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) + +AM_CPPFLAGS += -I$(top_srcdir)/../support/include + +LINK_OBJS = $(spprintk_OBJECTS) $(spprintk_LDADD) +LINK_LIBS = $(spprintk_LDLIBS) + +spprintk$(EXEEXT): $(spprintk_OBJECTS) $(spprintk_DEPENDENCIES) + @rm -f spprintk$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/sptests/spprintk/init.c b/testsuites/sptests/spprintk/init.c new file mode 100644 index 0000000000..382be54d79 --- /dev/null +++ b/testsuites/sptests/spprintk/init.c @@ -0,0 +1,45 @@ +/* + * Exercise Printk + * + * 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 <tmacros.h> + +rtems_task Init( + rtems_task_argument argument +) +{ + void *p1; + bool retbool; + Heap_Information_block info; + + puts( "\n\n*** TEST PRINTK ***" ); + + printk( "bad format -- %%q in parentheses (%q)\n" ); + + printk( "bad format -- %%lq in parentheses (%lq)\n" ); + + puts( "*** END OF TEST PRINTK ***" ); + rtems_test_exit( 0 ); +} + +/* configuration information */ + +#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER + +#define CONFIGURE_MAXIMUM_TASKS 1 + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_INIT + +#include <rtems/confdefs.h> + diff --git a/testsuites/sptests/spprintk/spprintk.scn b/testsuites/sptests/spprintk/spprintk.scn new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/testsuites/sptests/spprintk/spprintk.scn |