Closed MikeFultonDev closed 2 years ago
The macro with the sed incantation is in tests/local.at:
m4_define([AT_CHECK_M4],
[AT_CHECK([$1], [$2], [$3],
m4_case([$4], [], [], [ignore], [ignore], [stderr]))
m4_case([$4], [], [], [ignore], [],
[AT_CHECK([[mv stderr stderr-raw &&
sed 's/^[^:]*m4[-.ex0-9]*: *\([^:]*:\) *\([0-9][0-9]*: \)/m4:\1\2/
s/^\([^:]*:\) *\([0-9][0-9]*:\)[^:]*m4[-.ex0-9]*: /m4:\1\2 /
s/: C\(annot open \)\([^`:]*\):/: c\1`\2'\'':/
s/: include:\( cannot open\)/:\1/
s/^autom4te: [^ ]*m4[.ex]* /autom4te: m4 /
s/^autom4te: error: [^ ]*m4[.ex]* /autom4te: error: m4 /
s!^.*/\([^/][^/]*\)\.m4: *[0-9][0-9]*: *!\1.m4: !
s!^.*/\([^/][^/]*\)\.m4: *[0-9][0-9]*: *[0-9][0-9]*: *!\1.m4: !
s/ (E[A-Z]*)$//
' stderr-raw >&2]], [0], [], [$4])])
])
To get any changes into 'testsuite', you need to re-create testsuite, e.g. rm tests/testsuite make tests/testsuite
You can then re-run the one test with: testsuite 3
Need to add one more substitution to remove the period at the end of the line:
s/\(.*\)\(EDC5129I \)\(No such file or directory\)\.$/\1\3/
testsuite.log has the following:
The difference is the 'EDC5129I' error message prefix being added to the error output.