source: rtems/c/src/ada-tests/sptests/spsize/sptest.adb @ 948a069

Last change on this file since 948a069 was f6bcc8f5, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 13:25:16

2003-09-04 Joel Sherrill <joel@…>

  • samples/base_sp/base_sp.adb, samples/base_sp/config.h, samples/base_sp/sptest.adb, samples/base_sp/sptest.ads, samples/hello/config.h, samples/hello/hello.adb, samples/hello/sptest.adb, samples/hello/sptest.ads, samples/ticker/config.h, samples/ticker/sptest.adb, samples/ticker/sptest.ads, samples/ticker/ticker.adb, sptests/sp01/config.h, sptests/sp01/sp01.adb, sptests/sp01/sptest.adb, sptests/sp01/sptest.ads, sptests/sp02/config.h, sptests/sp02/sp02.adb, sptests/sp02/sptest.adb, sptests/sp02/sptest.ads, sptests/sp03/config.h, sptests/sp03/sp03.adb, sptests/sp03/sptest.adb, sptests/sp03/sptest.ads, sptests/sp04/config.h, sptests/sp04/sp04.adb, sptests/sp04/sptest.adb, sptests/sp04/sptest.ads, sptests/sp05/config.h, sptests/sp05/sp05.adb, sptests/sp05/sptest.adb, sptests/sp05/sptest.ads, sptests/sp06/config.h, sptests/sp06/sp06.adb, sptests/sp06/sptest.adb, sptests/sp06/sptest.ads, sptests/sp07/config.h, sptests/sp07/sp07.adb, sptests/sp07/sptest.adb, sptests/sp07/sptest.ads, sptests/sp08/config.h, sptests/sp08/sp08.adb, sptests/sp08/sptest.adb, sptests/sp08/sptest.ads, sptests/sp09/config.h, sptests/sp09/sp09.adb, sptests/sp09/sptest.adb, sptests/sp09/sptest.ads, sptests/sp11/config.h, sptests/sp11/sp11.adb, sptests/sp11/sptest.adb, sptests/sp11/sptest.ads, sptests/sp12/config.h, sptests/sp12/sp12.adb, sptests/sp12/sptest.adb, sptests/sp12/sptest.ads, sptests/sp13/config.h, sptests/sp13/sp13.adb, sptests/sp13/sptest.adb, sptests/sp13/sptest.ads, sptests/sp14/config.h, sptests/sp14/sp14.adb, sptests/sp14/sptest.adb, sptests/sp14/sptest.ads, sptests/sp15/config.h, sptests/sp15/sp15.adb, sptests/sp15/sptest.adb, sptests/sp15/sptest.ads, sptests/sp16/config.h, sptests/sp16/sp16.adb, sptests/sp16/sptest.adb, sptests/sp16/sptest.ads, sptests/sp17/config.h, sptests/sp17/sp17.adb, sptests/sp17/sptest.adb, sptests/sp17/sptest.ads, sptests/sp19/config.h, sptests/sp19/sp19.adb, sptests/sp19/sptest.adp, sptests/sp19/sptest.ads, sptests/sp20/config.h, sptests/sp20/sp20.adb, sptests/sp20/sptest.adb, sptests/sp20/sptest.ads, sptests/sp21/config.h, sptests/sp21/sp21.adb, sptests/sp21/sptest.adb, sptests/sp21/sptest.ads, sptests/sp22/config.h, sptests/sp22/sp22.adb, sptests/sp22/sptest.adb, sptests/sp22/sptest.ads, sptests/sp23/config.h, sptests/sp23/sp23.adb, sptests/sp23/sptest.adb, sptests/sp23/sptest.ads, sptests/sp24/config.h, sptests/sp24/sp24.adb, sptests/sp24/sptest.adb, sptests/sp24/sptest.ads, sptests/sp25/config.h, sptests/sp25/sp25.adb, sptests/sp25/sptest.adb, sptests/sp25/sptest.ads, sptests/spsize/spsize.adb, sptests/spsize/sptest.adb, sptests/spsize/sptest.ads, support/address_io.adb, support/address_io.ads, support/float_io.ads, support/fp.inc, support/init.c, support/integer.inc, support/rtems_calling_overhead.ads, support/status_io.ads, support/test_support.adb, support/test_support.ads, support/time_test_support.adb, support/time_test_support.ads, support/timer_driver.adb, support/timer_driver.ads, support/unsigned32_io.ads, tmtests/tm01/config.h, tmtests/tm01/tm01.adb, tmtests/tm01/tmtest.adb, tmtests/tm01/tmtest.ads, tmtests/tm02/config.h, tmtests/tm02/tm02.adb, tmtests/tm02/tmtest.adb, tmtests/tm02/tmtest.ads, tmtests/tm03/config.h, tmtests/tm03/tm03.adb, tmtests/tm03/tmtest.adb, tmtests/tm03/tmtest.ads, tmtests/tm04/config.h, tmtests/tm04/tm04.adb, tmtests/tm04/tmtest.adb, tmtests/tm04/tmtest.ads, tmtests/tm05/config.h, tmtests/tm05/tm05.adb, tmtests/tm05/tmtest.adb, tmtests/tm05/tmtest.ads, tmtests/tm06/config.h, tmtests/tm06/tm06.adb, tmtests/tm06/tmtest.adb, tmtests/tm06/tmtest.ads, tmtests/tm07/config.h, tmtests/tm07/tm07.adb, tmtests/tm07/tmtest.adb, tmtests/tm07/tmtest.ads, tmtests/tm08/config.h, tmtests/tm08/tm08.adb, tmtests/tm08/tmtest.adb, tmtests/tm08/tmtest.ads, tmtests/tm09/config.h, tmtests/tm09/tm09.adb, tmtests/tm09/tmtest.adb, tmtests/tm09/tmtest.ads, tmtests/tm10/config.h, tmtests/tm10/tm10.adb, tmtests/tm10/tmtest.adb, tmtests/tm10/tmtest.ads, tmtests/tm11/config.h, tmtests/tm11/tm11.adb, tmtests/tm11/tmtest.adb, tmtests/tm11/tmtest.ads, tmtests/tm12/config.h, tmtests/tm12/tm12.adb, tmtests/tm12/tmtest.adb, tmtests/tm12/tmtest.ads, tmtests/tm13/config.h, tmtests/tm13/tm13.adb, tmtests/tm13/tmtest.adb, tmtests/tm13/tmtest.ads, tmtests/tm14/config.h, tmtests/tm14/tm14.adb, tmtests/tm14/tmtest.adb, tmtests/tm14/tmtest.ads, tmtests/tm15/config.h, tmtests/tm15/tm15.adb, tmtests/tm15/tmtest.adb, tmtests/tm15/tmtest.ads, tmtests/tm16/config.h, tmtests/tm16/tm16.adb, tmtests/tm16/tmtest.adb, tmtests/tm16/tmtest.ads, tmtests/tm17/config.h, tmtests/tm17/tm17.adb, tmtests/tm17/tmtest.adb, tmtests/tm17/tmtest.ads, tmtests/tm18/config.h, tmtests/tm18/tm18.adb, tmtests/tm18/tmtest.adb, tmtests/tm18/tmtest.ads, tmtests/tm19/config.h, tmtests/tm19/tm19.adb, tmtests/tm19/tmtest.adb, tmtests/tm19/tmtest.ads, tmtests/tm20/config.h, tmtests/tm20/tm20.adb, tmtests/tm20/tmtest.adb, tmtests/tm20/tmtest.ads, tmtests/tm21/config.h, tmtests/tm21/tm21.adb, tmtests/tm21/tmtest.adb, tmtests/tm21/tmtest.ads, tmtests/tm22/config.h, tmtests/tm22/tm22.adb, tmtests/tm22/tmtest.adb, tmtests/tm22/tmtest.ads, tmtests/tm23/config.h, tmtests/tm23/tm23.adb, tmtests/tm23/tmtest.adb, tmtests/tm23/tmtest.ads, tmtests/tm24/config.h, tmtests/tm24/tm24.adb, tmtests/tm24/tmtest.adb, tmtests/tm24/tmtest.ads, tmtests/tm25/config.h, tmtests/tm25/tm25.adb, tmtests/tm25/tmtest.adb, tmtests/tm25/tmtest.ads, tmtests/tm28/config.h, tmtests/tm28/tm28.adb, tmtests/tm28/tmtest.adb, tmtests/tm28/tmtest.ads, tmtests/tm29/config.h, tmtests/tm29/tm29.adb, tmtests/tm29/tmtest.adb, tmtests/tm29/tmtest.ads, tmtests/tmck/config.h, tmtests/tmck/tmck.adb, tmtests/tmck/tmtest.adb, tmtests/tmck/tmtest.ads, tmtests/tmoverhd/config.h, tmtests/tmoverhd/dummy_rtems.adb, tmtests/tmoverhd/dummy_rtems.ads, tmtests/tmoverhd/tmoverhd.adb, tmtests/tmoverhd/tmtest.adb, tmtests/tmoverhd/tmtest.ads: Removed incorrect statement about copyright assignment.
  • Property mode set to 100644
File size: 3.9 KB
Line 
1--
2--  SPTEST / BODY
3--
4--  DESCRIPTION:
5--
6--  This package is the implementation of Test 1 of the RTEMS
7--  Single Processor Test Suite.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989-1997.
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.OARcorp.com/rtems/license.html.
19--
20--  $Id$
21--
22
23with INTERFACES; use INTERFACES;
24with RTEMS;
25with RTEMS_TEST_SUPPORT;
26with TEST_SUPPORT;
27with TEXT_IO;
28with UNSIGNED32_IO;
29
30package body SPTEST is
31
32
33--PAGE
34--
35--  INIT
36--
37
38   procedure INIT (
39      ARGUMENT : in     RTEMS.TASK_ARGUMENT
40   ) is
41      STATUS : RTEMS.STATUS_CODES;
42   begin
43
44      TEXT_IO.NEW_LINE( 2 );
45      TEXT_IO.PUT_LINE( "*** TEST SIZE ***" );
46
47      SPTEST.PUT_SIZE(
48         "Tasks",
49         TRUE,
50         "maximum_tasks",
51         RTEMS_TEST_SUPPORT.PER_TASK
52      );
53
54      SPTEST.PUT_SIZE(
55         "Timers",
56         TRUE,
57         "maximum_timers",
58         RTEMS_TEST_SUPPORT.PER_TIMER
59      );
60
61      SPTEST.PUT_SIZE(
62         "Semaphores",
63         TRUE,
64         "maximum_semaphores",
65         RTEMS_TEST_SUPPORT.PER_SEMAPHORE
66      );
67
68      SPTEST.PUT_SIZE(
69         "Message Queues",
70         TRUE,
71         "maximum_message_queues",
72         RTEMS_TEST_SUPPORT.PER_MESSAGE_QUEUE
73      );
74
75      SPTEST.PUT_SIZE(
76         "Messages",
77         TRUE,
78         "maximum_messages",
79         RTEMS_TEST_SUPPORT.PER_MESSAGE
80      );
81
82      SPTEST.PUT_SIZE(
83         "Regions",
84         TRUE,
85         "maximum_regions",
86         RTEMS_TEST_SUPPORT.PER_REGION
87      );
88
89      SPTEST.PUT_SIZE(
90         "Partitions",
91         TRUE,
92         "maximum_paritions",
93         RTEMS_TEST_SUPPORT.PER_PARTITION
94      );
95
96      SPTEST.PUT_SIZE(
97         "Ports",
98         TRUE,
99         "maximum_ports",
100         RTEMS_TEST_SUPPORT.PER_PORT
101      );
102
103      SPTEST.PUT_SIZE(
104         "Periods",
105         TRUE,
106         "maximum_periods",
107         RTEMS_TEST_SUPPORT.PER_PERIOD
108      );
109
110      SPTEST.PUT_SIZE(
111         "Extensions",
112         TRUE,
113         "maximum_extensions",
114         RTEMS_TEST_SUPPORT.PER_EXTENSION
115      );
116
117      SPTEST.PUT_SIZE(
118         "Device Drivers",
119         TRUE,
120         "number_of_device_drivers",
121         RTEMS_TEST_SUPPORT.PER_DRIVER
122      );
123
124      SPTEST.PUT_SIZE(
125         "System Requirements",
126         FALSE,
127         REQUIREMENT => RTEMS_TEST_SUPPORT.SYSTEM_REQUIREMENTS
128      );
129
130      SPTEST.PUT_SIZE(
131         "Floating Point Tasks",
132         TRUE,
133         "FP attributes",
134         RTEMS_TEST_SUPPORT.PER_FP_TASK
135      );
136
137      TEXT_IO.PUT_LINE( "User's Tasks' Stacks - " );
138      TEXT_IO.NEW_LINE;
139
140      TEXT_IO.PUT_LINE( "Interrupt Stacks - " );
141      TEXT_IO.NEW_LINE;
142
143      SPTEST.PUT_SIZE(
144         "Global object tables",
145         TRUE,
146         "maximum_nodes",
147         RTEMS_TEST_SUPPORT.PER_NODE
148      );
149
150      SPTEST.PUT_SIZE(
151         "Global objects",
152         TRUE,
153         "maximum_global_objects",
154         RTEMS_TEST_SUPPORT.PER_GLOBAL_OBJECT
155      );
156
157      SPTEST.PUT_SIZE(
158         "Proxies",
159         TRUE,
160         "maximum_proxies",
161         RTEMS_TEST_SUPPORT.PER_PROXY
162      );
163
164      TEXT_IO.PUT_LINE( "*** END OF TEST SIZE ***" );
165      RTEMS.SHUTDOWN_EXECUTIVE( 0 );
166
167   end INIT;
168
169--PAGE
170--
171--  PUT_SIZE
172--
173
174   procedure PUT_SIZE (
175      DESCRIPTION    : in     STRING;
176      HAS_FIELD_NAME : in     BOOLEAN;
177      FIELD_NAME     : in     STRING             := "";
178      REQUIREMENT    : in     RTEMS.UNSIGNED32   := 0
179   ) is
180      SPACES : constant STRING := "                              ";
181   begin
182
183      -- 21 is length of longest description (task's stacks)
184
185      TEXT_IO.PUT( DESCRIPTION );
186      TEXT_IO.PUT( SPACES( 1 .. 21 - DESCRIPTION'LENGTH ) );
187      TEXT_IO.PUT( " - " );
188      if HAS_FIELD_NAME = TRUE then
189         TEXT_IO.PUT( FIELD_NAME );
190         TEXT_IO.PUT( " * " );
191      end if;
192      UNSIGNED32_IO.PUT( REQUIREMENT );
193      TEXT_IO.NEW_LINE;
194
195  end PUT_SIZE;
196   
197
198end SPTEST;
Note: See TracBrowser for help on using the repository browser.