rts.exp
changeset 0 eeadadee24f6
equal deleted inserted replaced
-1:000000000000 0:eeadadee24f6
       
     1 --- cdbmake handles simple example
       
     2 0
       
     3 --- cdbmake-12 handles simple example
       
     4 0
       
     5 --- cdbmake-sv handles simple example
       
     6 0
       
     7 --- cdbdump handles simple examples
       
     8 +3,5:one->Hello
       
     9 +3,7:two->Goodbye
       
    10 
       
    11 0
       
    12 +3,5:one->Hello
       
    13 +3,7:two->Goodbye
       
    14 
       
    15 0
       
    16 +6,4:@7/tcp->echo
       
    17 +8,1:echo/tcp->7
       
    18 +6,4:@7/udp->echo
       
    19 +8,1:echo/udp->7
       
    20 +6,7:@9/tcp->discard
       
    21 +11,1:discard/tcp->9
       
    22 +8,1:sink/tcp->9
       
    23 +8,1:null/tcp->9
       
    24 +6,7:@9/udp->discard
       
    25 +11,1:discard/udp->9
       
    26 +8,1:sink/udp->9
       
    27 +8,1:null/udp->9
       
    28 +7,6:@11/tcp->systat
       
    29 +10,2:systat/tcp->11
       
    30 +9,2:users/tcp->11
       
    31 +7,6:@11/udp->systat
       
    32 +10,2:systat/udp->11
       
    33 +9,2:users/udp->11
       
    34 
       
    35 0
       
    36 --- cdbtest handles simple examples
       
    37 found: 2
       
    38 different record: 0
       
    39 bad length: 0
       
    40 not found: 0
       
    41 untested: 0
       
    42 0
       
    43 found: 2
       
    44 different record: 0
       
    45 bad length: 0
       
    46 not found: 0
       
    47 untested: 0
       
    48 0
       
    49 found: 18
       
    50 different record: 0
       
    51 bad length: 0
       
    52 not found: 0
       
    53 untested: 0
       
    54 0
       
    55 --- cdbstats handles simple examples
       
    56 records          2
       
    57 d0               2
       
    58 d1               0
       
    59 d2               0
       
    60 d3               0
       
    61 d4               0
       
    62 d5               0
       
    63 d6               0
       
    64 d7               0
       
    65 d8               0
       
    66 d9               0
       
    67 >9               0
       
    68 0
       
    69 records          2
       
    70 d0               2
       
    71 d1               0
       
    72 d2               0
       
    73 d3               0
       
    74 d4               0
       
    75 d5               0
       
    76 d6               0
       
    77 d7               0
       
    78 d8               0
       
    79 d9               0
       
    80 >9               0
       
    81 0
       
    82 records         18
       
    83 d0              18
       
    84 d1               0
       
    85 d2               0
       
    86 d3               0
       
    87 d4               0
       
    88 d5               0
       
    89 d6               0
       
    90 d7               0
       
    91 d8               0
       
    92 d9               0
       
    93 >9               0
       
    94 0
       
    95 --- cdbget retrieves data successfully
       
    96 Hello
       
    97 0
       
    98 Goodbye
       
    99 0
       
   100 echo
       
   101 0
       
   102 echo
       
   103 0
       
   104 7
       
   105 0
       
   106 7
       
   107 0
       
   108 discard
       
   109 0
       
   110 discard
       
   111 0
       
   112 9
       
   113 0
       
   114 9
       
   115 0
       
   116 9
       
   117 0
       
   118 9
       
   119 0
       
   120 9
       
   121 0
       
   122 9
       
   123 0
       
   124 systat
       
   125 0
       
   126 systat
       
   127 0
       
   128 11
       
   129 0
       
   130 11
       
   131 0
       
   132 11
       
   133 0
       
   134 11
       
   135 0
       
   136 --- cdbget exits 100 on nonexistent data
       
   137 100
       
   138 100
       
   139 --- cdbmake handles repeated keys
       
   140 0
       
   141 +3,5:one->Hello
       
   142 +3,7:one->Goodbye
       
   143 +3,7:one->Another
       
   144 
       
   145 0
       
   146 --- cdbget handles repeated keys
       
   147 Hello
       
   148 0
       
   149 Hello
       
   150 0
       
   151 Goodbye
       
   152 0
       
   153 Another
       
   154 0
       
   155 
       
   156 100
       
   157 
       
   158 100
       
   159 --- cdbmake handles long keys and data
       
   160 0
       
   161 --- cdbdump handles long keys and data
       
   162 +320,320:ba483b3442e75cace82def4b5df25bfca887b41687537c21dc4b82cb4c36315e2f6a0661d1af2e05e686c4c595c16561d8c1b3fbee8a6b99c54b3d10d61948445298e97e971f85a600c88164d6b0b09
       
   163 b5169a54910232db0a56938de61256721667bddc1c0a2b14f5d063ab586a87a957e87f704acb7246c5e8c25becef713a365efef79bb1f406fecee88f3261f68e239c5903e3145961eb0fbc538ff506a
       
   164 ->152e113d5deec3638ead782b93e1b9666d265feb5aebc840e79aa69e2cfc1a2ce4b3254b79fa73c338d22a75e67cfed4cd17b92c405e204a48f21c31cdcf7da46312dc80debfbdaf6dc39d74694a711
       
   165 6d170c5fde1a81806847cf71732c7f3217a38c6234235951af7b7c1d32e62d480d7c82a63a9d94291d92767ed97dd6a6809d1eb856ce23eda20268cb53fda31c016a19fc20e80aec3bd594a3eb82a5a
       
   166 
       
   167 
       
   168 0
       
   169 --- cdbtest handles long keys and data
       
   170 found: 1
       
   171 different record: 0
       
   172 bad length: 0
       
   173 not found: 0
       
   174 untested: 0
       
   175 0
       
   176 --- cdbstats handles long keys and data
       
   177 records          1
       
   178 d0               1
       
   179 d1               0
       
   180 d2               0
       
   181 d3               0
       
   182 d4               0
       
   183 d5               0
       
   184 d6               0
       
   185 d7               0
       
   186 d8               0
       
   187 d9               0
       
   188 >9               0
       
   189 0
       
   190 --- cdbget handles long keys and data
       
   191 152e113d5deec3638ead782b93e1b9666d265feb5aebc840e79aa69e2cfc1a2ce4b3254b79fa73c338d22a75e67cfed4cd17b92c405e204a48f21c31cdcf7da46312dc80debfbdaf6dc39d74694a711
       
   192 6d170c5fde1a81806847cf71732c7f3217a38c6234235951af7b7c1d32e62d480d7c82a63a9d94291d92767ed97dd6a6809d1eb856ce23eda20268cb53fda31c016a19fc20e80aec3bd594a3eb82a5a
       
   193 
       
   194 0
       
   195 --- cdbmake handles unwritable tmp
       
   196 cdbmake: fatal: unable to create loop: symbolic link loop
       
   197 111
       
   198 --- cdbmake handles unmovable cdb
       
   199 cdbmake: fatal: unable to rename test.tmp to loop/test.cdb: symbolic link loop
       
   200 111
       
   201 --- cdbmake handles nomem
       
   202 cdbmake: fatal: unable to create test.tmp: out of memory
       
   203 111
       
   204 --- cdbmake handles full disk
       
   205 cdbmake: fatal: unable to create test.tmp: file too big
       
   206 111
       
   207 --- cdbmake handles absurd klen
       
   208 cdbmake: fatal: unable to create test.tmp: out of memory
       
   209 111
       
   210 --- cdbget handles empty file
       
   211 cdbget: fatal: unable to read input: protocol error
       
   212 111
       
   213 --- cdbdump and cdbmake handle random.cdb
       
   214 0
       
   215 --- cdbtest handles random.cdb
       
   216 found: 100
       
   217 different record: 0
       
   218 bad length: 0
       
   219 not found: 0
       
   220 untested: 0
       
   221 0
       
   222 --- cdbstats handles random.cdb
       
   223 records        100
       
   224 d0              96
       
   225 d1               4
       
   226 d2               0
       
   227 d3               0
       
   228 d4               0
       
   229 d5               0
       
   230 d6               0
       
   231 d7               0
       
   232 d8               0
       
   233 d9               0
       
   234 >9               0
       
   235 0
       
   236 --- testzero works
       
   237 0
       
   238 found: 5
       
   239 different record: 0
       
   240 bad length: 0
       
   241 not found: 0
       
   242 untested: 0
       
   243 0
       
   244 --- testzero can build a database very close to 4GB
       
   245 0
       
   246 --- testzero complains if hash table passes 4GB
       
   247 testzero: fatal: unable to write: out of memory
       
   248 111
       
   249 --- testzero complains if records pass 4GB
       
   250 testzero: fatal: unable to write: out of memory
       
   251 111