I'm currently working on the C++ side of a font library in both C++ and Java.
We would like to generate test data from multiple fonts automatically and we're using Google Test and JUnit for testing.
I will write a script to generate the data in this common format that would then be parsed in tests. The thing is that for C++ I would also like to use Google Test's value-parameterized tests and that would mean having the data in C++ as well.
So, I'm thinking of outputting the data in some common format and having C++ files be generated from that.
Normally, we'd consider XML or JSON but Protocol Buffers seem to fit the bill of generating code very easily which makes them interesting. I've never used them and browsing through the documentation, they seem really good at defining messages, not so much storing actual values (so I can define a Person message, but what I really want to do is store a bunch of Person constants).
What format should we use?
Thanks!