home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / remind / src / test-rem < prev    next >
Encoding:
Text File  |  1993-10-12  |  764 b   |  26 lines

  1. #!/bin/sh
  2. # ---------------------------------------------------------------------------
  3. # TEST-REM
  4. #
  5. # This file runs an acceptance test for Remind.  To use it, type:
  6. #      sh test-rem  OR make test
  7. # in the build directory.
  8. #
  9. # This file is part of REMIND.
  10. # Copyright (C) 1992, 1993 by David F. Skoll
  11. # ---------------------------------------------------------------------------
  12.  
  13. TEST_GETENV="foo bar baz" ; export TEST_GETENV
  14. ./remind -e -dxte ./test.rem 16 feb 1991 > ./test.out
  15. cmp -s ./test.out ./test.cmp
  16. if [ "$?" = "0" ]; then
  17.    echo "Remind:  Acceptance test PASSED"
  18.    exit 0
  19. else
  20.    echo "Remind:  Acceptance test FAILED"
  21.    echo ""
  22.    echo "Examine the file test.out to see where it differs from the"
  23.    echo "reference file test.cmp."
  24.    exit 1
  25. fi
  26.