diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-07-10 14:20:39 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-07-14 19:31:00 -0500 |
commit | b6343c61002b421e4d578e9868bedc1f0f0b43d7 (patch) | |
tree | 5c26dfacce2523537cb201e5f07de599cf454901 /testsuites/tmtests/tm32 | |
parent | capture01: Add include of assert.h. (diff) | |
download | rtems-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/tm32')
-rw-r--r-- | testsuites/tmtests/tm32/Makefile.am | 27 | ||||
-rw-r--r-- | testsuites/tmtests/tm32/tm32.doc | 14 |
2 files changed, 41 insertions, 0 deletions
diff --git a/testsuites/tmtests/tm32/Makefile.am b/testsuites/tmtests/tm32/Makefile.am new file mode 100644 index 0000000000..7fe71fd60d --- /dev/null +++ b/testsuites/tmtests/tm32/Makefile.am @@ -0,0 +1,27 @@ + +rtems_tests_PROGRAMS = tm32 +tm32_SOURCES = ../tm03/task1.c +tm32_SOURCES += ../tm03/system.h +tm32_SOURCES += ../include/timesys.h +tm32_SOURCES += ../../support/src/tmtests_empty_function.c + +dist_rtems_tests_DATA = tm32.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)/../tm03 +AM_CPPFLAGS += -DTM32 + +LINK_OBJS = $(tm32_OBJECTS) +LINK_LIBS = $(tm32_LDLIBS) + +tm32$(EXEEXT): $(tm32_OBJECTS) $(tm32_DEPENDENCIES) + @rm -f tm32$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/tmtests/tm32/tm32.doc b/testsuites/tmtests/tm32/tm32.doc new file mode 100644 index 0000000000..2087d42a6b --- /dev/null +++ b/testsuites/tmtests/tm32/tm32.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_release: counting/priority task readied preempts caller + +For more information +1. tmtests/include/timesys.h +2. tmtests/README |