summaryrefslogtreecommitdiff
path: root/rtems-test-template
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-21 16:51:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-21 16:51:16 +0000
commitcc67fa7cac07b90f3ee3159001f5a831f592cd86 (patch)
tree9a972832e271d63c0f3550f4476051446ad37531 /rtems-test-template
parentdf40b83e182de12c7071ce843394b999341bdc12 (diff)
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* tmtest/Makefile.am, tmtest/TEST.doc, tmtest/init.c: New files.
Diffstat (limited to 'rtems-test-template')
-rw-r--r--rtems-test-template/ChangeLog4
-rw-r--r--rtems-test-template/tmtest/Makefile.am29
-rw-r--r--rtems-test-template/tmtest/TEST.doc14
-rw-r--r--rtems-test-template/tmtest/init.c41
4 files changed, 88 insertions, 0 deletions
diff --git a/rtems-test-template/ChangeLog b/rtems-test-template/ChangeLog
index ac77073..6087ea0 100644
--- a/rtems-test-template/ChangeLog
+++ b/rtems-test-template/ChangeLog
@@ -1,5 +1,9 @@
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * tmtest/Makefile.am, tmtest/TEST.doc, tmtest/init.c: New files.
+
+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/tmtest/Makefile.am b/rtems-test-template/tmtest/Makefile.am
new file mode 100644
index 0000000..debad1d
--- /dev/null
+++ b/rtems-test-template/tmtest/Makefile.am
@@ -0,0 +1,29 @@
+##
+## $Id$
+##
+
+MANAGERS = io rate_monotonic semaphore
+
+rtems_tests_PROGRAMS = @LOWER@
+@LOWER@_SOURCES = init.c ../include/timesys.h \
+ ../../support/src/tmtests_empty_function.c \
+ ../../support/src/tmtests_support.c
+
+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
+
+OPERATION_COUNT = @OPERATION_COUNT@
+AM_CPPFLAGS += -I$(top_srcdir)/include -DOPERATION_COUNT=$(OPERATION_COUNT)
+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/tmtest/TEST.doc b/rtems-test-template/tmtest/TEST.doc
new file mode 100644
index 0000000..1520da7
--- /dev/null
+++ b/rtems-test-template/tmtest/TEST.doc
@@ -0,0 +1,14 @@
+#
+# $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 test benchmarks the following operations:
+
++ TBD
diff --git a/rtems-test-template/tmtest/init.c b/rtems-test-template/tmtest/init.c
new file mode 100644
index 0000000..764dc75
--- /dev/null
+++ b/rtems-test-template/tmtest/init.c
@@ -0,0 +1,41 @@
+/*
+ * 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 <coverhd.h>
+#include <tmacros.h>
+#include <timesys.h>
+#include "test_support.h"
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+ puts( "\n\n*** TIME TEST @DESC@ ***" );
+
+ /* XXX test code goes here */
+
+ puts( "*** END OF TIME TEST @DESC@ ***" );
+
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */