Does anyone have any comments on how to write unit tests for 3rd party applications like kamailio...that allow you to write "configuration scripts"? https://www.kamailio.org/wiki/cookbooks/4.0.x/core/cfg#the_configuration_file I'm looking for more an approach vs. specifics.
In this particular case, these configuration files are written in a proprietary script format that kamailio understands. Kamailio itself provides a compile option will test syntax of these files... but not much more.
We also have lua code that these cfg files call. I think its going to be a little easier to write unit tests for these methods in the lua files... except that some of the functions are expecting data from the cfg. My idea is to capture / dump this data ... and for the unit tests, seed the tests with data that looks like what kamailio would send via these cfgs and then test from there.