Sunday, March 16, 2008

Inter-operability Testing

Given that asn1c can't cope with entirely random (although legal) ASN.1, I've had to move away from using QuickCheck (for that particular purpose). I'm now going to use the unit tests to test inter-operability. Running main in Run.hs will:

  • generate ASN.1

  • run asn1c

  • generate C to encode a value

  • compile the C

  • run the C (encoding the value)

  • decode the value


I haven't yet put in code to check that the decoded value equals the original value.

It would be useful to be able to generate and encode values for multiple types rather than creating all the asn1c overhead for each type.

No comments: