summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm35
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-07-10 14:20:39 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-07-14 19:31:00 -0500
commitb6343c61002b421e4d578e9868bedc1f0f0b43d7 (patch)
tree5c26dfacce2523537cb201e5f07de599cf454901 /testsuites/tmtests/tm35
parentcapture01: Add include of assert.h. (diff)
downloadrtems-b6343c61002b421e4d578e9868bedc1f0f0b43d7.tar.bz2
Enhance Semaphore Blocking and Readying Time Test Cases
tm02 and tm03 were modified to be reused for multiple configurations of RTEMS Classic API Semaphores. This added tm31-36. The messages for tm02 and tm03 were modified to indicate the semaphore attributes. tm31 - tm36 were added. This resulted in the following cases: tm02 - rtems_semaphore_obtain: Counting/FIFO not available caller blocks tm03 - rtems_semaphore_release: Counting/FIFO task readied preempts caller tm31 - rtems_semaphore_obtain: Counting/priority not available caller blocks tm32 - rtems_semaphore_release: Counting/priority task readied preempts caller tm33 - rtems_semaphore_obtain: Binary/FIFO not available caller blocks tm34 - rtems_semaphore_release: Binary/FIFO task readied preempts caller tm35 - rtems_semaphore_obtain: Binary/priority not available caller blocks tm36 - rtems_semaphore_release: Binary/priority task readied preempts caller
Diffstat (limited to 'testsuites/tmtests/tm35')
-rw-r--r--testsuites/tmtests/tm35/Makefile.am28
-rw-r--r--testsuites/tmtests/tm35/tm35.doc14
2 files changed, 42 insertions, 0 deletions
diff --git a/testsuites/tmtests/tm35/Makefile.am b/testsuites/tmtests/tm35/Makefile.am
new file mode 100644
index 0000000000..b6c8c91991
--- /dev/null
+++ b/testsuites/tmtests/tm35/Makefile.am
@@ -0,0 +1,28 @@
+
+rtems_tests_PROGRAMS = tm35
+tm35_SOURCES = ../tm02/task1.c
+tm35_SOURCES += ../tm02/system.h
+tm35_SOURCES += ../include/timesys.h
+tm35_SOURCES += ../../support/src/tmtests_empty_function.c
+
+dist_rtems_tests_DATA = tm35.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
+AM_CPPFLAGS += -I$(top_srcdir)/../tm02
+AM_CPPFLAGS += -DTM35
+
+LINK_OBJS = $(tm35_OBJECTS)
+LINK_LIBS = $(tm35_LDLIBS)
+
+tm35$(EXEEXT): $(tm35_OBJECTS) $(tm35_DEPENDENCIES)
+ @rm -f tm35$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/tmtests/tm35/tm35.doc b/testsuites/tmtests/tm35/tm35.doc
new file mode 100644
index 0000000000..e82e284ef0
--- /dev/null
+++ b/testsuites/tmtests/tm35/tm35.doc
@@ -0,0 +1,14 @@
+# COPYRIGHT (c) 1989-2014.
+# 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.org/license/LICENSE.
+#
+
+This test benchmarks the following operations:
+
+ + rtems_semaphore_obtain: binary/priority not available, caller blocks
+
+For more information
+1. tmtests/include/timesys.h
+2. tmtests/README