kerneltest/e32utils/hcrscripts/test/integer_test.txt
branchanywhere
changeset 20 d63d727ee0a6
parent 19 f6d3d9676ee4
parent 16 6d8ad5bee44b
child 21 af091391d962
equal deleted inserted replaced
19:f6d3d9676ee4 20:d63d727ee0a6
     1 #------------------------------------------------------------------------------
       
     2 # Integer Setting Test file for use with the 'hcrmd' tool.
       
     3 #
       
     4 
       
     5 #------------------------------------------------------------------------------
       
     6 # Signed Integer 32-bit tests
       
     7 #
       
     8 @
       
     9 cuid: 0xff000001
       
    10 eid:  1
       
    11 type: Int32
       
    12 flags: 0x0000
       
    13 intval: 2147483647
       
    14 .
       
    15 @
       
    16 cuid: 0xff000001
       
    17 eid:  2
       
    18 type: Int32
       
    19 flags: 0x0000
       
    20 intval: 0
       
    21 .
       
    22 @
       
    23 cuid: 0xff000001
       
    24 eid:  3
       
    25 type: Int32
       
    26 flags: 0x0000
       
    27 intval: -2147483648
       
    28 .
       
    29 
       
    30 #------------------------------------------------------------------------------
       
    31 # Signed Integer 16-bit tests
       
    32 #
       
    33 @
       
    34 cuid: 0xff000002
       
    35 eid:  11
       
    36 type: Int16
       
    37 flags: 0x0000
       
    38 intval: 32767
       
    39 .
       
    40 @
       
    41 cuid: 0xff000002
       
    42 eid:  12
       
    43 type: Int16
       
    44 flags: 0x0000
       
    45 intval: 0
       
    46 .
       
    47 @
       
    48 cuid: 0xff000002
       
    49 eid:  13
       
    50 type: Int16
       
    51 flags: 0x0000
       
    52 intval: -32768
       
    53 .
       
    54 
       
    55 #------------------------------------------------------------------------------
       
    56 # Signed Integer 8-bit tests
       
    57 #
       
    58 @
       
    59 cuid: 0xff000003
       
    60 eid:  21
       
    61 type: Int8
       
    62 flags: 0x0000
       
    63 intval: 127
       
    64 .
       
    65 
       
    66 @
       
    67 cuid: 0xff000003
       
    68 eid:  22
       
    69 type: Int8
       
    70 flags: 0x0000
       
    71 intval: 0
       
    72 .
       
    73 @
       
    74 cuid: 0xff000003
       
    75 eid:  23
       
    76 type: Int8
       
    77 flags: 0x0000
       
    78 intval: -128
       
    79 .
       
    80 
       
    81 #------------------------------------------------------------------------------
       
    82 # Unsigned Integer tests
       
    83 #
       
    84 @
       
    85 cuid: 0xff000004
       
    86 eid:  31
       
    87 type: UInt32
       
    88 flags: 0x0000
       
    89 intval: 4294967295
       
    90 .
       
    91 @
       
    92 cuid: 0xff000004
       
    93 eid:  32
       
    94 type: UInt16
       
    95 flags: 0x0000
       
    96 intval: 65535
       
    97 .
       
    98 @
       
    99 cuid: 0xff000004
       
   100 eid:  33
       
   101 type: UInt8
       
   102 flags: 0x0000
       
   103 intval: 255
       
   104 .
       
   105 
       
   106 #------------------------------------------------------------------------------
       
   107 # Boolean tests
       
   108 #
       
   109 @
       
   110 cuid: 0xff000005
       
   111 eid:  41
       
   112 type: Bool
       
   113 flags: 0x0000
       
   114 intval: 1
       
   115 .
       
   116 @
       
   117 cuid: 0xff000005
       
   118 eid:  42
       
   119 type: Bool
       
   120 flags: 0x0000
       
   121 intval: 0
       
   122 .
       
   123 
       
   124 
       
   125 #------------------------------------------------------------------------------
       
   126 # Linear Addrress tests
       
   127 #
       
   128 @
       
   129 cuid: 0xff000006
       
   130 eid:  51
       
   131 type: LinAddr
       
   132 flags: 0x0000
       
   133 hexval: 0x80000000
       
   134 .
       
   135 @
       
   136 cuid: 0xff000006
       
   137 eid:  52
       
   138 type: LinAddr
       
   139 flags: 0x0000
       
   140 hexval: 0x01008004
       
   141 .
       
   142 @
       
   143 cuid: 0xff000006
       
   144 eid:  53
       
   145 type: LinAddr
       
   146 flags: 0x0000
       
   147 hexval: 0x00000000
       
   148 .
       
   149 
       
   150 
       
   151 #------------------------------------------------------------------------------
       
   152 # Synatx tests
       
   153 #
       
   154 
       
   155 # Tool should cope with these
       
   156 @
       
   157 cuid: 0xffff0001
       
   158 eid:  101
       
   159 type: Int32
       
   160 intval: 1889025
       
   161 .
       
   162 @
       
   163 cuid: 0xffff0002
       
   164 eid:  102
       
   165 type: Int32
       
   166 intval: 5889025
       
   167 .
       
   168 
       
   169 # Missing fields - Tool should abort for these records
       
   170 # 
       
   171 #@
       
   172 #cuid: 0xffff0003
       
   173 #eid:  103
       
   174 #type: Int32
       
   175 #.
       
   176 #@
       
   177 #cuid: 0xffff0004
       
   178 #eid:  104
       
   179 #.
       
   180 #@
       
   181 #cuid: 0xffff0005
       
   182 #.
       
   183 #@
       
   184 #.
       
   185 
       
   186 # Incorrect Types - Tool should abort for these records
       
   187 # 
       
   188 #@
       
   189 #cuid: 0xffff0006
       
   190 #eid:  106
       
   191 #type: int32
       
   192 #intval: 1889025
       
   193 #.
       
   194 #@
       
   195 #cuid: 0xffff0007
       
   196 #eid:  107
       
   197 #type: Int
       
   198 #intval: 1889025
       
   199 #.
       
   200 #@
       
   201 #cuid: 0xffff0008
       
   202 #eid:  108
       
   203 #type: Int32ab
       
   204 #intval: 1889025
       
   205 #.