[rtems commit] smptests/smp06: Delete test

Sebastian Huber sebh at rtems.org
Mon Nov 11 09:23:31 UTC 2013


Module:    rtems
Branch:    master
Commit:    7eb6444d0831d11ca445976fa3fa0bcb4cf31dcb
Changeset: http://git.rtems.org/rtems/commit/?id=7eb6444d0831d11ca445976fa3fa0bcb4cf31dcb

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Nov 11 10:25:28 2013 +0100

smptests/smp06: Delete test

This test referred to the first version of the simple SMP scheduler
which used the thread execution time for its scheduling decisions.  For
the current simple SMP scheduler, the execution time of threads is
irrelevant (like in the corresponding single-processor variant).

---

 testsuites/smptests/Makefile.am       |    1 -
 testsuites/smptests/configure.ac      |    1 -
 testsuites/smptests/smp06/Makefile.am |   22 ------
 testsuites/smptests/smp06/init.c      |  134 ---------------------------------
 testsuites/smptests/smp06/smp06.doc   |   22 ------
 testsuites/smptests/smp06/smp06.scn   |    7 --
 6 files changed, 0 insertions(+), 187 deletions(-)

diff --git a/testsuites/smptests/Makefile.am b/testsuites/smptests/Makefile.am
index 3fa0d20..ba44b76 100644
--- a/testsuites/smptests/Makefile.am
+++ b/testsuites/smptests/Makefile.am
@@ -7,7 +7,6 @@ SUBDIRS += smp01
 SUBDIRS += smp02
 SUBDIRS += smp03
 SUBDIRS += smp05
-SUBDIRS += smp06
 SUBDIRS += smp07
 SUBDIRS += smp08
 SUBDIRS += smp09
diff --git a/testsuites/smptests/configure.ac b/testsuites/smptests/configure.ac
index 3536c11..063ae97 100644
--- a/testsuites/smptests/configure.ac
+++ b/testsuites/smptests/configure.ac
@@ -42,7 +42,6 @@ smp01/Makefile
 smp02/Makefile
 smp03/Makefile
 smp05/Makefile
-smp06/Makefile
 smp07/Makefile
 smp08/Makefile
 smp09/Makefile
diff --git a/testsuites/smptests/smp06/Makefile.am b/testsuites/smptests/smp06/Makefile.am
deleted file mode 100644
index d7d133f..0000000
--- a/testsuites/smptests/smp06/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-
-rtems_tests_PROGRAMS = smp06
-smp06_SOURCES = init.c ../../support/src/locked_print.c
-
-dist_rtems_tests_DATA = smp06.scn
-dist_rtems_tests_DATA += smp06.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
-AM_CPPFLAGS += -DSMPTEST 
-
-LINK_OBJS = $(smp06_OBJECTS)
-LINK_LIBS = $(smp06_LDLIBS)
-
-smp06$(EXEEXT): $(smp06_OBJECTS) $(smp06_DEPENDENCIES)
-	@rm -f smp06$(EXEEXT)
-	$(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/smptests/smp06/init.c b/testsuites/smptests/smp06/init.c
deleted file mode 100644
index ce0541e..0000000
--- a/testsuites/smptests/smp06/init.c
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- *  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.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <tmacros.h>
-#include "test_support.h"
-
-volatile bool Ran;
-
-static void success(void)
-{
-  locked_printf( "*** END OF TEST SMP06 ***\n" );
-  rtems_test_exit( 0 );
-}
-
-rtems_task Test_task(
-  rtems_task_argument do_exit
-)
-{
-  uint32_t          cpu_num;
-  char              name[5];
-  char             *p;
-
-  p = rtems_object_get_name( RTEMS_SELF, 5, name );
-  rtems_test_assert( p != NULL );
-
-  cpu_num = rtems_smp_get_current_processor();
-  locked_printf(" CPU %" PRIu32 " running Task %s\n", cpu_num, name);
-
-  Ran = true;
-
-  if ( do_exit ) {
-    success();
-  }
-  while(1)
-    ;
-}
-
-rtems_task Init(
-  rtems_task_argument argument
-)
-{
-  uint32_t           cpu_num;
-  rtems_id           id;
-  rtems_status_code  status;
-
-  locked_print_initialize();
-  locked_printf( "\n\n*** TEST SMP06 ***\n" );
-
-  if ( rtems_smp_get_processor_count() == 1 ) {
-    success();
-  }
-
-  locked_printf( "rtems_clock_tick - so this task has run longer\n" );
-  status = rtems_clock_tick();
-  directive_failed( status, "clock tick" );
-
-  cpu_num = rtems_smp_get_current_processor();
-
-  /*
-   * Create a task at equal priority.
-   */
-  Ran = false;
-  status = rtems_task_create(
-    rtems_build_name( 'T', 'A', '1', ' ' ),
-    2,
-    RTEMS_MINIMUM_STACK_SIZE,
-    RTEMS_PREEMPT,
-    RTEMS_DEFAULT_ATTRIBUTES,
-    &id
-  );
-  directive_failed( status, "task create" );
-
-  locked_printf(" CPU %" PRIu32 " start task TA1\n", cpu_num );
-
-  status = rtems_task_start( id, Test_task, 0 );
-  directive_failed( status, "task start" );
-
-  while ( Ran == false )
-    ;
-
-  /*
-   * Create a task at greater priority.
-   */
-  Ran = false;
-  status = rtems_task_create(
-    rtems_build_name( 'T', 'A', '2', ' ' ),
-    1,
-    RTEMS_MINIMUM_STACK_SIZE,
-    RTEMS_PREEMPT,
-    RTEMS_DEFAULT_ATTRIBUTES,
-    &id
-  );
-  directive_failed( status, "task create" );
-
-  cpu_num = rtems_smp_get_current_processor();
-  locked_printf(" CPU %" PRIu32 " start task TA2\n", cpu_num );
-
-  status = rtems_task_start( id, Test_task, 1 );
-  directive_failed( status, "task start" );
-
-  while ( 1 )
-    ;
-}
-
-/* configuration information */
-
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
-
-#define CONFIGURE_SMP_APPLICATION
-#define CONFIGURE_SMP_MAXIMUM_PROCESSORS  2
-
-#define CONFIGURE_MAXIMUM_TASKS           4
-
-#define CONFIGURE_MAXIMUM_SEMAPHORES 1
-
-#define CONFIGURE_INIT_TASK_PRIORITY      2
-#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_PREEMPT
-#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-
-#define CONFIGURE_INIT
-
-#include <rtems/confdefs.h>
-/* end of file */
diff --git a/testsuites/smptests/smp06/smp06.doc b/testsuites/smptests/smp06/smp06.doc
deleted file mode 100644
index 66f0fd8..0000000
--- a/testsuites/smptests/smp06/smp06.doc
+++ /dev/null
@@ -1,22 +0,0 @@
-#  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 file describes the directives and concepts tested by this test set.
-
-test set name:  smp06
-
-directives:
-
-  rtems_task_create
-  rtems_task_start
-
-concepts:
-
-+ Ensure that in an SMP system, when given a choice to preempt one of two
-  threads at equal priority, the thread which has been running the longest
-  is selected.
diff --git a/testsuites/smptests/smp06/smp06.scn b/testsuites/smptests/smp06/smp06.scn
deleted file mode 100644
index 3610c77..0000000
--- a/testsuites/smptests/smp06/smp06.scn
+++ /dev/null
@@ -1,7 +0,0 @@
-** TEST SMP06 ***
-rtems_clock_tick - so this task has run longer
- CPU 0 start task TA1
- CPU 1 running Task TA1 
- CPU 0 start task TA2
- CPU 1 running Task TA2 
-*** END OF TEST SMP06 ***




More information about the vc mailing list