352 |
AT_CHECK([./script]) |
AT_CHECK([./script]) |
353 |
|
|
354 |
AT_CLEANUP |
AT_CLEANUP |
355 |
|
|
356 |
|
## -------------- ## |
357 |
|
## AS_HELP_STRING ## |
358 |
|
## -------------- ## |
359 |
|
|
360 |
|
# I'm not totally certain that we want to enforce the defaults here, |
361 |
|
# but at least it is being tested. |
362 |
|
|
363 |
|
AT_SETUP([[AS@&t@_HELP_STRING]]) |
364 |
|
|
365 |
|
AT_DATA_M4SH([script.as], |
366 |
|
[[AS_INIT |
367 |
|
_AS_LINENO_PREPARE |
368 |
|
|
369 |
|
echo "AS_HELP_STRING([--an-option],[some text])" |
370 |
|
echo "AS_HELP_STRING([--another-much-longer-option], |
371 |
|
[some other text which should wrap at our default of 80 characters.])" |
372 |
|
]]) |
373 |
|
|
374 |
|
AT_CHECK_M4SH |
375 |
|
AT_CHECK([./script], [0], |
376 |
|
[ --an-option some text |
377 |
|
--another-much-longer-option |
378 |
|
some other text which should wrap at our default of |
379 |
|
80 characters. |
380 |
|
]) |
381 |
|
|
382 |
|
AT_CLEANUP |