summaryrefslogtreecommitdiff
path: root/regress/usr.bin/rcs
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-04-14 15:01:24 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-04-14 15:01:24 +0000
commit665c60043c892f832a34f784d6b6ddf197a113ab (patch)
treebddd35121249a092f51b3c14c7e8e2c0db03f188 /regress/usr.bin/rcs
parent5c9506be84386f3d51e0b7c59f6637aa790abfbd (diff)
Regression tests for rlog -l.
OK joris@
Diffstat (limited to 'regress/usr.bin/rcs')
-rw-r--r--regress/usr.bin/rcs/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/regress/usr.bin/rcs/Makefile b/regress/usr.bin/rcs/Makefile
index 16efe818279..f075f098c3f 100644
--- a/regress/usr.bin/rcs/Makefile
+++ b/regress/usr.bin/rcs/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.18 2006/04/13 04:21:05 ray Exp $
+# $OpenBSD: Makefile,v 1.19 2006/04/14 15:01:23 ray Exp $
# Regression tests by Niall O'Higgins <niallo@openbsd.org>.
# ksh -> Makefile by Ray Lai <ray@cyth.net>.
@@ -59,6 +59,7 @@ LTESTS= ci-initial \
co-unlock-filemodes \
ci-filemodes \
rcs-iflag \
+ rlog-lflag \
.for t in ${LTESTS}
REGRESS_TARGETS+=test-${t}
@@ -470,6 +471,16 @@ test-rcs-iflag: clean
@${CI} -q file
@fgrep -q 1.1 RCS/file,v
+test-rlog-lflag: clean
+ @mkdir RCS
+ @touch file
+ @echo rev1 | ${CI} -q -l file
+ @${RLOG} -l file | fgrep -q 'revision 1.1'
+ @echo line >> file
+ @echo rev2 | ${CI} -q file
+ @${RLOG} -l file | fgrep -q 'revision 1.2' || \
+ case "$$?" in 1) exit 0;; esac && exit 1
+
clean:
@rm -rf ${CLEANFILES}