source: rtems/testsuites/samples/capture/system.h @ 9de8d61

Last change on this file since 9de8d61 was 9de8d61, checked in by Sebastian Huber <sebastian.huber@…>, on 07/17/20 at 11:36:49

libtest: <rtems/test.h> to <rtems/test-info.h>

Rename this header file to later move <t.h> to <rtems/test.h>. The main
feature provided by <rtems/test-info.h> is the output of standard test
information which is consumed by the RTEMS Tester.

Update #3199.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
6 *  COPYRIGHT (c) 1989-1997.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may in
10 *  the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14#include <rtems.h>
15#include <rtems/test-info.h>
16
17/* functions */
18
19rtems_task Init(
20  rtems_task_argument argument
21);
22
23rtems_task test_task(
24  rtems_task_argument my_number
25);
26
27void
28destory_all_tasks(
29  const char *who
30);
31
32bool status_code_bad(
33  rtems_status_code status_code
34);
35
36extern void setup_tasks_to_watch(void);
37
38/* configuration information */
39
40#include <bsp.h> /* for device driver prototypes */
41
42#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
43#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
44
45#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
46
47#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
48
49#define CONFIGURE_UNIFIED_WORK_AREAS
50#define CONFIGURE_UNLIMITED_OBJECTS
51
52#define CONFIGURE_MAXIMUM_USER_EXTENSIONS (5)
53
54#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
55
56#include <rtems/confdefs.h>
57
58/*
59 * Keep track of the task id's created, use a large array.
60 */
61
62#define MAX_TASKS         (1000)
63#define TASK_INDEX_OFFSET (1)
64
65extern rtems_id task_id[MAX_TASKS];
66
67/*
68 * Increment the task name.
69 */
70
71#define NEXT_TASK_NAME(c1, c2, c3, c4)  \
72                 if (c4 == '9') {       \
73                   if (c3 == '9') {     \
74                     if (c2 == 'z') {   \
75                       if (c1 == 'z') { \
76                         printf("not enough task letters for names !!!\n"); \
77                         exit( 1 );     \
78                       } else           \
79                         c1++;          \
80                       c2 = 'a';        \
81                     } else             \
82                      c2++;             \
83                     c3 = '0';          \
84                   } else               \
85                     c3++;              \
86                   c4 = '0';            \
87                 }                      \
88                 else                   \
89                   c4++                 \
90
91
92/* end of include file */
Note: See TracBrowser for help on using the repository browser.