summaryrefslogtreecommitdiff
path: root/regress/usr.bin/rcs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-03-24 15:26:23 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-03-24 15:26:23 +0000
commit6b5b9248ef656dea20d1dbde8184de09a9230919 (patch)
tree5717da4e31fb718ce0be6b364fa058017984d2d0 /regress/usr.bin/rcs
parentcd883113cecad96b32137d1a06fc1f329c2cb507 (diff)
add test for `rcs -Aoldfile'; not enabled yet. ray@ likes it.
Diffstat (limited to 'regress/usr.bin/rcs')
-rw-r--r--regress/usr.bin/rcs/Makefile10
-rw-r--r--regress/usr.bin/rcs/rcs-Aflag.out15
2 files changed, 23 insertions, 2 deletions
diff --git a/regress/usr.bin/rcs/Makefile b/regress/usr.bin/rcs/Makefile
index 2f502c11ee7..6cc91cf110b 100644
--- a/regress/usr.bin/rcs/Makefile
+++ b/regress/usr.bin/rcs/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2006/03/24 05:14:48 ray Exp $
+# $OpenBSD: Makefile,v 1.11 2006/03/24 15:26:22 xsa Exp $
# Regression tests by Niall O'Higgins <niallo@openbsd.org>.
# ksh -> Makefile by Ray Lai <ray@cyth.net>.
@@ -10,7 +10,7 @@ RCSDIFF?= rcsdiff
RCSMERGE?= rcsmerge
RLOG?= rlog
-CLEANFILES= RCS blah.c blah.c,v file file,v test test,v
+CLEANFILES= RCS blah.c blah.c,v file file,v newfile newfile,v test test,v
# XXX - These may need to be done in order.
# (At least start with ci-initial.)
@@ -247,6 +247,12 @@ test-rcs-eflag: test-rcs-aflag
@${RCS} -q -efoo,bar,baz test
@${RLOG} test | diff -u ${.CURDIR}/rcs-eflag.out -
+# Testing 'rcs -Atest newfile'
+test-rcs-Aflag: test-rcs-aflag
+ @echo "." | ${RCS} -q -i newfile
+ @${RCS} -q -Atest newfile
+ @${RLOG} newfile | diff -u ${.CURDIR}/rcs-Aflag.out -
+
clean:
@rm -rf ${CLEANFILES}
diff --git a/regress/usr.bin/rcs/rcs-Aflag.out b/regress/usr.bin/rcs/rcs-Aflag.out
new file mode 100644
index 00000000000..fe83c82595f
--- /dev/null
+++ b/regress/usr.bin/rcs/rcs-Aflag.out
@@ -0,0 +1,15 @@
+
+RCS file: newfile,v
+Working file: newfile
+head:
+branch:
+locks: strict
+access list:
+ foo
+ bar
+ baz
+symbolic names:
+keyword substitution: kv
+total revisions: 0
+description:
+=============================================================================