Re: [PATCH 0/3] Autotest: improve testability of Windows programs under Wine

2012-12-22 Thread Paolo Bonzini
Il 16/12/2012 17:41, Stefano Lattarini ha scritto:
 Hi Paolo.
 
 I think the explanation that you've given in this cover letter, which
 illustrates the purpose of your patches in very clear way, should also
 be reported in the commit message(s) of the relevant changes, to help
 future developers understand the why behind these changes, without
 forcing them to peruse the list's archives.

Ok, I added that to the commit message of patch 3/3 and pushed the series.

Paolo




[PATCH 0/3] Autotest: improve testability of Windows programs under Wine

2012-12-16 Thread Paolo Bonzini
Together with Linux's binfmt-misc feature, Wine can be used to test
cross-compiled programs as if they were native.  However, the shell
will not perform the magic addition of the .exe extension after a
program name when searching for an executable.  These simple patches
let the user work around this by specifying $EXEEXT in the AT_CHECK
and AT_TESTED argument.  (More care is needed because of carriage
returns, but this is beyond the scope of this series).

Patch 1 is a simple improvement to the testsuite.  Patch 2 shows how
to write a test suite that runs a C program and works even in the above
scenario; it improve AC_CONFIG_TESTDIR by automatically passing EXEEXT
down to the testsuite.  Patch 3 finally adds support for AT_TESTED with
$EXEEXT in the argument.

Paolo Bonzini (3):
  autotest: annotate tests that use AC_CONFIG_TESTDIR
  autotest: add a simple test suite that runs a C program
  autotest: enable usage of EXEEXT in AT_TESTED

 NEWS |   5 ++
 doc/autoconf.texi|   6 +++
 lib/autoconf/autotest.m4 |   6 ++-
 lib/autoconf/lang.m4 |   2 +-
 lib/autotest/general.m4  |   4 +-
 tests/autotest.at| 118 +++
 6 files changed, 137 insertions(+), 4 deletions(-)

-- 
1.8.0.1