are_1.4.0_a458cb9e/regtests/files/test-ada-8/src/test8.adb

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
with Resources8;
with Ada.Command_Line;
with Ada.Text_IO;
procedure Test8 is
   use Resources8;

   C : Content_Access := Get_Content ("config/test8.xml");
begin
   if C = null then
      Ada.Text_IO.Put_Line ("FAIL: No content 'config/test8.xml'");
      Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
      return;
   end if;
   if C'Length /= 37 then
      Ada.Text_IO.Put_Line ("FAIL: Invalid length for 'config/test8.xml'");
      Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
   end if;

   C := Get_Content ("CONFIG/TEST8.XML");
   if C = null then
      Ada.Text_IO.Put_Line ("FAIL: No content 'config/test8.xml'");
      Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
      return;
   end if;

   C := Get_Content ("CoNfIg/TeSt8.XmL");
   if C = null then
      Ada.Text_IO.Put_Line ("FAIL: No content 'config/test8.xml'");
      Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
      return;
   end if;

   Ada.Text_IO.Put ("PASS: ");
   Ada.Text_IO.Put_Line (C.all);
end Test8;