hV6,sum=33170
s 00001/00001/00028
d D 1.2 2015/06/03 00:06:44+0200 joerg 2 1
S s 07953
c ../common/test-common -> ../../common/test-common
e
s 00029/00000/00000
d D 1.1 2011/04/26 03:04:16+0200 joerg 1 0
S s 07814
c date and time created 11/04/26 03:04:16 by joerg
e
u
U
f e 0
f y 
G r 0e46e8edee5d7
G p sccs/tests/cssctests/prs/cutoff.sh
t
T
I 1
#! /bin/sh

# cutoff.sh:  Tests for prs -e and prs -l (with both -c and -r).

# Import common functions & definitions.
D 2
. ../common/test-common
E 2
I 2
. ../../common/test-common
E 2

s="../year-2000/s.y2k.txt"
cleanup () {
    remove command.log
}
cleanup

# First, basic tests with a cutoff which does not co-incide precisely
# with the date of an existing delta.
docommand co1 "${prs} -e -c70 -d:I: $s" 0 "1.1\n" IGNORE
docommand co2 "${prs} -l -c70 -d:I: $s" 0 "1.5\n1.4\n1.3\n1.2\n" IGNORE

# Now, choose a data which does coincide.  The delta whose time matches
# should always be printed (in this case, 1.2).
docommand co3 "${prs} -e -c991231235959 -d:I: $s" 0 "1.2\n1.1\n" IGNORE
docommand co4 "${prs} -l -c991231235959 -d:I: $s" 0 "1.5\n1.4\n1.3\n1.2\n" IGNORE


# These tests are fundamentally the same but with -r instead of -c.
docommand co5 "${prs} -e -r1.2 -d:I: $s" 0 "1.2\n1.1\n" IGNORE
docommand co6 "${prs} -l -r1.2 -d:I: $s" 0 "1.5\n1.4\n1.3\n1.2\n" IGNORE

cleanup
E 1
