File: test-rem.cmd

package info (click to toggle)
remind 03.00.19-2
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 1,452 kB
  • ctags: 1,712
  • sloc: ansic: 14,190; sh: 2,496; perl: 314; makefile: 165; csh: 14
file content (34 lines) | stat: -rw-r--r-- 961 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
rem ---------------------------------------------------------------------------
rem TEST-REM
rem
rem $Id: test-rem.cmd,v 1.1 1998/01/15 02:50:50 dfs Exp $
rem
rem This file runs an OS/2 acceptance test for Remind.	To use it, type:
rem	 test-rem
rem in the build directory.
rem
rem This file is part of REMIND.
rem Copyright (C) 1992-1997 by David F. Skoll        
rem ---------------------------------------------------------------------------

del /f test.out > nul
setlocal
set TEST_GETENV=foo bar baz
if exist ..\os2-ex\remind.exe goto bcc
remind -e -dxte ./test.rem 16 feb 1991 > .\test.out
goto cmp
:bcc
..\os2-ex\remind -e -dxte .\test.rem 16 feb 1991 > .\test.out
:cmp
echo n | comp test.out test2.cmp
if errorlevel 1 goto oops
echo "Remind:  Acceptance test PASSED"
goto quit
:oops
echo "Remind:  Acceptance test FAILED"
echo ""
echo "Examine the file test.out to see where it differs from the"
echo "reference file test2.cmp."
:quit
endlocal