[PATCH 0/3] Waf: Semi-automatic generation of results for cross-answers files
Uri Simchoni
urisimchoni at gmail.com
Sun May 3 01:05:27 MDT 2015
The drawback of cross-execute alone is that you need a working target in
order to build.
What I have in mind is to be able to run cross-execute one-time in order to
generate the cross-answers. IOW, be able to run both switches, meaning "use
cross-answers, but if you can't find an answer in the cross-answers file,
use the cross-execute to find the answer and feed that into the
cross-answers file".
This way a developer can run the combined mode against a running target
only when there's reason to believe that the answers have changed, but use
cross-answers for production build.
Uri
On Sun, May 3, 2015 at 9:57 AM, Stefan (metze) Metzmacher <metze at samba.org>
wrote:
> Hi Uri,
>
> > Well, it seems the approach I took with this patch is not the correct
> one,
> > because some tests depend on
> > results of previous tests.
> > This dependency comes in two flavors:
> > 1. Test B runs only if test A failed - it's in the logic of the test
> script
> > (e.g. test for "-D_FILE_OFFSET_BITS=64" only runs if test for native
> large
> > file support fails)
> > 2. A more subtle one - test A success sets a compilation flag (e.g. large
> > file file support), which alters the compilation of test B (e.g. fcntl
> > locking)
> >
> > The approach of the patch was to run configure to completion and then run
> > all tests on the target - given the above it cannot work.
> >
> > The only rigorous approach is either to stop configuration when an
> unknown
> > value is detected, or to automatically run the test on the target (e.g.
> via
> > a script supplied to configure) and continue.
>
> That sounds like the --cross-execute= option...
> or do you have something different in mind?
>
> metze
>
>
More information about the samba-technical
mailing list