]> git.draconx.ca Git - dxcommon.git/commit
Avoid nonportable ${x##y} substitutions in program tests.
authorNick Bowler <nbowler@draconx.ca>
Tue, 9 Mar 2021 06:13:48 +0000 (01:13 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 9 Mar 2021 06:13:48 +0000 (01:13 -0500)
commit485ec08e224f3ffed90259f445839572096187a0
treecc04cd3a2838f92b1b3594fe846780c369227387
parentc01bc8e8ea99252f4249434e432896c8f2ae1199
Avoid nonportable ${x##y} substitutions in program tests.

Using ${x##y} is not portable: in particular it is not supported by
Solaris /bin/sh (or heirloom-sh).  Define a new macro DX_BASENAME
which implements the particular substitution in a compatible way,
then use it in the flex, bison and gob2 tests.

Moreover, apparently heirloom-sh does not support "command" either,
so let's suppress the error message it generates (the tests will
still produce a usable result), and adjust the test cases to the
correct expected output in this scenario.
m4/basename.m4 [new file with mode: 0644]
m4/bison.m4
m4/flex.m4
m4/gob2.m4
tests/macros.at
tests/programs.at