diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-04-29 05:36:26 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-04-29 05:36:26 +0000 |
commit | 830a4d2e3db62b4303c8c0843e717ef6af82ea0e (patch) | |
tree | 507fab5e33f041ce9a098be28474b105ed1196bc /regress | |
parent | f36c2e3e0a2a4d86a12061db66523cadaa8434fc (diff) |
Add tests for keywords in ci, not enabled yet. We are still missing
$Log$ functionality.
OK xsa@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/rcs/Makefile | 12 | ||||
-rw-r--r-- | regress/usr.bin/rcs/keywords.in | 10 | ||||
-rw-r--r-- | regress/usr.bin/rcs/keywords.out | 13 |
3 files changed, 34 insertions, 1 deletions
diff --git a/regress/usr.bin/rcs/Makefile b/regress/usr.bin/rcs/Makefile index b4be896d346..4fbc56dd5a8 100644 --- a/regress/usr.bin/rcs/Makefile +++ b/regress/usr.bin/rcs/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.27 2006/04/28 20:24:20 xsa Exp $ +# $OpenBSD: Makefile,v 1.28 2006/04/29 05:36:25 ray Exp $ # Regression tests by Niall O'Higgins <niallo@openbsd.org>. # ksh -> Makefile by Ray Lai <ray@cyth.net>. @@ -63,6 +63,7 @@ LTESTS= ci-initial \ rcs-iflag \ rlog-lflag \ ci-nofile \ + #ci-keywords \ .for t in ${LTESTS} REGRESS_TARGETS+=test-${t} @@ -515,6 +516,15 @@ test-rlog-zflag: clean test-ci-nofile: @${CI} -q nonexistent || case "$$?" in 1) exit 0;; esac && exit 1 +test-ci-keywords: clean + @mkdir RCS + @sed 's/.*/$$&$$/' ${.CURDIR}/keywords.in > file + @sed 's/^[A-Z][A-Z]*[a-z][a-z]*: .*/$$&$$/' ${.CURDIR}/keywords.out > keywords.out + @echo . | ${CI} -q -u file + @sed -e 's,${USER},USER,' -e "s/\($$[A-Z][a-z]*: \).*file,v/\1file,v/" \ + -e 's,[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9],YYYY/MM/DD HH:MI:SS,' \ + file | diff -u keywords.out - + clean: @rm -rf ${CLEANFILES} diff --git a/regress/usr.bin/rcs/keywords.in b/regress/usr.bin/rcs/keywords.in new file mode 100644 index 00000000000..f8cf6fef791 --- /dev/null +++ b/regress/usr.bin/rcs/keywords.in @@ -0,0 +1,10 @@ +Author +Date +Header +Id +Log +Name +RCSfile +Revision +Source +State diff --git a/regress/usr.bin/rcs/keywords.out b/regress/usr.bin/rcs/keywords.out new file mode 100644 index 00000000000..e381077ee35 --- /dev/null +++ b/regress/usr.bin/rcs/keywords.out @@ -0,0 +1,13 @@ +Author: USER +Date: YYYY/MM/DD HH:MI:SS +Header: file,v 1.1 YYYY/MM/DD HH:MI:SS USER Exp +Id: file,v 1.1 YYYY/MM/DD HH:MI:SS USER Exp +Log: file,v +Revision 1.1 YYYY/MM/DD HH:MI:SS USER +Initial revision + +Name: +RCSfile: file,v +Revision: 1.1 +Source: file,v +State: Exp |