summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-05-01 18:43:42 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-05-01 18:43:42 +0000
commite57867a6323bb6bd123925634c34038fa770935a (patch)
tree572529e9e4176b1b861b4c964c77e0d8796422ba /regress/usr.bin
parentba4eab13818edd114e306056b8052f6f840f657f (diff)
- add tests for -oranges.
ok joris@
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/rcs/Makefile31
1 files changed, 30 insertions, 1 deletions
diff --git a/regress/usr.bin/rcs/Makefile b/regress/usr.bin/rcs/Makefile
index 4fbc56dd5a8..5d2887b0616 100644
--- a/regress/usr.bin/rcs/Makefile
+++ b/regress/usr.bin/rcs/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.28 2006/04/29 05:36:25 ray Exp $
+# $OpenBSD: Makefile,v 1.29 2006/05/01 18:43:41 niallo Exp $
# Regression tests by Niall O'Higgins <niallo@openbsd.org>.
# ksh -> Makefile by Ray Lai <ray@cyth.net>.
@@ -56,6 +56,7 @@ LTESTS= ci-initial \
rcs-tflag-stdin3 \
rcs-tflag-inline \
rcs-tflag-file \
+ rcs-oflag \
rcs-lock-unlock \
co-lock-filemodes \
co-unlock-filemodes \
@@ -352,6 +353,34 @@ test-rcs-tflag-file: clean
@${RCS} -q -i -tdescription file
@fgrep -q 'This is a description.' file,v
+# Testing deletion of ranges
+test-rcs-oflag: clean
+ @cp ${.CURDIR}/rev3 blah.c
+ @echo "blah" | ${CI} -q blah.c
+ @${CO} -q -l blah.c
+ @echo "blah2" >> blah.c
+ @echo "blah2" | ${CI} -q blah.c
+ @${CO} -q -l blah.c
+ @echo "blah3" >> blah.c
+ @echo "blah3" | ${CI} -q blah.c
+ @${CO} -q -l blah.c
+ @echo "blah4" >> blah.c
+ @echo "blah4" | ${CI} -q blah.c
+ @${CO} -q -l blah.c
+ @echo "blah5" >> blah.c
+ @echo "blah5" | ${CI} -q blah.c
+ @${CO} -q -l blah.c
+ @echo "blah6" >> blah.c
+ @echo "blah6" | ${CI} -q blah.c
+ @${CO} -q -l blah.c
+ @${RCS} -q -o1.3:1.5 blah.c
+ @fgrep -q '1.3' blah.c,v || \
+ case "$$?" in 1) exit 0;; esac && exit 1
+ @fgrep -q '1.4' blah.c,v || \
+ case "$$?" in 1) exit 0;; esac && exit 1
+ @fgrep -q '1.5' blah.c,v || \
+ case "$$?" in 1) exit 0;; esac && exit 1
+
test-rcs-lock-unlock: clean
@touch file
@mkdir -p RCS