title: regression test for command line program in C/C++
body: <p>I have a linux utility that parses structured input ( a text file ), processes it and prints the result to the screen. For example: (input)</p>
  
  <pre><code>COMMAND=create
      NAME=Stack
      SURNAME=Overflow
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>COMMAND=create
      Code=0
      Result=OK
  </code></pre>
  
  <p>or in case of error</p>
  
  <blockquote>
  <pre><code>COMMAND=create
      Code=10
      Result=Duplicate entry
  </code></pre>
  </blockquote>
  
  <p>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++?</p>