diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-05-13 23:28:36 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-05-13 23:28:36 +0300 |
commit | e8cc15b01976d2c35751e82f2f045b45415293f9 (patch) | |
tree | 5a98c1fb70dc642a61ab35cff84112d2b380082d /AppImage | |
parent | 8ec236b000a6b17488dda64587eaeb81db84bdf3 (diff) | |
download | sciteco-e8cc15b01976d2c35751e82f2f045b45415293f9.tar.gz |
revised test suite: got rid of most escaping for the TECO code snippets
* Test cases where hard to read since there was a layer of shell and M4 escaping -- sometimes
with the help of quadrigraphs -- to preserve the original TECO characters.
* We introduced TE_CHECK() and TE_CHECK_CMDLINE() M4 macros which care about shell escaping
automatically.
* If all TECO code is double quoted with [[ and ]], single square and round brackets
are preserved as well.
* Only in case of using *unbalanced* single square brackets, you have to take action
and add `![!` or `!]!` TECO comments to balance them out.
This is still better than quadrigraphs.
* The $ESCAPE and $RUBOUT environment variables are replaced by equivalent
M4 macros, so they can be used with TE_CHECK_CMDLINE().
* Other references to shell variables have been resolved by exporting them
into the environment (as in the case of $srcdir) or by introducing
new M4 macros (TE_MAXINTxx, TE_MININTxx).
* The $WORDS_EXAMPLE variable has been got rid of by writing it into a temporary
file instead. There is some redundancy -- in principle an M4 macro could have also been used.
* This leaves only 6 remaining usages of AT_CHECK() for invoking SciTECO,
mainly for testing opener.tes, where we have to pass in command line arguments.
In theory most of them could be avoided as well by preparing the unnamed buffer appropriately.
However the way that command line parameters are passed will be changed sooner or later.
* This uses GNU M4 extensions, but Autoconf requires that anyway.
Diffstat (limited to 'AppImage')
0 files changed, 0 insertions, 0 deletions