202 |
variations, most notably dotest_fail for expected non-zero exit codes. |
variations, most notably dotest_fail for expected non-zero exit codes. |
203 |
|
|
204 |
Other than that the script is mostly vanilla Bourne shell. There are a few |
Other than that the script is mostly vanilla Bourne shell. There are a few |
205 |
constructs used for versatility and portability. You can grep for the ones I |
common constructs used for versatility and portability. You can grep for the |
206 |
miss, but here are a few important ones. I'm leaving off long explanations |
ones I miss, but here are a few important ones. I'm leaving off long |
207 |
after the first few since it probably gives you the idea and the data is in |
explanations after the first few since it probably gives you the idea and the |
208 |
sanity.sh. |
data is in sanity.sh. |
209 |
|
|
210 |
|
Several variables contain things intended to make a test writer's job easier. |
211 |
Note that the boolean variables contain shell commands which return true or |
Note that the boolean variables contain shell commands which return true or |
212 |
false when executed and are intended to be used like, |
false when executed and are intended to be used like, |
213 |
"if $remote; then ... ; else ... ; fi" |
"if $remote; then ... ; else ... ; fi" |
226 |
string to test for, since some messages can be printed either |
string to test for, since some messages can be printed either |
227 |
by the CVS client or CVS server, dependant on the mode. In |
by the CVS client or CVS server, dependant on the mode. In |
228 |
local mode it will = $PROG. |
local mode it will = $PROG. |
229 |
* $PROG = regexp to match client progname in CVS error messages. Use |
* $CPROG = regexp to match client progname in CVS error messages. Use |
230 |
this to match error messages known to be printed only from |
this to match error messages known to be printed only from |
231 |
the CVS client. |
the CVS client. |
232 |
* $remote = ':' (true) or 'false', depending on whether the script is |
* $remote = ':' (true) or 'false', depending on whether the script is |
238 |
* $testcvs_server_support |
* $testcvs_server_support |
239 |
= ':' (true) or 'false', depending whether server support was |
= ':' (true) or 'false', depending whether server support was |
240 |
detected in the ${testcvs} executable. |
detected in the ${testcvs} executable. |
241 |
|
* $tempfile = a regex to match a temporary file name, as generated by |
242 |
|
the cvs_temp_file function. |
243 |
|
* $tempname = a regex to match the full path to a temporary file generated |
244 |
|
by cvs_temp_file (always set to `$TMPDIR/$tempfile'). |
245 |
|
|
246 |
And, of course, some characters like '.' in regexps need to be '\' escaped when |
And, of course, some characters like '.' in regexps need to be '\' escaped when |
247 |
you mean them literally. Some characters may be interpreted by the shell, |
you mean them literally. Some characters may be interpreted by the shell, |