RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Modules | Files | Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
RTEMS Test Framework

The RTEMS Test Framework helps you to write tests. More...

Modules

 Boolean Checks
 Checks for boolean expressions.
 
 Character Checks
 Checks for characters (char).
 
 Destructors
 Support to run destructors at the end of a test case.
 
 Generic Checks
 Checks for data types with an equality or inequality operator.
 
 Memory Area Checks
 Checks for memory areas.
 
 POSIX Status and Error Number Checks
 Checks for POSIX status and error numbers.
 
 Pointer Checks
 Checks for pointers.
 
 Runtime Measurements
 Support to measure the runtime of code fragments.
 
 Signed 16-Bit Integer Checks
 Checks for signed 16-bit integers (int16_t).
 
 Signed 32-Bit Integer Checks
 Checks for signed 32-bit integers (int32_t).
 
 Signed 64-Bit Integer Checks
 Checks for signed 64-bit integers (int64_t).
 
 Signed 8-Bit Integer Checks
 Checks for signed 8-bit integers (int8_t).
 
 Signed Character Checks
 Checks for signed characters (signed char).
 
 Signed Integer Checks
 Checks for signed integers (int).
 
 Signed Long Integer Checks
 Checks for signed long integers (long).
 
 Signed Long Long Integer Checks
 Checks for signed long long integers (long long).
 
 Signed Pointer Value Checks
 Checks for signed pointer values (intptr_t).
 
 Signed Short Integer Checks
 Checks for signed short integers (short).
 
 Signed Size Checks
 Checks for signed sizes (ssize_t).
 
 Size Checks
 Checks for sizes (size_t).
 
 String Checks
 Checks for strings.
 
 Time Services
 Time service functions.
 
 Unsigned 16-Bit Integer Checks
 Checks for unsigned 16-bit integers (uint16_t).
 
 Unsigned 32-Bit Integer Checks
 Checks for unsigned 32-bit integers (uint32_t).
 
 Unsigned 64-Bit Integer Checks
 Checks for unsigned 64-bit integers (uint64_t).
 
 Unsigned 8-Bit Integer Checks
 Checks for unsigned 8-bit integers (uint8_t).
 
 Unsigned Character Checks
 Checks for unsigned characters (unsigned char).
 
 Unsigned Integer Checks
 Checks for unsigned integers (unsigned int).
 
 Unsigned Long Integer Checks
 Checks for unsigned long integers (unsigned long).
 
 Unsigned Long Long Integer Checks
 Checks for unsigned long long integers (unsigned long long).
 
 Unsigned Pointer Value Checks
 Checks for unsigned pointer values (uintptr_t).
 
 Unsigned Short Integer Checks
 Checks for unsigned short integers (unsigned short).
 

Files

file  test-scheduler.h
 This header file defines the scheduler test support API.
 
file  test.h
 This header file provides interfaces of the RTEMS Test Framework.
 
file  t-test-rtems.h
 This header file provides the RTEMS-specific API of the RTEMS Test Framework.
 

Data Structures

struct  T_scheduler_event
 
struct  T_scheduler_header
 
struct  T_scheduler_log
 
struct  T_scheduler_log_2
 
struct  T_scheduler_log_4
 
struct  T_scheduler_log_10
 
struct  T_scheduler_log_20
 
struct  T_scheduler_log_40
 
struct  T_fixture
 
struct  T_fixture_node
 
struct  T_remark
 

Macros

#define T_SCHEDULER_ENTRY_POINTS
 
#define T_ARRAY_SIZE(array)   (sizeof(array) / sizeof((array)[0]))
 
#define T_FILE_NAME   __FILE__
 
#define T_ZERO_LENGTH_ARRAY   1
 

Typedefs

typedef void(* T_scheduler_event_handler) (void *, const T_scheduler_event *, T_scheduler_when)
 
typedef struct T_fixture T_fixture
 
typedef struct T_fixture_node T_fixture_node
 
typedef struct T_remark T_remark
 

Enumerations

enum  T_scheduler_operation {
  T_SCHEDULER_NOP , T_SCHEDULER_ADD_PROCESSOR , T_SCHEDULER_ANY , T_SCHEDULER_ASK_FOR_HELP ,
  T_SCHEDULER_BLOCK , T_SCHEDULER_CANCEL_JOB , T_SCHEDULER_CLEAN_STICKY , T_SCHEDULER_INITIALIZE ,
  T_SCHEDULER_MAKE_STICKY , T_SCHEDULER_MAP_PRIORITY , T_SCHEDULER_NODE_DESTROY , T_SCHEDULER_NODE_INITIALIZE ,
  T_SCHEDULER_PIN , T_SCHEDULER_RECONSIDER_HELP_REQUEST , T_SCHEDULER_RELEASE_JOB , T_SCHEDULER_REMOVE_PROCESSOR ,
  T_SCHEDULER_SCHEDULE , T_SCHEDULER_SET_AFFINITY , T_SCHEDULER_START_IDLE , T_SCHEDULER_UNBLOCK ,
  T_SCHEDULER_UNMAP_PRIORITY , T_SCHEDULER_UNPIN , T_SCHEDULER_UPDATE_PRIORITY , T_SCHEDULER_WITHDRAW_NODE ,
  T_SCHEDULER_YIELD
}
 
enum  T_scheduler_when { T_SCHEDULER_BEFORE , T_SCHEDULER_AFTER }
 
enum  T_verbosity { T_QUIET , T_NORMAL , T_VERBOSE }
 

Functions

T_scheduler_logT_scheduler_record (T_scheduler_log *)
 
T_scheduler_logT_scheduler_record_2 (T_scheduler_log_2 *)
 
T_scheduler_logT_scheduler_record_4 (T_scheduler_log_4 *)
 
T_scheduler_logT_scheduler_record_10 (T_scheduler_log_10 *)
 
T_scheduler_logT_scheduler_record_20 (T_scheduler_log_20 *)
 
T_scheduler_logT_scheduler_record_40 (T_scheduler_log_40 *)
 
void T_scheduler_set_event_handler (T_scheduler_event_handler, void *)
 
const T_scheduler_eventT_scheduler_next (T_scheduler_header *, T_scheduler_operation, size_t *)
 
const T_scheduler_eventT_scheduler_next_any (T_scheduler_header *, size_t *)
 
void T_scheduler_initialize (const Scheduler_Control *)
 
void T_scheduler_schedule (const Scheduler_Control *, Thread_Control *)
 
void T_scheduler_yield (const Scheduler_Control *, Thread_Control *, Scheduler_Node *)
 
void T_scheduler_block (const Scheduler_Control *, Thread_Control *, Scheduler_Node *)
 
void T_scheduler_unblock (const Scheduler_Control *, Thread_Control *, Scheduler_Node *)
 
void T_scheduler_update_priority (const Scheduler_Control *, Thread_Control *, Scheduler_Node *)
 
Priority_Control T_scheduler_map_priority (const Scheduler_Control *, Priority_Control)
 
Priority_Control T_scheduler_unmap_priority (const Scheduler_Control *, Priority_Control)
 
void T_scheduler_node_initialize (const Scheduler_Control *, Scheduler_Node *, Thread_Control *, Priority_Control)
 
void T_scheduler_node_destroy (const Scheduler_Control *, Scheduler_Node *)
 
void T_scheduler_release_job (const Scheduler_Control *, Thread_Control *, Priority_Node *, uint64_t, Thread_queue_Context *)
 
void T_scheduler_cancel_job (const Scheduler_Control *, Thread_Control *, Priority_Node *, Thread_queue_Context *)
 
void T_scheduler_start_idle (const Scheduler_Control *, Thread_Control *, struct Per_CPU_Control *)
 

Variables

const T_scheduler_event T_scheduler_event_null
 
const Scheduler_Operations T_scheduler_operations []
 

Detailed Description

The RTEMS Test Framework helps you to write tests.

Macro Definition Documentation

◆ T_SCHEDULER_ENTRY_POINTS

#define T_SCHEDULER_ENTRY_POINTS
Value:
{ T_scheduler_initialize, \
T_scheduler_schedule, T_scheduler_yield, T_scheduler_block, \
T_scheduler_unblock, T_scheduler_update_priority, \
T_scheduler_map_priority, T_scheduler_unmap_priority, \
T_scheduler_node_initialize, T_scheduler_node_destroy, \
T_scheduler_release_job, T_scheduler_cancel_job, \
T_scheduler_start_idle }