change log for rtems-testing (2010-11-05)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri Nov 5 20:10:07 UTC 2010


 *joel*:
2010-11-05	Joel Sherrill <joel.sherrill at oarcorp.com>

	* gdb-sim-run.in, gdb-sim.in, psim.in: Add trace support.

M   1.90  sim-scripts/ChangeLog
M   1.48  sim-scripts/gdb-sim-run.in
M   1.18  sim-scripts/gdb-sim.in
M    1.9  sim-scripts/psim.in

diff -u rtems-testing/sim-scripts/ChangeLog:1.89 rtems-testing/sim-scripts/ChangeLog:1.90
--- rtems-testing/sim-scripts/ChangeLog:1.89	Thu Jul 22 06:38:15 2010
+++ rtems-testing/sim-scripts/ChangeLog	Fri Nov  5 14:31:57 2010
@@ -1,3 +1,7 @@
+2010-11-05	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* gdb-sim-run.in, gdb-sim.in, psim.in: Add trace support.
+
 2010-07-21	Vinu Rajashekhar <vinutheraj at gmail.com>
 
 	* pc386.in: Add Go support. Plus some cleanup from Joel.

diff -u rtems-testing/sim-scripts/gdb-sim-run.in:1.47 rtems-testing/sim-scripts/gdb-sim-run.in:1.48
--- rtems-testing/sim-scripts/gdb-sim-run.in:1.47	Thu Nov  4 21:53:42 2010
+++ rtems-testing/sim-scripts/gdb-sim-run.in	Fri Nov  5 14:31:57 2010
@@ -84,6 +84,7 @@
 use_sysv_ipc="no"
 generate_tree_and_exit="no"
 logdir="log"
+doTrace="no"
 enable_display_adapter="no"
 enable_network="no"
 rtems_test="no"
@@ -102,6 +103,7 @@
    l) defaultLimit="$OPTARG";;
    L) logdir="$OPTARG";;
    s) use_sysv_ipc="yes";;
+   t) doTrace="yes";;
    T) rtems_test="yes";;
    *) fatal;;
  esac

diff -u rtems-testing/sim-scripts/gdb-sim.in:1.17 rtems-testing/sim-scripts/gdb-sim.in:1.18
--- rtems-testing/sim-scripts/gdb-sim.in:1.17	Tue Jul 20 11:21:21 2010
+++ rtems-testing/sim-scripts/gdb-sim.in	Fri Nov  5 14:31:57 2010
@@ -1,4 +1,4 @@
-#! /bin/bassh
+#! /bin/bash
 #
 #  Framework script tailored for the @CPU@/@BSP@
 #

diff -u rtems-testing/sim-scripts/psim.in:1.8 rtems-testing/sim-scripts/psim.in:1.9
--- rtems-testing/sim-scripts/psim.in:1.8	Mon Oct 12 16:16:23 2009
+++ rtems-testing/sim-scripts/psim.in	Fri Nov  5 14:31:57 2010
@@ -6,7 +6,10 @@
 
 runARGS()
 {
-  echo "-f ${bspTreeFile} ${1}"
+  if [ ${doTrace} = "yes" ] ; then
+    TRACEARGS="-t all"
+  fi
+  echo "-f ${bspTreeFile} ${TRACEARGS} ${1}"
 }
 
 checkBSPFaults()
@@ -31,7 +34,10 @@
 
 bspGenerateGDBCommands()
 {
-echo "tar sim -f ${bspTreeFile}"
+if [ ${doTrace} = "yes" ] ; then
+  TRACEARGS="-t all"
+fi
+echo "tar sim -f ${bspTreeFile} ${TRACEARGS}"
 echo "load"
 }
 


 *joel*:
2010-11-05	Joel Sherrill <joel.sherrill at oarcorp.com>

	* psxtest/Makefile.am, psxtest/TEST.doc, psxtest/TEST.scn,
	psxtest/init.c, psxtest_with_thread/.init.c.swp,
	psxtest_with_thread/Makefile.am, psxtest_with_thread/TEST.doc,
	psxtest_with_thread/TEST.scn, psxtest_with_thread/init.c,
	psxtmtest_blocking/Makefile.am, psxtmtest_blocking/TEST.doc,
	psxtmtest_blocking/init.c, psxtmtest_single/Makefile.am,
	psxtmtest_single/TEST.doc, psxtmtest_single/init.c,
	sptest_with_task/Makefile.am, sptest_with_task/TEST.doc,
	sptest_with_task/TEST.scn, sptest_with_task/init.c: New files.

M    1.8  rtems-test-template/ChangeLog
A    1.1  rtems-test-template/psxtest/Makefile.am
A    1.1  rtems-test-template/psxtest/TEST.doc
A    1.1  rtems-test-template/psxtest/TEST.scn
A    1.1  rtems-test-template/psxtest/init.c
A    1.1  rtems-test-template/psxtest_with_thread/.init.c.swp
A    1.1  rtems-test-template/psxtest_with_thread/Makefile.am
A    1.1  rtems-test-template/psxtest_with_thread/TEST.doc
A    1.1  rtems-test-template/psxtest_with_thread/TEST.scn
A    1.1  rtems-test-template/psxtest_with_thread/init.c
A    1.1  rtems-test-template/psxtmtest_blocking/Makefile.am
A    1.1  rtems-test-template/psxtmtest_blocking/TEST.doc
A    1.1  rtems-test-template/psxtmtest_blocking/init.c
A    1.1  rtems-test-template/psxtmtest_single/Makefile.am
A    1.1  rtems-test-template/psxtmtest_single/TEST.doc
A    1.1  rtems-test-template/psxtmtest_single/init.c
A    1.1  rtems-test-template/sptest_with_task/Makefile.am
A    1.1  rtems-test-template/sptest_with_task/TEST.doc
A    1.1  rtems-test-template/sptest_with_task/TEST.scn
A    1.1  rtems-test-template/sptest_with_task/init.c

diff -u rtems-testing/rtems-test-template/ChangeLog:1.7 rtems-testing/rtems-test-template/ChangeLog:1.8
--- rtems-testing/rtems-test-template/ChangeLog:1.7	Mon Jul  5 19:12:30 2010
+++ rtems-testing/rtems-test-template/ChangeLog	Fri Nov  5 14:33:03 2010
@@ -1,3 +1,15 @@
+2010-11-05	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* psxtest/Makefile.am, psxtest/TEST.doc, psxtest/TEST.scn,
+	psxtest/init.c, psxtest_with_thread/.init.c.swp,
+	psxtest_with_thread/Makefile.am, psxtest_with_thread/TEST.doc,
+	psxtest_with_thread/TEST.scn, psxtest_with_thread/init.c,
+	psxtmtest_blocking/Makefile.am, psxtmtest_blocking/TEST.doc,
+	psxtmtest_blocking/init.c, psxtmtest_single/Makefile.am,
+	psxtmtest_single/TEST.doc, psxtmtest_single/init.c,
+	sptest_with_task/Makefile.am, sptest_with_task/TEST.doc,
+	sptest_with_task/TEST.scn, sptest_with_task/init.c: New files.
+
 2010-07-05	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* sptest_operation_from_tsr/init.c: Update year.

diff -u /dev/null rtems-testing/rtems-test-template/psxtest/Makefile.am:1.1
--- /dev/null	Fri Nov  5 15:10:05 2010
+++ rtems-testing/rtems-test-template/psxtest/Makefile.am	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,25 @@
+##
+## $Id$
+##
+
+rtems_tests_PROGRAMS = @LOWER@
+ at LOWER@_SOURCES = init.c
+
+dist_rtems_tests_DATA = @LOWER at .scn
+dist_rtems_tests_DATA += @LOWER at .doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/include
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(@LOWER at _OBJECTS) $(@LOWER at _LDADD)
+LINK_LIBS = $(@LOWER at _LDLIBS)
+
+ at LOWER@$(EXEEXT): $(@LOWER at _OBJECTS) $(@LOWER at _DEPENDENCIES)
+	@rm -f @LOWER@$(EXEEXT)
+	$(make-exe)
+
+include $(top_srcdir)/../automake/local.am

diff -u /dev/null rtems-testing/rtems-test-template/psxtest/TEST.doc:1.1
--- /dev/null	Fri Nov  5 15:10:05 2010
+++ rtems-testing/rtems-test-template/psxtest/TEST.doc	Fri Nov  5 14:33:03 2010
@@ -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/psxtest/TEST.scn:1.1
--- /dev/null	Fri Nov  5 15:10:05 2010
+++ rtems-testing/rtems-test-template/psxtest/TEST.scn	Fri Nov  5 14:33:03 2010
@@ -0,0 +1 @@
+XXX fill in with test output

diff -u /dev/null rtems-testing/rtems-test-template/psxtest/init.c:1.1
--- /dev/null	Fri Nov  5 15:10:05 2010
+++ rtems-testing/rtems-test-template/psxtest/init.c	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,39 @@
+/*
+ *  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 <tmacros.h>
+#include "test_support.h"
+
+void *POSIX_Init(
+  rtems_task_argument argument
+)
+{
+  puts( "\n\n*** POSIX TEST @DESC@ ***" );
+
+  /* XXX test code goes here */
+  
+  puts( "*** END OF POSIX TEST @DESC@ ***" );
+
+  rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS        2
+
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */

*** DIFF FAILED:  ***
diff -u /dev/null rtems-testing/rtems-test-template/psxtest_with_thread/Makefile.am:1.1
--- /dev/null	Fri Nov  5 15:10:05 2010
+++ rtems-testing/rtems-test-template/psxtest_with_thread/Makefile.am	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,25 @@
+##
+## $Id$
+##
+
+rtems_tests_PROGRAMS = @LOWER@
+ at LOWER@_SOURCES = init.c
+
+dist_rtems_tests_DATA = @LOWER at .scn
+dist_rtems_tests_DATA += @LOWER at .doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/include
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(@LOWER at _OBJECTS) $(@LOWER at _LDADD)
+LINK_LIBS = $(@LOWER at _LDLIBS)
+
+ at LOWER@$(EXEEXT): $(@LOWER at _OBJECTS) $(@LOWER at _DEPENDENCIES)
+	@rm -f @LOWER@$(EXEEXT)
+	$(make-exe)
+
+include $(top_srcdir)/../automake/local.am

diff -u /dev/null rtems-testing/rtems-test-template/psxtest_with_thread/TEST.doc:1.1
--- /dev/null	Fri Nov  5 15:10:05 2010
+++ rtems-testing/rtems-test-template/psxtest_with_thread/TEST.doc	Fri Nov  5 14:33:03 2010
@@ -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/psxtest_with_thread/TEST.scn:1.1
--- /dev/null	Fri Nov  5 15:10:06 2010
+++ rtems-testing/rtems-test-template/psxtest_with_thread/TEST.scn	Fri Nov  5 14:33:03 2010
@@ -0,0 +1 @@
+XXX fill in with test output

diff -u /dev/null rtems-testing/rtems-test-template/psxtest_with_thread/init.c:1.1
--- /dev/null	Fri Nov  5 15:10:06 2010
+++ rtems-testing/rtems-test-template/psxtest_with_thread/init.c	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,52 @@
+/*
+ *  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 <tmacros.h>
+#include "test_support.h"
+#include <pthread.h>
+
+pthread_t ThreadId;
+
+void *TestThread(
+  void *argument
+)
+{
+  return NULL;
+}
+
+void *POSIX_Init(
+  rtems_task_argument argument
+)
+{
+  int status;
+
+  puts( "\n\n*** POSIX TEST @DESC@ ***" );
+
+  status = pthread_create( &ThreadId, NULL, TestThread, NULL );
+  rtems_test_assert( !status );
+
+  puts( "*** END OF POSIX TEST @DESC@ ***" );
+
+  rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS        2
+
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */

diff -u /dev/null rtems-testing/rtems-test-template/psxtmtest_blocking/Makefile.am:1.1
--- /dev/null	Fri Nov  5 15:10:06 2010
+++ rtems-testing/rtems-test-template/psxtmtest_blocking/Makefile.am	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,30 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = @LOWER@
+ at LOWER@_SOURCES = init.c ../../tmtests/include/timesys.h \
+    ../../support/src/tmtests_empty_function.c \
+    ../../support/src/tmtests_support.c
+
+dist_rtems_tests_DATA = @LOWER at .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 = $(@LOWER at _OBJECTS) $(@LOWER at _LDADD)
+LINK_LIBS = $(@LOWER at _LDLIBS)
+
+ at LOWER@$(EXEEXT): $(@LOWER at _OBJECTS) $(@LOWER at _DEPENDENCIES)
+	@rm -f @LOWER@$(EXEEXT)
+	$(make-exe)
+
+include $(top_srcdir)/../automake/local.am

diff -u /dev/null rtems-testing/rtems-test-template/psxtmtest_blocking/TEST.doc:1.1
--- /dev/null	Fri Nov  5 15:10:06 2010
+++ rtems-testing/rtems-test-template/psxtmtest_blocking/TEST.doc	Fri Nov  5 14:33:03 2010
@@ -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 -u /dev/null rtems-testing/rtems-test-template/psxtmtest_blocking/init.c:1.1
--- /dev/null	Fri Nov  5 15:10:06 2010
+++ rtems-testing/rtems-test-template/psxtmtest_blocking/init.c	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,84 @@
+/*
+ *  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"
+#include <pthread.h>
+#include <rtems/timerdrv.h>
+
+void *Low(
+  void *argument
+)
+{
+  long end_time;
+
+  end_time = benchmark_timer_read();
+
+  put_time(
+    "XXX",
+    end_time,
+    OPERATION_COUNT,
+    0,
+    0
+  );
+
+  puts( "*** END OF POSIX TIME TEST @DESC@ ***" );
+
+  rtems_test_exit( 0 );
+  return NULL;
+}
+
+void *Middle(
+  void *argument
+)
+{
+  /* XXX blocking operation goes here */
+  return NULL;
+}
+
+void *POSIX_Init(
+  void *argument
+)
+{
+  int        i;
+  int        status;
+  pthread_t  threadId;
+
+  puts( "\n\n*** POSIX TIME TEST @DESC@ ***" );
+
+  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();
+  /* XXX blocking operation goes here */
+  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-testing/rtems-test-template/psxtmtest_single/Makefile.am:1.1
--- /dev/null	Fri Nov  5 15:10:06 2010
+++ rtems-testing/rtems-test-template/psxtmtest_single/Makefile.am	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,30 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = @LOWER@
+ at LOWER@_SOURCES = init.c ../../tmtests/include/timesys.h \
+    ../../support/src/tmtests_empty_function.c \
+    ../../support/src/tmtests_support.c
+
+dist_rtems_tests_DATA = @LOWER at .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 = $(@LOWER at _OBJECTS) $(@LOWER at _LDADD)
+LINK_LIBS = $(@LOWER at _LDLIBS)
+
+ at LOWER@$(EXEEXT): $(@LOWER at _OBJECTS) $(@LOWER at _DEPENDENCIES)
+	@rm -f @LOWER@$(EXEEXT)
+	$(make-exe)
+
+include $(top_srcdir)/../automake/local.am

diff -u /dev/null rtems-testing/rtems-test-template/psxtmtest_single/TEST.doc:1.1
--- /dev/null	Fri Nov  5 15:10:06 2010
+++ rtems-testing/rtems-test-template/psxtmtest_single/TEST.doc	Fri Nov  5 14:33:03 2010
@@ -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 -u /dev/null rtems-testing/rtems-test-template/psxtmtest_single/init.c:1.1
--- /dev/null	Fri Nov  5 15:10:06 2010
+++ rtems-testing/rtems-test-template/psxtmtest_single/init.c	Fri Nov  5 14:33:03 2010
@@ -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"
+
+void *POSIX_Init(
+  void *argument
+)
+{
+  puts( "\n\n*** POSIX TIME TEST @DESC@ ***" );
+
+  /* XXX test code goes here */
+  
+  puts( "*** END OF POSIX TIME TEST @DESC@ ***" );
+
+  rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS     2
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */

diff -u /dev/null rtems-testing/rtems-test-template/sptest_with_task/Makefile.am:1.1
--- /dev/null	Fri Nov  5 15:10:07 2010
+++ rtems-testing/rtems-test-template/sptest_with_task/Makefile.am	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,26 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = @LOWER@
+ at LOWER@_SOURCES = init.c
+
+dist_rtems_tests_DATA = @LOWER at .scn
+dist_rtems_tests_DATA += @LOWER at .doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(@LOWER at _OBJECTS) $(@LOWER at _LDADD)
+LINK_LIBS = $(@LOWER at _LDLIBS)
+
+ at LOWER@$(EXEEXT): $(@LOWER at _OBJECTS) $(@LOWER at _DEPENDENCIES)
+	@rm -f @LOWER@$(EXEEXT)
+	$(make-exe)
+
+include $(top_srcdir)/../automake/local.am

diff -u /dev/null rtems-testing/rtems-test-template/sptest_with_task/TEST.doc:1.1
--- /dev/null	Fri Nov  5 15:10:07 2010
+++ rtems-testing/rtems-test-template/sptest_with_task/TEST.doc	Fri Nov  5 14:33:03 2010
@@ -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/sptest_with_task/TEST.scn:1.1
--- /dev/null	Fri Nov  5 15:10:07 2010
+++ rtems-testing/rtems-test-template/sptest_with_task/TEST.scn	Fri Nov  5 14:33:03 2010
@@ -0,0 +1 @@
+XXX fill in with test output

diff -u /dev/null rtems-testing/rtems-test-template/sptest_with_task/init.c:1.1
--- /dev/null	Fri Nov  5 15:10:07 2010
+++ rtems-testing/rtems-test-template/sptest_with_task/init.c	Fri Nov  5 14:33:03 2010
@@ -0,0 +1,60 @@
+/*
+ *  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 <tmacros.h>
+#include "test_support.h"
+
+rtems_task Test_task(
+  rtems_task_argument argument
+)
+{
+  (void) rtems_task_delete( RTEMS_SELF );
+}
+
+rtems_task Init(
+  rtems_task_argument argument
+)
+{
+  rtems_status_code status;
+  rtems_id          task_id;
+
+  puts( "\n\n*** TEST @DESC@ ***" );
+
+  status = rtems_task_create(
+    rtems_build_name( 'T', 'E', 'S', 'T' ),
+    1,
+    RTEMS_MINIMUM_STACK_SIZE,
+    RTEMS_DEFAULT_MODES,
+    RTEMS_DEFAULT_ATTRIBUTES,
+    &task_id
+  );
+  directive_failed( status, "rtems_task_create" );
+  
+  status = rtems_task_start( task_id, Test_task, 0 );
+  directive_failed( status, "rtems_task_start" );
+
+  puts( "*** END OF TEST @DESC@ ***" );
+
+  rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS             2
+#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/20101105/33869d94/attachment.html>


More information about the vc mailing list