diff options
author | Joey Hess <joey@kitenet.net> | 2013-03-17 16:15:06 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-03-17 16:15:06 -0400 |
commit | c6b2671217ceba031664e5c5ad914f1c92f624c5 (patch) | |
tree | 8d4e95f0208d41402285e9da6111a4592849c2ac /dh_auto_test | |
parent | 28bf03d222bd5c7b5e3e68db42b29d81ea7ae681 (diff) |
dh_auto_test: Avoid doing anything when cross-compiling. Closes: #703262
Diffstat (limited to 'dh_auto_test')
-rwxr-xr-x | dh_auto_test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dh_auto_test b/dh_auto_test index 9d3fd93c..01dc5df5 100755 --- a/dh_auto_test +++ b/dh_auto_test @@ -47,9 +47,13 @@ B<dh_auto_test> usually passes. If the B<DEB_BUILD_OPTIONS> environment variable contains B<nocheck>, no tests will be performed. +dh_auto_test does not run the test suite when a package is being cross +compiled. + =cut -if (get_buildoption("nocheck")) { +if (get_buildoption("nocheck") + || (dpkg_architecture_value("DEB_HOST_GNU_TYPE") ne dpkg_architecture_value("DEB_BUILD_GNU_TYPE"))) { exit 0; } |