I have a linux utility that parses structured input ( a text file ), processes it and prints the result to the screen. For example: (input)
COMMAND=create
NAME=Stack
SURNAME=Overflow
My utility takes as input the above text file and tries to create an object (stack, overflow) in the database. If the action is executed successfully my program returns something like this:
COMMAND=create
Code=0
Result=OK
or in case of error
COMMAND=create Code=10 Result=Duplicate entry
I am looking for a good way to create a regression suite for my binary. Any ideas that fit my case? Is any alternative to JUnit in C/C++?