summaryrefslogtreecommitdiff
path: root/regress/usr.bin/rcs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-04-28 20:11:46 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-04-28 20:11:46 +0000
commit8de35d1929137acb932efc596546ad5c18a7c8dd (patch)
treef94bdd153517dd7b300e6fa21145ede229fb7a0c /regress/usr.bin/rcs
parente28717b81f1b39d717b220b1e2be89708c885db0 (diff)
add various tests for `rlog -z' (not enabled yet);
Diffstat (limited to 'regress/usr.bin/rcs')
-rw-r--r--regress/usr.bin/rcs/Makefile12
-rw-r--r--regress/usr.bin/rcs/rlog-zflag1.out17
-rw-r--r--regress/usr.bin/rcs/rlog-zflag2.out17
-rw-r--r--regress/usr.bin/rcs/rlog-zflag3.out17
-rw-r--r--regress/usr.bin/rcs/rlog-zflag4.out17
5 files changed, 79 insertions, 1 deletions
diff --git a/regress/usr.bin/rcs/Makefile b/regress/usr.bin/rcs/Makefile
index 23a96cd932b..352f0f81533 100644
--- a/regress/usr.bin/rcs/Makefile
+++ b/regress/usr.bin/rcs/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.25 2006/04/26 18:42:09 xsa Exp $
+# $OpenBSD: Makefile,v 1.26 2006/04/28 20:11:45 xsa Exp $
# Regression tests by Niall O'Higgins <niallo@openbsd.org>.
# ksh -> Makefile by Ray Lai <ray@cyth.net>.
@@ -502,6 +502,16 @@ test-rlog-rflag: clean
@${RLOG} -r1.2: file | ${DIFF} ${.CURDIR}/rlog-rflag3.out -
@${RLOG} -r:1.1 file | ${DIFF} ${.CURDIR}/rlog-rflag4.out -
+test-rlog-zflag: clean
+ @touch file
+ @echo "foo" > file
+ @echo "descr" | ${CI} -q -m"first rev" -d'2006-01-01 00:00:00+00' \
+ -wfoo file
+ @${RLOG} -zLT file | ${DIFF} ${.CURDIR}/rlog-zflag1.out -
+ @${RLOG} -z+03:14:23 file | ${DIFF} ${.CURDIR}/rlog-zflag2.out -
+ @${RLOG} -z+03:14 file | ${DIFF} ${.CURDIR}/rlog-zflag3.out -
+ @${RLOG} -z+0314 file | ${DIFF} ${.CURDIR}/rlog-zflag4.out -
+
test-ci-nofile:
@${CI} -q nonexistent || case "$$?" in 1) exit 0;; esac && exit 1
diff --git a/regress/usr.bin/rcs/rlog-zflag1.out b/regress/usr.bin/rcs/rlog-zflag1.out
new file mode 100644
index 00000000000..7768278609b
--- /dev/null
+++ b/regress/usr.bin/rcs/rlog-zflag1.out
@@ -0,0 +1,17 @@
+
+RCS file: file,v
+Working file: file
+head: 1.1
+branch:
+locks: strict
+access list:
+symbolic names:
+keyword substitution: kv
+total revisions: 1; selected revisions: 1
+description:
+descr
+----------------------------
+revision 1.1
+date: 2006-01-01 01:00:00+01; author: foo; state: Exp;
+first rev
+=============================================================================
diff --git a/regress/usr.bin/rcs/rlog-zflag2.out b/regress/usr.bin/rcs/rlog-zflag2.out
new file mode 100644
index 00000000000..984b9888332
--- /dev/null
+++ b/regress/usr.bin/rcs/rlog-zflag2.out
@@ -0,0 +1,17 @@
+
+RCS file: file,v
+Working file: file
+head: 1.1
+branch:
+locks: strict
+access list:
+symbolic names:
+keyword substitution: kv
+total revisions: 1; selected revisions: 1
+description:
+descr
+----------------------------
+revision 1.1
+date: 2006-01-01 03:14:23+03:14:23; author: foo; state: Exp;
+first rev
+=============================================================================
diff --git a/regress/usr.bin/rcs/rlog-zflag3.out b/regress/usr.bin/rcs/rlog-zflag3.out
new file mode 100644
index 00000000000..16feac0c31d
--- /dev/null
+++ b/regress/usr.bin/rcs/rlog-zflag3.out
@@ -0,0 +1,17 @@
+
+RCS file: file,v
+Working file: file
+head: 1.1
+branch:
+locks: strict
+access list:
+symbolic names:
+keyword substitution: kv
+total revisions: 1; selected revisions: 1
+description:
+descr
+----------------------------
+revision 1.1
+date: 2006-01-01 03:14:00+03:14; author: foo; state: Exp;
+first rev
+=============================================================================
diff --git a/regress/usr.bin/rcs/rlog-zflag4.out b/regress/usr.bin/rcs/rlog-zflag4.out
new file mode 100644
index 00000000000..16feac0c31d
--- /dev/null
+++ b/regress/usr.bin/rcs/rlog-zflag4.out
@@ -0,0 +1,17 @@
+
+RCS file: file,v
+Working file: file
+head: 1.1
+branch:
+locks: strict
+access list:
+symbolic names:
+keyword substitution: kv
+total revisions: 1; selected revisions: 1
+description:
+descr
+----------------------------
+revision 1.1
+date: 2006-01-01 03:14:00+03:14; author: foo; state: Exp;
+first rev
+=============================================================================