source: rtems/testsuites/ada/tmtests/tm06/tmtest.ads @ 48aa4b5d

5
Last change on this file since 48aa4b5d was ee537ea, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 12, 2017 at 8:00:10 AM

ada-tests: Move to testsuites/ada

This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 6 of the RTEMS
7--  Timing Test Suite.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989-2011.
14--  On-Line Applications Research Corporation (OAR).
15--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.org/license/LICENSE.
19--
20
21with TIME_TEST_SUPPORT;
22with RTEMS;
23with RTEMS.TASKS;
24
25package TMTEST is
26
27--
28--  This array contains the IDs of all RTEMS tasks created by this test.
29--
30
31   TASK_ID : array ( RTEMS.UNSIGNED32 
32      range 0 .. TIME_TEST_SUPPORT.OPERATION_COUNT ) of RTEMS.ID;
33
34--
35--  This variable is used to determine which restart of TASK_1 will start
36--  timer and which will stop the timer and report the execution time.
37--
38
39   TASK_RESTARTED : RTEMS.UNSIGNED32;
40
41--
42--  The following variable is set to the execution time returned
43--  by the timer.
44--
45
46   END_TIME  : RTEMS.UNSIGNED32;
47
48--
49--  INIT
50--
51--  DESCRIPTION:
52--
53--  This RTEMS task initializes the application.
54--
55
56   procedure INIT (
57      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
58   );
59   pragma Convention (C, INIT);
60
61--
62--  TEST_INIT
63--
64--  DESCRIPTION:
65--
66--  This subprogram performs test initialization.
67--
68
69   procedure TEST_INIT;
70
71--
72--  TASK_1
73--
74--  DESCRIPTION:
75--
76--  This RTEMS task is responsible for measuring and reporting the
77--  following directive execution times:
78--
79--    + TASK_RESTART of SELF
80--    + TASK_SUSPEND of another task with no context switch
81--    + TASK_RESUME with no preemption
82--    + TASK_DELETE of another task
83--
84
85   procedure TASK_1 (
86      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
87   );
88   pragma Convention (C, TASK_1);
89
90--
91--  NULL_TASK
92--
93--  DESCRIPTION:
94--
95--  This RTEMS task has no operations.  It is used to have
96--  tasks to perform directives upon.
97--
98
99   procedure NULL_TASK (
100      ARGUMENT : in     RTEMS.TASKS.ARGUMENT
101   );
102   pragma Convention (C, NULL_TASK);
103
104end TMTEST;
Note: See TracBrowser for help on using the repository browser.