openbsd_regress.sh 360 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # $OpenBSD: openbsd_regress.sh,v 1.1.1.1 2011/10/07 08:58:42 edd Exp $
  3. IN=test.ine
  4. OUT=actual_outcome.ine
  5. EXPECT=expected_outcome.ine
  6. ./glrs ${IN} | grep -e '^ 1' 2>&1 | tee ${OUT}
  7. DIFF=`diff -u ${OUT} ${EXPECT}`
  8. if [ -n "${DIFF}" ]; then
  9. echo "ERROR: Regression test failed:"
  10. echo "${DIFF}"
  11. exit 1
  12. fi
  13. echo "OK: Regression test passed"
  14. exit 0