From 8de35d1929137acb932efc596546ad5c18a7c8dd Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Fri, 28 Apr 2006 20:11:46 +0000 Subject: add various tests for `rlog -z' (not enabled yet); --- regress/usr.bin/rcs/Makefile | 12 +++++++++++- regress/usr.bin/rcs/rlog-zflag1.out | 17 +++++++++++++++++ regress/usr.bin/rcs/rlog-zflag2.out | 17 +++++++++++++++++ regress/usr.bin/rcs/rlog-zflag3.out | 17 +++++++++++++++++ regress/usr.bin/rcs/rlog-zflag4.out | 17 +++++++++++++++++ 5 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 regress/usr.bin/rcs/rlog-zflag1.out create mode 100644 regress/usr.bin/rcs/rlog-zflag2.out create mode 100644 regress/usr.bin/rcs/rlog-zflag3.out create mode 100644 regress/usr.bin/rcs/rlog-zflag4.out 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 . # ksh -> Makefile by Ray Lai . @@ -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 +============================================================================= -- cgit v1.2.3