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

  1. @echo off
  2. rem ---------------------------------------------------------------------------
  3. rem TEST-REM
  4. rem
  5. rem This file runs an OS/2 acceptance test for Remind.    To use it, type:
  6. rem     test-rem
  7. rem in the build directory.
  8. rem
  9. rem This file is part of REMIND.
  10. rem Copyright (C) 1992, 1993 by David F. Skoll
  11. rem ---------------------------------------------------------------------------
  12.  
  13. del /f test.out > nul
  14. setlocal
  15. set TEST_GETENV=foo bar baz
  16. if exist ..\os2-ex\remind.exe goto bcc
  17. remind -e -dxte ./test.rem 16 feb 1991 > .\test.out
  18. goto cmp
  19. :bcc
  20. ..\os2-ex\remind -e -dxte .\test.rem 16 feb 1991 > .\test.out
  21. :cmp
  22. echo n | comp test.out test2.cmp
  23. if errorlevel 1 goto oops
  24. echo "Remind:  Acceptance test PASSED"
  25. goto quit
  26. :oops
  27. echo "Remind:  Acceptance test FAILED"
  28. echo ""
  29. echo "Examine the file test.out to see where it differs from the"
  30. echo "reference file test2.cmp."
  31. :quit
  32. endlocal
  33.