change log for rtems (2011-06-22)
rtems-vc at rtems.org
rtems-vc at rtems.org
Wed Jun 22 21:17:30 UTC 2011
*joel*:
2011-06-22 Joel Sherrill <joel.sherrill at oarcorp.com>
* Makefile.am, configure.ac: Add test case for sleep - blocking.
* psxtmsleep02/.cvsignore, psxtmsleep02/Makefile.am,
psxtmsleep02/init.c, psxtmsleep02/psxtmsleep02.doc: New files.
M 1.10 testsuites/psxtmtests/ChangeLog
M 1.3 testsuites/psxtmtests/Makefile.am
M 1.5 testsuites/psxtmtests/configure.ac
A 1.1 testsuites/psxtmtests/psxtmsleep02/.cvsignore
A 1.1 testsuites/psxtmtests/psxtmsleep02/Makefile.am
A 1.1 testsuites/psxtmtests/psxtmsleep02/init.c
A 1.1 testsuites/psxtmtests/psxtmsleep02/psxtmsleep02.doc
diff -u rtems/testsuites/psxtmtests/ChangeLog:1.9 rtems/testsuites/psxtmtests/ChangeLog:1.10
--- rtems/testsuites/psxtmtests/ChangeLog:1.9 Mon Jun 13 22:22:32 2011
+++ rtems/testsuites/psxtmtests/ChangeLog Wed Jun 22 15:53:33 2011
@@ -1,3 +1,9 @@
+2011-06-22 Joel Sherrill <joel.sherrill at oarcorp.com>
+
+ * Makefile.am, configure.ac: Add test case for sleep - blocking.
+ * psxtmsleep02/.cvsignore, psxtmsleep02/Makefile.am,
+ psxtmsleep02/init.c, psxtmsleep02/psxtmsleep02.doc: New files.
+
2011-06-13 Joel Sherrill <joel.sherrill at oarcorp.com>
* psxtmsleep01/Makefile.in: Removed.
diff -u rtems/testsuites/psxtmtests/Makefile.am:1.2 rtems/testsuites/psxtmtests/Makefile.am:1.3
--- rtems/testsuites/psxtmtests/Makefile.am:1.2 Mon Jun 13 14:28:56 2011
+++ rtems/testsuites/psxtmtests/Makefile.am Wed Jun 22 15:53:33 2011
@@ -5,10 +5,11 @@
ACLOCAL_AMFLAGS = -I ../aclocal
if HAS_POSIX
-SUBDIRS = \
- psxtmmutex02 \
- psxtmsleep01 \
- psxtmthread01 psxtmthread03
+SUBDIRS = psxtmmutex02
+SUBDIRS += psxtmsleep01
+SUBDIRS += psxtmsleep02
+SUBDIRS += psxtmthread01
+SUBDIRS += psxtmthread03
endif
DIST_SUBDIRS = $(SUBDIRS)
diff -u rtems/testsuites/psxtmtests/configure.ac:1.4 rtems/testsuites/psxtmtests/configure.ac:1.5
--- rtems/testsuites/psxtmtests/configure.ac:1.4 Mon Jun 13 14:28:56 2011
+++ rtems/testsuites/psxtmtests/configure.ac Wed Jun 22 15:53:33 2011
@@ -81,6 +81,7 @@
AC_CONFIG_FILES([Makefile
psxtmmutex02/Makefile
psxtmsleep01/Makefile
+psxtmsleep02/Makefile
psxtmthread01/Makefile
psxtmthread03/Makefile
])
diff -u /dev/null rtems/testsuites/psxtmtests/psxtmsleep02/.cvsignore:1.1
--- /dev/null Wed Jun 22 16:17:30 2011
+++ rtems/testsuites/psxtmtests/psxtmsleep02/.cvsignore Wed Jun 22 15:53:33 2011
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff -u /dev/null rtems/testsuites/psxtmtests/psxtmsleep02/Makefile.am:1.1
--- /dev/null Wed Jun 22 16:17:30 2011
+++ rtems/testsuites/psxtmtests/psxtmsleep02/Makefile.am Wed Jun 22 15:53:33 2011
@@ -0,0 +1,30 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = psxtmsleep02
+psxtmsleep02_SOURCES = init.c ../../tmtests/include/timesys.h \
+ ../../support/src/tmtests_empty_function.c \
+ ../../support/src/tmtests_support.c
+
+dist_rtems_tests_DATA = psxtmsleep02.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+OPERATION_COUNT = @OPERATION_COUNT@
+AM_CPPFLAGS += -I$(top_srcdir)/../tmtests/include
+AM_CPPFLAGS += -DOPERATION_COUNT=$(OPERATION_COUNT)
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(psxtmsleep02_OBJECTS) $(psxtmsleep02_LDADD)
+LINK_LIBS = $(psxtmsleep02_LDLIBS)
+
+psxtmsleep02$(EXEEXT): $(psxtmsleep02_OBJECTS) $(psxtmsleep02_DEPENDENCIES)
+ @rm -f psxtmsleep02$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
diff -u /dev/null rtems/testsuites/psxtmtests/psxtmsleep02/init.c:1.1
--- /dev/null Wed Jun 22 16:17:30 2011
+++ rtems/testsuites/psxtmtests/psxtmsleep02/init.c Wed Jun 22 15:53:33 2011
@@ -0,0 +1,87 @@
+/*
+ * COPYRIGHT (c) 1989-2011.
+ * 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$
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <timesys.h>
+#include <rtems/timerdrv.h>
+#include "test_support.h"
+
+#include <pthread.h>
+
+void *Low(
+ void *argument
+)
+{
+ long end_time;
+
+ end_time = benchmark_timer_read();
+
+ put_time(
+ "sleep - blocking",
+ end_time,
+ OPERATION_COUNT,
+ 0,
+ 0
+ );
+
+ puts( "*** END OF POSIX TIME TEST sleep - blocking ***" );
+
+ rtems_test_exit( 0 );
+ return NULL;
+}
+
+void *Middle(
+ void *argument
+)
+{
+ sleep(1);
+ return NULL;
+}
+
+void *POSIX_Init(
+ void *argument
+)
+{
+ int i;
+ int status;
+ pthread_t threadId;
+
+ puts( "\n\n*** POSIX TIME TEST sleep - blocking ***" );
+
+ for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
+ status = pthread_create( &threadId, NULL, Middle, NULL );
+ rtems_test_assert( !status );
+ }
+
+ status = pthread_create( &threadId, NULL, Low, NULL );
+ rtems_test_assert( !status );
+
+ /* start the timer and switch through all the other tasks */
+ benchmark_timer_initialize();
+ sleep(1);
+ return NULL;
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS OPERATION_COUNT + 2
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+ /* end of file */
diff -u /dev/null rtems/testsuites/psxtmtests/psxtmsleep02/psxtmsleep02.doc:1.1
--- /dev/null Wed Jun 22 16:17:30 2011
+++ rtems/testsuites/psxtmtests/psxtmsleep02/psxtmsleep02.doc Wed Jun 22 15:53:33 2011
@@ -0,0 +1,14 @@
+#
+# $Id$
+#
+# COPYRIGHT (c) 1989-2011.
+# 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:
+
++ sleep - blocking
*joel*:
2011-06-22 Joel Sherrill <joel.sherrill at oarcorp.com>
* psxtmtests_plan.csv: Update.
M 1.11 testsuites/psxtmtests/ChangeLog
M 1.5 testsuites/psxtmtests/psxtmtests_plan.csv
diff -u rtems/testsuites/psxtmtests/ChangeLog:1.10 rtems/testsuites/psxtmtests/ChangeLog:1.11
--- rtems/testsuites/psxtmtests/ChangeLog:1.10 Wed Jun 22 15:53:33 2011
+++ rtems/testsuites/psxtmtests/ChangeLog Wed Jun 22 15:54:34 2011
@@ -1,5 +1,9 @@
2011-06-22 Joel Sherrill <joel.sherrill at oarcorp.com>
+ * psxtmtests_plan.csv: Update.
+
+2011-06-22 Joel Sherrill <joel.sherrill at oarcorp.com>
+
* Makefile.am, configure.ac: Add test case for sleep - blocking.
* psxtmsleep02/.cvsignore, psxtmsleep02/Makefile.am,
psxtmsleep02/init.c, psxtmsleep02/psxtmsleep02.doc: New files.
diff -u rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.4 rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.5
--- rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.4 Mon Jun 13 14:28:56 2011
+++ rtems/testsuites/psxtmtests/psxtmtests_plan.csv Wed Jun 22 15:54:34 2011
@@ -112,7 +112,7 @@
"sem_post - thread waiting, preempt",,,
"sem_getvalue",,"psxtmtest_single",
,,,
-"sleep - yield","psxsleep01","psxtmtest_single","Yes"
-"sleep - blocking","psxsleep02","psxtmtest_blocking",
-"nanosleep - yield","psxnanosleep01","psxtmtest_single",
-"nanosleep - blocking","psxnanosleep02","psxtmtest_blocking",
+"sleep - yield","psxtmsleep01","psxtmtest_single","Yes"
+"sleep - blocking","psxtmsleep02","psxtmtest_blocking","Yes"
+"nanosleep - yield","psxtmnanosleep01","psxtmtest_single",
+"nanosleep - blocking","psxtmnanosleep02","psxtmtest_blocking",
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110622/56ec684a/attachment.html>
More information about the vc
mailing list