source: rtems/testsuites/support/include/test_support.h @ c499856

4.11
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2011.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#ifndef __TEST_SUPPORT_h
11#define __TEST_SUPPORT_h
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/*
18 *  Return a pointer to the POSIX name that is slightly
19 *  beyond the legal limit.
20 */
21const char *Get_Too_Long_Name(void);
22
23/*
24 *  Return a pointer to the longest legal POSIX name.
25 */
26const char *Get_Longest_Name(void);
27
28/*
29 *  Spin for specified number of ticks.
30 */
31void rtems_test_spin_for_ticks(int ticks);
32
33/*
34 *  Spin until the next clock tick
35 */
36void rtems_test_spin_until_next_tick( void );
37
38/*********************************************************************/
39/*********************************************************************/
40/**************              TMTEST SUPPORT             **************/
41/*********************************************************************/
42/*********************************************************************/
43
44/*
45 *  Type of method used for timing operations
46 */
47typedef void (*rtems_time_test_method_t)(
48  int    iteration,
49  void  *argument
50);
51
52/*
53 *  Obtain baseline timing information for benchmark tests.
54 */
55void rtems_time_test_measure_operation(
56  const char               *description,
57  rtems_time_test_method_t  operation,
58  void                     *argument,
59  int                       iterations,
60  int                       overhead
61);
62
63/*********************************************************************/
64/*********************************************************************/
65/**************              TEST SUPPORT               **************/
66/*********************************************************************/
67/*********************************************************************/
68extern void locked_print_initialize(void);
69extern void locked_printf(const char *fmt, ...);
70extern void locked_printk(const char *fmt, ...);
71
72#ifdef __cplusplus
73};
74#endif
75
76#endif
Note: See TracBrowser for help on using the repository browser.