summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-03-21 08:32:11 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-03-21 08:32:11 +0000
commit9359875e94fab0a904cde5177fd47128bb47a226 (patch)
treed0b10c00275796e7a1f0f0bd7429afaab510b853 /regress
parentb89e4bc68c6851b2ff4ba3333774ff55d1f51663 (diff)
add tests for `rcs -a' and `rcs -e', just not enabled yet.
"Looks good" ray@.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/rcs/Makefile14
-rw-r--r--regress/usr.bin/rcs/rcs-aflag.out15
-rw-r--r--regress/usr.bin/rcs/rcs-eflag.out12
3 files changed, 40 insertions, 1 deletions
diff --git a/regress/usr.bin/rcs/Makefile b/regress/usr.bin/rcs/Makefile
index 290b078aee5..b856716b3de 100644
--- a/regress/usr.bin/rcs/Makefile
+++ b/regress/usr.bin/rcs/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2006/03/17 14:06:00 xsa Exp $
+# $OpenBSD: Makefile,v 1.8 2006/03/21 08:32:10 xsa Exp $
# Regression tests by Niall O'Higgins <niallo@openbsd.org>.
# ksh -> Makefile by Ray Lai <ray@cyth.net>.
@@ -8,6 +8,7 @@ CO?= co
RCS?= rcs
RCSDIFF?= rcsdiff
RCSMERGE?= rcsmerge
+RLOG?= rlog
CLEANFILES= blah.c blah.c,v test test,v RCS
@@ -236,6 +237,17 @@ test-comma:
@test -e RCS/file,notext,v
@test ! -e RCS/file,v
+# Testing 'rcs -afoo,bar,baz'
+test-rcs-aflag: clean
+ @echo "." | ${RCS} -q -i test
+ @${RCS} -q -afoo,bar,baz test
+ @${RLOG} test | diff -u ${.CURDIR}/rcs-aflag.out -
+
+# Testing 'rcs -efoo,bar,baz'
+test-rcs-eflag: test-rcs-aflag
+ @${RCS} -q -efoo,bar,baz test
+ @${RLOG} test | diff -u ${.CURDIR}/rcs-eflag.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..74fb3600399
--- /dev/null
+++ b/regress/usr.bin/rcs/rcs-aflag.out
@@ -0,0 +1,15 @@
+
+RCS file: test,v
+Working file: test
+head:
+branch:
+locks: strict
+access list:
+ foo
+ bar
+ baz
+symbolic names:
+keyword substitution: kv
+total revisions: 0
+description:
+=============================================================================
diff --git a/regress/usr.bin/rcs/rcs-eflag.out b/regress/usr.bin/rcs/rcs-eflag.out
new file mode 100644
index 00000000000..9bf34f41036
--- /dev/null
+++ b/regress/usr.bin/rcs/rcs-eflag.out
@@ -0,0 +1,12 @@
+
+RCS file: test,v
+Working file: test
+head:
+branch:
+locks: strict
+access list:
+symbolic names:
+keyword substitution: kv
+total revisions: 0
+description:
+=============================================================================