Lev Walkin | 791d3b7 | 2017-10-02 16:24:28 -0700 | [diff] [blame] | 1 | |
| 2 | This directory contains test bundles for randomized testing. |
| 3 | Each file contains a number of related ASN.1 types with variations in |
| 4 | contstraints that are intended to affect encoding and parsing. |
| 5 | |
| 6 | * Lines consisting of comments only are ignored. |
| 7 | |
| 8 | * The ASN.1 type can be written with "T ::=" prefix or without it, in which |
| 9 | case it will be added automatically. It is done to simplify manual |
| 10 | testing with ./check-bundles.sh -t <type>. For example, |
| 11 | ./check-bundles.sh -t INTEGER |
| 12 | is equivalent to |
| 13 | ./check-bundles.sh -t "T ::= INTEGER" |
| 14 | |
| 15 | * By default, the random value generator attempts to generate values |
| 16 | limited to very roughly to around 128 bytes. If huge values are desired |
Lev Walkin | 5d947a8 | 2017-10-03 01:04:03 -0700 | [diff] [blame] | 17 | (perhaps due to large constraints), the RMAX=<size> setting can be specified |
| 18 | in the ASN.1 comments: |
Lev Walkin | 791d3b7 | 2017-10-02 16:24:28 -0700 | [diff] [blame] | 19 | |
Lev Walkin | 5d947a8 | 2017-10-03 01:04:03 -0700 | [diff] [blame] | 20 | T ::= VisibleString (SIZE(64000)) -- RMAX=64000 |
Lev Walkin | 791d3b7 | 2017-10-02 16:24:28 -0700 | [diff] [blame] | 21 | |
| 22 | |