Lines Matching full:test

18 		file file,v newfile newfile,v merge-noeol.out test test,v \
19 test-truncated truncated.out foo foo,v bar bar,v
81 REGRESS_TARGETS+=test-${t}
84 test-ci-initial: clean
85 @echo 'this is a test file' > test
86 @echo "a test file" | ${CI} -q -l test
87 @grep -q 'this is a test file' test,v
89 # Testing 'ci test' with non-interactive log message
90 test-ci-mflag:
91 @echo 'another revision' >> test
92 @${CI} -q -m'a second revision' test
93 @test ! -e test
94 @grep -q 'another revision' test,v
96 # Testing 'co -l test'
97 test-ci-lflag:
98 @${CO} -q -l test
99 @test -e test
101 # Testing 'ci -r1.30 test' with non-interactive log message
102 test-ci-rflag:
103 @echo "new stuff" >> test
104 @${CI} -q -r1.30 -m'bumped rev' test
105 @test ! -e test
107 # Testing 'co -l test'
108 test-co-lflag:
109 @${CO} -q -l test
110 @test -e test
112 # Testing 'ci test' (should be rev 1.31) with non-interactive log message
113 test-ci-rev:
114 @echo "a third revision" >> test
115 @${CI} -q -m'this should be rev 1.31' test
116 @grep -q '1.31' test,v
118 # Testing 'co -u test' - ensuring permissions are 0444
119 test-co-perm:
120 @${CO} -q -u test
121 @eval 'test `stat -f%p test` = 100444'
123 # Testing 'co -l test' - ensuring permissions are 0644
124 test-co-perm2:
125 @rm -rf test
126 @${CO} -q -l test
127 @eval 'test `stat -f%p test` = 100644'
130 test-ci-perm:
131 @echo "a line for ci -u" >> test
132 @${CI} -q -m'message for ci -u' -u test
133 @eval 'test `stat -f%p test` = 100444'
136 test-ci-perm2:
137 @rm -rf test
138 @${CO} -q -l test
139 @echo "a line for ci -l" >> test
140 @${CI} -q -m'message for ci -l' -l test
141 @eval 'test `stat -f%p test` = 100644'
144 test-ci-dinvalid:
145 @echo 'some text for invalid date text' >> test
146 @if @${CI} -q -d'an invalid date' -m'invalid date' -l test 2>/dev/null; then false; fi
147 @if grep 'some text for invalid date text' test,v; then false; fi
150 test-ci-dold:
151 @echo 'some text for old date test' >> test
152 @if ${CI} -q -d'1990-01-12 04:00:00+00' -m'old dated revision' -l test 2>/dev/null; then false; fi
153 @if grep 'some text for old date test' test,v; then false; fi
156 test-ci-wflag:
157 @rm -rf test
158 @${CO} -q -l test
159 @echo "blah blah" >> test
160 @echo "output for ci -w" >> test
161 @${CI} -q -wtestuser -mcomment -l test
162 @grep -q 'author testuser' test,v
164 # Testing 'rcsdiff -u test' after adding another line
165 test-rcsdiff-uflag:
166 @echo "a line for rcsdiff test" >> test
167 @${RCSDIFF} -q -u test | tail -n 5 | \
170 # Testing 'rcsdiff -u -r1.2 test'
171 test-rcsdiff-rflag:
172 @${RCSDIFF} -q -u -r1.2 test | tail -n +3 | \
176 test-rcs-mflag:
177 @${RCS} -q -m1.2:logmessage test
178 @grep -q 'logmessage' test,v
181 test-rcs-mflag2:
182 @${RCS} -q -m1.1:'a new log message, one which is quite long and set by rcsprog' test
183 @grep -q 'a new log message, one which is quite long and set by rcsprog' test,v
186 test-co-RCSINIT:
187 @rm -rf test
188 @RCSINIT=-l ${CO} -q test
189 @eval 'test `stat -f%p test` = 100644'
192 test-ci-nflag:
193 @echo "something to check in with a symbol" >> test
194 @${CI} -q -n'symbolname' -m'test symbols' -l test
195 @grep -q 'symbolname' test,v
198 test-ci-Nflag:
199 @echo "something to check in with a forced symbol" >> test
200 @${CI} -q -N'symbolname' -m'test force symbol' -l test
201 @grep -q 'test force symbol' test,v
204 test-ci-sflag:
205 @echo "blahblah" >> test
206 @if ${CI} -q -l -s'SPACE S' -m"state with a space" test; then false; fi
207 @if grep -q 'SPACE S' test,v; then false; fi
210 test-co-lflag2:
211 @rm -rf test
212 @${CO} -q -l test
213 @test -e test
215 test-rcsclean: clean
220 @test -f file
225 @test ! -f file
228 @test ! -f file
231 @test ! -f file
235 @test -f file
237 @test ! -f file
242 @test -f file
244 test-merge-eflag: clean
251 test-merge-noeol: clean
277 test-rcsmerge:
288 test-rcsmerge-symbols: clean
300 test-rcsdiff:
313 test-rcsdiff-symbols: clean
325 # Testing 'ci -d'2037-01-12 04:00:00+00' -l test
326 test-ci-dflag: clean
327 @echo "some text for date test" >> test
328 @echo . | ${CI} -q -d'2037-01-12 04:00:00+00' -m'dated revision' -l test
329 @grep -q 'dated revision' test,v
331 test-ci-xflag:
336 @test -e RCS/file,abcd
337 @test ! -e RCS/file,v
343 @test ! -e RCS/file,abcd
345 @test ! -e RCS/filexyz
352 test-comma:
357 @test -e RCS/file,notext,v
358 @test ! -e RCS/file,v
361 test-rcs-aflag: clean
362 @echo "." | ${RCS} -q -i test
363 @${RCS} -q -afoo,bar,baz test
364 @${RLOG} test | ${DIFF} ${.CURDIR}/rcs-aflag.out -
367 test-rcs-eflag: test-rcs-aflag
368 @${RCS} -q -efoo,bar,baz test
369 @${RLOG} test | ${DIFF} ${.CURDIR}/rcs-eflag.out -
372 test-rcs-Aflag: test-rcs-aflag
377 test-rcs-tflag-stdin: clean
381 test-rcs-tflag-stdin2: clean
385 test-rcs-tflag-stdin3: clean
391 test-rcs-tflag-inline: clean
395 test-rcs-tflag-file: clean
401 test-rcs-oflag: clean
428 test-rcs-lock-unlock: clean
460 test-co-lock-filemodes:
468 @eval 'test `stat -f%p blah.c` = 100755'
472 @eval 'test `stat -f%p blah.c` = 100644'
476 @eval 'test `stat -f%p blah.c` = 100600'
480 @eval 'test `stat -f%p blah.c` = 100604'
484 @eval 'test `stat -f%p blah.c` = 100754'
488 test-co-unlock-filemodes: test-co-lock-filemodes
495 @eval 'test `stat -f%p blah.c` = 100555'
499 @eval 'test `stat -f%p blah.c` = 100444'
503 @eval 'test `stat -f%p blah.c` = 100400'
507 @eval 'test `stat -f%p blah.c` = 100404'
511 @eval 'test `stat -f%p blah.c` = 100554'
514 test-ci-filemodes: test-co-unlock-filemodes
520 @eval 'test `stat -f%p RCS/blah.c,v` = 100555'
525 @eval 'test `stat -f%p RCS/blah.c,v` = 100444'
530 @eval 'test `stat -f%p RCS/blah.c,v` = 100500'
535 @eval 'test `stat -f%p RCS/blah.c,v` = 100404'
537 # Test various operations on a file with no revisions.
538 test-rcs-iflag: clean
541 @test -f RCS/file,v
543 @test -f file
544 @test ! -s file
551 test-rlog-lflag: clean
561 # Test various cases for the -r flag
562 test-rlog-rflag: clean
579 test-rlog-zflag: clean
589 test-ci-nofile:
592 test-ci-revert: clean
600 test-ci-keywords: clean
611 test-ci-keywords2: clean
615 test-ci-parse-keywords: clean
616 @echo '$Id' > test
617 @echo . | ${CI} -q -k test
619 test-ci-parse-keywords2: clean
620 @echo '$Id: blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah' > test
621 @echo . | ${CI} -q -k test
624 test-co-parse-truncated: clean
625 @sh -c 'ulimit -d 5000 && ${CO} -q ${.CURDIR}/test-truncated > truncated.out 2>&1' || \
629 test-ci-2files: clean
632 @test -f foo,v -a ! -f bar,v
634 @test -f foo,v -a -f bar,v