]> git.draconx.ca Git - dxcommon.git/commit
tests: Generate gen-options.awk expected output better.
authorNick Bowler <nbowler@draconx.ca>
Mon, 23 Jan 2023 04:23:52 +0000 (23:23 -0500)
committerNick Bowler <nbowler@draconx.ca>
Mon, 23 Jan 2023 05:04:21 +0000 (00:04 -0500)
commitc3b7ff6af1fa247b4df631d924f8b79fc6f6fc90
tree431c695b9ebb2748ce294058af9478bb9dfeb268
parentbb43879990642c8b745a64597186207ab85ad05f
tests: Generate gen-options.awk expected output better.

In the main test group for gen-options.awk, various combinations of
sed and shell line noise are used to create the expected output.

It turns out that at least some versions of Solaris /bin/sed don't
accept patterns like [^\n] as meaning "any character other than
newline", which causes this line noise to fail.  We could perhaps
use /usr/xpg4/bin/sed instead which seems to not have this specific
problem, but let's just do everything in awk which is much simpler.
tests/scripts.at