rhealstone: Produce proper begin/end messages

This commit is contained in:
Sebastian Huber
2014-06-03 10:24:55 +02:00
parent 8df1f408fd
commit 1d799ad6d6
6 changed files with 25 additions and 12 deletions

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}
}

View File

@@ -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(

View File

@@ -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(