[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: autotest/AT_CHECK: ways to pass additional options on to diff?
From: |
Jannick |
Subject: |
RE: autotest/AT_CHECK: ways to pass additional options on to diff? |
Date: |
Thu, 27 Jun 2019 19:05:19 +0200 |
Hi Luke,
Sorry for the late reply.
On Wed, 5 Jun 2019 15:56:01 +1000, Luke Mewburn wrote:
> I used another solution where wanted to use a different diff
> implementation for AT_CHECK() that that allowed for regexes to be used
> in places where the output changes each test run.
> See my "pyrediff" project: https://github.com/lukem/pyrediff
>
> In pyrediff, I implemented a new macro with similar semantics to
> AT_CHECK() which temporarily overrode the setting of at_diff before
> calling AT_CHECK(), and set at_diff back before AT_CHECK() returns.
Would the approach by redefining diff in the shell environment I suggested in
https://lists.gnu.org/archive/html/autoconf/2019-06/msg00002.html be something
to avoid fiddling around with the autotest internals like the variable at_diff?
> I hope that's useful,
> Luke.
Many thanks for your input.
Regards,
J.