diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-11-05 19:33:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-11-05 19:33:03 +0000 |
commit | 0de10d21fb3888ec1d3fe1240f6c4597f4bbc594 (patch) | |
tree | 4e32916390be84b0c23e168ac5eb429ab218829c /rtems-test-template/psxtest | |
parent | 0556e28e267b0e5674f8011df85bcacbcc1412d6 (diff) |
2010-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtest/Makefile.am, psxtest/TEST.doc, psxtest/TEST.scn,
psxtest/init.c, psxtest_with_thread/.init.c.swp,
psxtest_with_thread/Makefile.am, psxtest_with_thread/TEST.doc,
psxtest_with_thread/TEST.scn, psxtest_with_thread/init.c,
psxtmtest_blocking/Makefile.am, psxtmtest_blocking/TEST.doc,
psxtmtest_blocking/init.c, psxtmtest_single/Makefile.am,
psxtmtest_single/TEST.doc, psxtmtest_single/init.c,
sptest_with_task/Makefile.am, sptest_with_task/TEST.doc,
sptest_with_task/TEST.scn, sptest_with_task/init.c: New files.
Diffstat (limited to 'rtems-test-template/psxtest')
-rw-r--r-- | rtems-test-template/psxtest/Makefile.am | 25 | ||||
-rw-r--r-- | rtems-test-template/psxtest/TEST.doc | 22 | ||||
-rw-r--r-- | rtems-test-template/psxtest/TEST.scn | 1 | ||||
-rw-r--r-- | rtems-test-template/psxtest/init.c | 39 |
4 files changed, 87 insertions, 0 deletions
diff --git a/rtems-test-template/psxtest/Makefile.am b/rtems-test-template/psxtest/Makefile.am new file mode 100644 index 0000000..eb0e447 --- /dev/null +++ b/rtems-test-template/psxtest/Makefile.am @@ -0,0 +1,25 @@ +## +## $Id$ +## + +rtems_tests_PROGRAMS = @LOWER@ +@LOWER@_SOURCES = init.c + +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)/include +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/psxtest/TEST.doc b/rtems-test-template/psxtest/TEST.doc new file mode 100644 index 0000000..5c5378c --- /dev/null +++ b/rtems-test-template/psxtest/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/psxtest/TEST.scn b/rtems-test-template/psxtest/TEST.scn new file mode 100644 index 0000000..a636120 --- /dev/null +++ b/rtems-test-template/psxtest/TEST.scn @@ -0,0 +1 @@ +XXX fill in with test output diff --git a/rtems-test-template/psxtest/init.c b/rtems-test-template/psxtest/init.c new file mode 100644 index 0000000..66a5986 --- /dev/null +++ b/rtems-test-template/psxtest/init.c @@ -0,0 +1,39 @@ +/* + * 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$ + */ + +#include <tmacros.h> +#include "test_support.h" + +void *POSIX_Init( + rtems_task_argument argument +) +{ + puts( "\n\n*** POSIX TEST @DESC@ ***" ); + + /* XXX test code goes here */ + + puts( "*** END OF POSIX TEST @DESC@ ***" ); + + rtems_test_exit(0); +} + +/* configuration information */ + +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER + +#define CONFIGURE_MAXIMUM_POSIX_THREADS 2 + +#define CONFIGURE_POSIX_INIT_THREAD_TABLE + +#define CONFIGURE_INIT +#include <rtems/confdefs.h> +/* end of file */ |