autotest: enable usage of EXEEXT in AT_TESTED
commit851ef517963d1e1966c4082530d5e87ba0a415ab
authorPaolo Bonzini <bonzini@gnu.org>
Fri, 7 Dec 2012 13:00:19 +0000 (7 14:00 +0100)
committerPaolo Bonzini <bonzini@gnu.org>
Sat, 22 Dec 2012 14:34:50 +0000 (22 15:34 +0100)
treec15a67d0ee426965dbeccf4ee93f24b4ea34946e
parentd902536845bd2dffed6ce7a4d7bde8feb012ea83
autotest: enable usage of EXEEXT in AT_TESTED

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).

* tests/autotest.at (AT_INIT): Expand contents of $at_tested.
(AT_TESTED): Quote each program that is passed to the function.
* lib/autotest/general.m4 (C unit tests): Add AT_TESTED invocation
and keyword.
* doc/autoconf.texi (Writing testsuites): Document usage of variables
in AT_TESTED.
* NEWS: Document change.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
NEWS
doc/autoconf.texi
lib/autotest/general.m4
tests/autotest.at