I have a small C++ program that parses a file given as a command line argument. I want to create couple of test files and feed them to the program to make sure it does not crash when it reads malfomed files. I am looking to automate this process as I will have couple of hundred test files, either through GDB or something else.
Any tips?
Thank you
I think you can use
bashorpythonfor such scripts. For debugging you can just turn on core dump files generation and check what went wrong after the test is done.