Debugger automation/scripting on Linux?
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 tip开发者_如何学Gos?
Thank you
I think you can use bash
or python
for such scripts. For debugging you can just turn on core dump files generation and check what went wrong after the test is done.
精彩评论