[PATCH v2 0/3] Waf: Semi-automatic generation of results for cross-answers files
abartlet at samba.org
Sun May 3 20:14:49 MDT 2015
On Mon, 2015-05-04 at 00:38 +0300, Uri Simchoni wrote:
> This patchset automates the generation of cross-answers file for cross-compiling
> samba. It takes a different approach than the first version of the patch,
> namely that instead of cacheing the built tests and run them later in one
> batch, it runs each test immediately using the cross-execute parameter.
> Typical workflow:
> 1. ./configure --cross-compile --cross-answers=<ca_file> --cross-execute=<cross-execute-script>
> - ca_file is name of the partially-filled or non-existant cross-answers file.
> - cross-execute is a script that runs the test on the target
> - Note the simultaneous activation of both --cross-answers and --cross-execute.
> This combination activates the new mode.
> 2. Copy the resulting ca_file into someplace safe - this can be used
> later during production building.
> 3. Run production builds only with --cross-answers only - no link to the
> target is required.
> Requirements of the cross-execute script:
> A sample script that copies the files using rsync and then runs the test using telnet
> is supplied.
> This is not bullet-proof - two tests relating to shared libraries also required
> copying a built shared library to the target, and hence fail. However, it is still
> an improvement over the current state of having to guess the result of 30-odd tests
> or manually run them.
Thanks for all your efforts on this. To ensure this doesn't bitrot, we
need a patch to autobuild.py, that uses this new mode, somehow
cross-compiling Samba for it's own arch.
Also, is there any reason why the sample should use telnet, not ssh?
Finally, the # comments need some stylistic improvement in the the first
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba-technical