From: Stefano Lattarini Date: Sat, 21 May 2011 08:59:53 +0000 (+0200) Subject: tests/README: suggest how to run tests in cross-compile mode X-Git-Tag: ng-0.5a~89^2~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=542a22a1b2f7b6328ce7d9e6892d85f2ae1646b7;p=thirdparty%2Fautomake.git tests/README: suggest how to run tests in cross-compile mode * tests/README (Section "User interface" subsection "Running the tests"): Briefly explain how to override 'host_alias' at runtime to force the use of cross-compilers by the testsuite. Give an example. --- diff --git a/ChangeLog b/ChangeLog index fd23cb9ef..587490a46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-21 Stefano Lattarini + + tests/README: suggest how to run tests in cross-compile mode + * tests/README (Section "User interface" subsection "Running the + tests"): Briefly explain how to override 'host_alias' at runtime + to force the use of cross-compilers by the testsuite. Give an + example. + 2011-05-21 Stefano Lattarini test defs: better detection of cross-compile mode diff --git a/tests/README b/tests/README index 29c964b6b..4d6bbf645 100644 --- a/tests/README +++ b/tests/README @@ -32,6 +32,19 @@ Running the tests env TESTS="foo.test bar.test" make -e -k check + To run the tests in cross-compilation mode: + + make -k check host_alias="$host_alias" (GNU make) + env host_alias="$host_alias" make -e -k check (non-GNU make) + + Here `$host_alias' should be defined to a proper value different from + configure-determined `$build_alias', and should refer to a set of + cross-compilers you have available on your system; for example, if + on Linux you have a set of MinGW-targeted cross-compilers named + 'i586-mingw32msvc-cc', 'i586-mingw32msvc-c++', etc., you could use: + + make -k check host_alias='i586-mingw32msvc' + Interpretation --------------