summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-04-13 04:21:06 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-04-13 04:21:06 +0000
commit24e4d406b09ea6b3af18ca780d856dbf9ebc8fbc (patch)
tree5399c4c555bb3658fcf55cafeea9161e43f0d0e1 /regress/usr.bin
parentd63886ea2e296e4bc42783e65fc8b369a059da95 (diff)
Regression tests for ci and co for revision-less RCS files.
OK joris@
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/rcs/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/regress/usr.bin/rcs/Makefile b/regress/usr.bin/rcs/Makefile
index 31f31801ccd..16efe818279 100644
--- a/regress/usr.bin/rcs/Makefile
+++ b/regress/usr.bin/rcs/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.17 2006/04/13 04:01:19 ray Exp $
+# $OpenBSD: Makefile,v 1.18 2006/04/13 04:21:05 ray Exp $
# Regression tests by Niall O'Higgins <niallo@openbsd.org>.
# ksh -> Makefile by Ray Lai <ray@cyth.net>.
@@ -57,7 +57,8 @@ LTESTS= ci-initial \
rcs-lock-unlock \
co-lock-filemodes \
co-unlock-filemodes \
- ci-filemodes
+ ci-filemodes \
+ rcs-iflag \
.for t in ${LTESTS}
REGRESS_TARGETS+=test-${t}
@@ -455,6 +456,20 @@ test-ci-filemodes: test-co-unlock-filemodes
@echo "blah" | ${CI} -q blah.c
@eval 'test `stat -f%p RCS/blah.c,v` = 100404'
+# Test various operations on a file with no revisions.
+test-rcs-iflag: clean
+ @mkdir -p RCS
+ @echo . | ${RCS} -i -q file
+ @test -f RCS/file,v
+ @${CO} -q file
+ @test -f file
+ @test ! -s file
+ @rm -f file
+ @${CO} -l file
+ @echo text >> file
+ @${CI} -q file
+ @fgrep -q 1.1 RCS/file,v
+
clean:
@rm -rf ${CLEANFILES}