summaryrefslogtreecommitdiff
path: root/rtems-test-template
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-21 12:37:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-21 12:37:11 +0000
commit5721b79fcdd075df4b8d5984e697078b5e625e07 (patch)
tree33a03f0a6dd4412d2535b1c574291bb4fe8c0c83 /rtems-test-template
parent03aa3253010da87fd0963b8da6b5f6d4a5180e20 (diff)
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, sptest/Makefile.am, sptest/TEST.doc, sptest/TEST.scn, sptest/init.c: New files.
Diffstat (limited to 'rtems-test-template')
-rw-r--r--rtems-test-template/ChangeLog5
-rw-r--r--rtems-test-template/sptest/Makefile.am26
-rw-r--r--rtems-test-template/sptest/TEST.doc22
-rw-r--r--rtems-test-template/sptest/TEST.scn1
-rw-r--r--rtems-test-template/sptest/init.c39
5 files changed, 93 insertions, 0 deletions
diff --git a/rtems-test-template/ChangeLog b/rtems-test-template/ChangeLog
new file mode 100644
index 0000000..ac77073
--- /dev/null
+++ b/rtems-test-template/ChangeLog
@@ -0,0 +1,5 @@
+2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * ChangeLog, sptest/Makefile.am, sptest/TEST.doc, sptest/TEST.scn,
+ sptest/init.c: New files.
+
diff --git a/rtems-test-template/sptest/Makefile.am b/rtems-test-template/sptest/Makefile.am
new file mode 100644
index 0000000..0f35215
--- /dev/null
+++ b/rtems-test-template/sptest/Makefile.am
@@ -0,0 +1,26 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = @LOWER@
+@LOWER@_SOURCES = init.c ../../support/src/spin.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)/../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/sptest/TEST.doc b/rtems-test-template/sptest/TEST.doc
new file mode 100644
index 0000000..5c5378c
--- /dev/null
+++ b/rtems-test-template/sptest/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/sptest/TEST.scn b/rtems-test-template/sptest/TEST.scn
new file mode 100644
index 0000000..a636120
--- /dev/null
+++ b/rtems-test-template/sptest/TEST.scn
@@ -0,0 +1 @@
+XXX fill in with test output
diff --git a/rtems-test-template/sptest/init.c b/rtems-test-template/sptest/init.c
new file mode 100644
index 0000000..bbe71aa
--- /dev/null
+++ b/rtems-test-template/sptest/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"
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+ puts( "\n\n*** TEST @DESC@ ***" );
+
+ /* XXX test code goes here */
+
+ puts( "*** END OF TEST @DESC@ ***" );
+
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */