[rtems commit] rhealstone: Produce proper begin/end messages

Sebastian Huber sebh at rtems.org
Tue Jun 3 08:54:20 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jun  3 10:24:55 2014 +0200

rhealstone: Produce proper begin/end messages

---

 testsuites/rhealstone/rhdeadlockbrk/deadlockbrk.c |    6 ++++--
 testsuites/rhealstone/rhilatency/ilatency.c       |    6 ++++--
 testsuites/rhealstone/rhmlatency/mlatency.c       |    6 ++++--
 testsuites/rhealstone/rhsemshuffle/semshuffle.c   |    6 ++++--
 testsuites/rhealstone/rhtaskpreempt/taskpreempt.c |    7 +++++--
 testsuites/rhealstone/rhtaskswitch/taskswitch.c   |    6 ++++--
 6 files changed, 25 insertions(+), 12 deletions(-)

diff --git a/testsuites/rhealstone/rhdeadlockbrk/deadlockbrk.c b/testsuites/rhealstone/rhdeadlockbrk/deadlockbrk.c
index d5314ba..9ab620f 100644
--- a/testsuites/rhealstone/rhdeadlockbrk/deadlockbrk.c
+++ b/testsuites/rhealstone/rhdeadlockbrk/deadlockbrk.c
@@ -7,6 +7,8 @@
 #include <rtems/timerdrv.h>
 #include <timesys.h>
 
+const char rtems_test_name[] = "RHDEADLOCKBRK";
+
 #define BENCHMARKS 20000
 
 rtems_task Task01( rtems_task_argument ignored );
@@ -34,7 +36,7 @@ rtems_task Init( rtems_task_argument ignored )
 
   Print_Warning();
 
-  puts( "*** START OF RHDEADLOCKBRK ***" );
+  TEST_BEGIN();
 
   sem_attr = RTEMS_INHERIT_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY;
 
@@ -141,7 +143,7 @@ rtems_task Task01( rtems_task_argument ignored )
        tswitch_overhead,        /* Overhead of loop and task switches */
        tobtain_overhead
     );
-    puts( "*** END OF RHDEADLOCKBRK ***" );
+    TEST_END();
     rtems_test_exit( 0 );
   }
 
diff --git a/testsuites/rhealstone/rhilatency/ilatency.c b/testsuites/rhealstone/rhilatency/ilatency.c
index 5024a73..a102b6a 100644
--- a/testsuites/rhealstone/rhilatency/ilatency.c
+++ b/testsuites/rhealstone/rhilatency/ilatency.c
@@ -34,6 +34,8 @@
 #define _RTEMS_TMTEST27
 #include <tm27.h>
 
+const char rtems_test_name[] = "RHILATENCY";
+
 #define BENCHMARKS 50000
 
 rtems_task Task_1(
@@ -57,7 +59,7 @@ rtems_task Init(
 
   Print_Warning();
 
-  puts( "*** START OF RHILATENCY ***" );
+  TEST_BEGIN();
 
   if (
     _Scheduler_Table[ 0 ].Operations.initialize
@@ -111,7 +113,7 @@ rtems_task Task_1(
     0
   );
 
-  puts( "*** END OF RHILATENCY ***" );
+  TEST_END();
   rtems_test_exit( 0 );
 }
 
diff --git a/testsuites/rhealstone/rhmlatency/mlatency.c b/testsuites/rhealstone/rhmlatency/mlatency.c
index 10104e6..6495da5 100644
--- a/testsuites/rhealstone/rhmlatency/mlatency.c
+++ b/testsuites/rhealstone/rhmlatency/mlatency.c
@@ -11,6 +11,8 @@
 #include <timesys.h>
 #include <rtems/timerdrv.h>
 
+const char rtems_test_name[] = "RHMLATENCY";
+
 #define MESSAGE_SIZE (sizeof(long) * 4)
 #define BENCHMARKS 50000
 
@@ -35,7 +37,7 @@ void Init(
 
   Print_Warning();
 
-  puts( "*** START OF RHMLATENCY ***" );
+  TEST_BEGIN();
 
   status = rtems_message_queue_create(
     rtems_build_name( 'M', 'Q', '1', ' '  ),
@@ -137,7 +139,7 @@ rtems_task Task02( rtems_task_argument ignored )
    treceive_overhead             /* Overhead of recieve call and task switch */
   );
 
-  puts( "*** END OF RHMLATENCY ***" );
+  TEST_END();
   rtems_test_exit( 0 );
 }
 
diff --git a/testsuites/rhealstone/rhsemshuffle/semshuffle.c b/testsuites/rhealstone/rhsemshuffle/semshuffle.c
index 6a6163a..4aafc52 100644
--- a/testsuites/rhealstone/rhsemshuffle/semshuffle.c
+++ b/testsuites/rhealstone/rhsemshuffle/semshuffle.c
@@ -7,6 +7,8 @@
 #include <rtems/timerdrv.h>
 #include <timesys.h>
 
+const char rtems_test_name[] = "RHSEMSHUFFLE";
+
 #define BENCHMARKS 50000
 
 rtems_task Task01( rtems_task_argument ignored );
@@ -32,7 +34,7 @@ rtems_task Init( rtems_task_argument ignored )
 
   Print_Warning();
 
-  puts( "*** START OF RHSEMSHUFFLE ***" );
+  TEST_BEGIN();
 
   sem_attr =  RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY;
 
@@ -148,7 +150,7 @@ rtems_task Task02( rtems_task_argument ignored )
        tswitch_overhead,        /* Overhead of loop and task switches */
        0
     );
-    puts( "*** END OF RHSEMSHUFFLE ***" );
+    TEST_END();
     rtems_test_exit( 0 );
   }
 }
diff --git a/testsuites/rhealstone/rhtaskpreempt/taskpreempt.c b/testsuites/rhealstone/rhtaskpreempt/taskpreempt.c
index bec43bb..137b58a 100644
--- a/testsuites/rhealstone/rhtaskpreempt/taskpreempt.c
+++ b/testsuites/rhealstone/rhtaskpreempt/taskpreempt.c
@@ -6,6 +6,9 @@
 
 #include <timesys.h>
 #include <rtems/timerdrv.h>
+
+const char rtems_test_name[] = "RHTASKPREEMPT";
+
 #define BENCHMARKS 50000   /* Number of benchmarks to run and average over */
 
 rtems_task Task02( rtems_task_argument ignored );
@@ -62,7 +65,7 @@ rtems_task Task02( rtems_task_argument ignored )
      tswitch_overhead              /* Overhead of task switch back to TA01 */
   );
 
-  puts( "*** END OF RHTASKPREEMPT ***" );
+  TEST_END();
   rtems_test_exit( 0 );
 }
 
@@ -70,7 +73,7 @@ rtems_task Init( rtems_task_argument ignored )
 {
   Print_Warning();
 
-  puts( "*** START OF RHTASKPREEMPT ***" );
+  TEST_BEGIN();
 
   Task_name[0] = rtems_build_name( 'T','A','0','1' );
   status = rtems_task_create(
diff --git a/testsuites/rhealstone/rhtaskswitch/taskswitch.c b/testsuites/rhealstone/rhtaskswitch/taskswitch.c
index 8714a68..6096f18 100644
--- a/testsuites/rhealstone/rhtaskswitch/taskswitch.c
+++ b/testsuites/rhealstone/rhtaskswitch/taskswitch.c
@@ -9,6 +9,8 @@
 
 #define BENCHMARKS 50000
 
+const char rtems_test_name[] = "RHTASKSWITCH";
+
 rtems_task Task01( rtems_task_argument ignored );
 rtems_task Task02( rtems_task_argument ignored );
 rtems_task Init( rtems_task_argument ignored );
@@ -40,7 +42,7 @@ rtems_task Task02( rtems_task_argument ignored )
      dir_overhead              /* Overhead of rtems_task_wake_after directive */
   );
 
-  puts( "*** END OF RTASKSWITCH ***" );
+  TEST_END();
   rtems_test_exit( 0 );
 }
 
@@ -65,7 +67,7 @@ rtems_task Init( rtems_task_argument ignored )
 {
   Print_Warning();
 
-  puts( "*** START OF RHTASKSWITCH ***" );
+  TEST_BEGIN();
 
   Task_name[0] = rtems_build_name( 'T','A','0','1' );
   status = rtems_task_create(




More information about the vc mailing list