diff options
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; } |