Unit and Regression Testing

By Adrian McCarthy

Dr. Dobb's Journal February 1997

accept:
   del *.ref
   copy *.out *.ref
regress:  $(TESTOUTS)
    echo "Regression Report" > REGRESS.RPT
    fc TVECTOR.REF TVECTOR.OUT >> REGRESS.RPT
    # ... one for each unit test

Example 2: Adding an accept target and enhancing the regress target.

Back to Article


Copyright © 1997, Dr. Dobb's Journal