change log for rtems-testing (2011-06-13)
rtems-vc at rtems.org
rtems-vc at rtems.org
Mon Jun 13 20:10:02 UTC 2011
*joel*:
2011-06-13 Joel Sherrill <joel.sherrill at oarcorp.com>
* psxtmtest_single/init.c: Fine tune a bit.
* smptest/TEST.doc, smptest/TEST.scn, smptest/init.c: New files.
M 1.11 rtems-test-template/ChangeLog
M 1.3 rtems-test-template/psxtmtest_single/init.c
A 1.1 rtems-test-template/smptest/TEST.doc
A 1.1 rtems-test-template/smptest/TEST.scn
A 1.1 rtems-test-template/smptest/init.c
diff -u rtems-testing/rtems-test-template/ChangeLog:1.10 rtems-testing/rtems-test-template/ChangeLog:1.11
--- rtems-testing/rtems-test-template/ChangeLog:1.10 Fri Jun 10 08:19:07 2011
+++ rtems-testing/rtems-test-template/ChangeLog Mon Jun 13 14:28:14 2011
@@ -1,3 +1,8 @@
+2011-06-13 Joel Sherrill <joel.sherrill at oarcorp.com>
+
+ * psxtmtest_single/init.c: Fine tune a bit.
+ * smptest/TEST.doc, smptest/TEST.scn, smptest/init.c: New files.
+
2011-06-10 Joel Sherrill <joel.sherrill at oarcorp.com>
* psxtmtest_single/init.c: More meat.
diff -u rtems-testing/rtems-test-template/psxtmtest_single/init.c:1.2 rtems-testing/rtems-test-template/psxtmtest_single/init.c:1.3
--- rtems-testing/rtems-test-template/psxtmtest_single/init.c:1.2 Fri Jun 10 08:19:07 2011
+++ rtems-testing/rtems-test-template/psxtmtest_single/init.c Mon Jun 13 14:28:14 2011
@@ -9,9 +9,12 @@
* $Id$
*/
-#include <coverhd.h>
-#include <tmacros.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <timesys.h>
+#include <rtems/timerdrv.h>
#include "test_support.h"
void *POSIX_Init(
@@ -20,7 +23,7 @@
{
long end_time;
- puts( "\n\n*** POSIX TIME TEST @DESC@ ***" );
+ puts( "\n\n*** POSIX TIME TEST @UPPER@ ***" );
/* XXX any required initialization goes here */
@@ -38,7 +41,7 @@
0
);
- puts( "*** END OF POSIX TIME TEST @DESC@ ***" );
+ puts( "*** END OF POSIX TIME TEST @UPPER@ ***" );
rtems_test_exit(0);
}
diff -u /dev/null rtems-testing/rtems-test-template/smptest/TEST.doc:1.1
--- /dev/null Mon Jun 13 15:10:02 2011
+++ rtems-testing/rtems-test-template/smptest/TEST.doc Mon Jun 13 14:28:14 2011
@@ -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 -u /dev/null rtems-testing/rtems-test-template/smptest/TEST.scn:1.1
--- /dev/null Mon Jun 13 15:10:02 2011
+++ rtems-testing/rtems-test-template/smptest/TEST.scn Mon Jun 13 14:28:14 2011
@@ -0,0 +1 @@
+XXX fill in with test output
diff -u /dev/null rtems-testing/rtems-test-template/smptest/init.c:1.1
--- /dev/null Mon Jun 13 15:10:02 2011
+++ rtems-testing/rtems-test-template/smptest/init.c Mon Jun 13 14:28:14 2011
@@ -0,0 +1,75 @@
+/*
+ * 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$
+ */
+
+#include <tmacros.h>
+#include "test_support.h"
+
+rtems_task Test_task(
+ rtems_task_argument argument
+)
+{
+ /* XXX something goes here */
+}
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+ int i;
+ char ch;
+ int cpu_num;
+ rtems_id id;
+ rtems_status_code status;
+
+ puts( "\n\n*** TEST @UPPER@ ***" );
+
+ for ( i=0; i<_SMP_Processor_count-1; i++ ) {
+ ch = '1' + i;
+
+ status = rtems_task_create(
+ rtems_build_name( 'T', 'A', ch, ' ' ),
+ 1,
+ RTEMS_MINIMUM_STACK_SIZE,
+ RTEMS_DEFAULT_MODES,
+ RTEMS_DEFAULT_ATTRIBUTES,
+ &id
+ );
+ directive_failed( status, "task create" );
+
+ cpu_num = bsp_smp_processor_id();
+ printf(" CPU %d start task TA%c\n", cpu_num, ch);
+
+ status = rtems_task_start( id, Test_task, i+1 );
+ directive_failed( status, "task start" );
+ }
+
+ /* XXX something goes here */
+
+ puts( "*** END OF TEST @UPPER@ ***" );
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_SMP_APPLICATION
+#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 2
+
+#define CONFIGURE_MAXIMUM_TASKS \
+ (1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */
--
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/20110613/65465e62/attachment.html>
More information about the vc
mailing list