diff options
author | 2006-04-13 04:21:05 +0000 | |
---|---|---|
committer | 2006-04-13 04:21:05 +0000 | |
commit | 7621d3915afa45745344f47d16a8ee66de6acb99 (patch) | |
tree | 7543fc6ee9262879059d6bb83ff89dced4cb0a21 | |
parent | Somehow the regression tests and commit message were both gone from (diff) | |
download | wireguard-openbsd-7621d3915afa45745344f47d16a8ee66de6acb99.tar.xz wireguard-openbsd-7621d3915afa45745344f47d16a8ee66de6acb99.zip |
Regression tests for ci and co for revision-less RCS files.
OK joris@
-rw-r--r-- | regress/usr.bin/rcs/Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/regress/usr.bin/rcs/Makefile b/regress/usr.bin/rcs/Makefile index 31f31801ccd..16efe818279 100644 --- a/regress/usr.bin/rcs/Makefile +++ b/regress/usr.bin/rcs/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.17 2006/04/13 04:01:19 ray Exp $ +# $OpenBSD: Makefile,v 1.18 2006/04/13 04:21:05 ray Exp $ # Regression tests by Niall O'Higgins <niallo@openbsd.org>. # ksh -> Makefile by Ray Lai <ray@cyth.net>. @@ -57,7 +57,8 @@ LTESTS= ci-initial \ rcs-lock-unlock \ co-lock-filemodes \ co-unlock-filemodes \ - ci-filemodes + ci-filemodes \ + rcs-iflag \ .for t in ${LTESTS} REGRESS_TARGETS+=test-${t} @@ -455,6 +456,20 @@ test-ci-filemodes: test-co-unlock-filemodes @echo "blah" | ${CI} -q blah.c @eval 'test `stat -f%p RCS/blah.c,v` = 100404' +# Test various operations on a file with no revisions. +test-rcs-iflag: clean + @mkdir -p RCS + @echo . | ${RCS} -i -q file + @test -f RCS/file,v + @${CO} -q file + @test -f file + @test ! -s file + @rm -f file + @${CO} -l file + @echo text >> file + @${CI} -q file + @fgrep -q 1.1 RCS/file,v + clean: @rm -rf ${CLEANFILES} |