Source: meson Version: 0.58.1-1 Tags: patch The autopkgtest "crossbuild" is always skipped. It starts with checking whether a command g++-arm-linux-gnueabhihf exists and exits 0 when it doesn't. That command never exists as it is called arm-linux-gnueabhihf-g++. Also exit code 0 is wrong. A skip should use exit code 77. An easier solution anyhow is using the skip-not-installable restriction. Please consider applying the attached patch.
Helmut
diff --minimal -Nru meson-0.58.1/debian/changelog meson-0.58.1/debian/changelog --- meson-0.58.1/debian/changelog 2021-06-07 19:36:31.000000000 +0200 +++ meson-0.58.1/debian/changelog 2021-06-14 07:45:09.000000000 +0200 @@ -1,3 +1,10 @@ +meson (0.58.1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Make the crossbuild test actually test something. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 14 Jun 2021 07:45:09 +0200 + meson (0.58.1-1) experimental; urgency=medium * New upstream release. diff --minimal -Nru meson-0.58.1/debian/tests/control meson-0.58.1/debian/tests/control --- meson-0.58.1/debian/tests/control 2021-02-14 13:58:40.000000000 +0100 +++ meson-0.58.1/debian/tests/control 2021-06-14 07:45:09.000000000 +0200 @@ -12,4 +12,5 @@ Depends: meson, @builddeps@, valac, rustc, ldc [!s390x !ppc64el] Tests: crossbuild -Depends: meson, g++, g++-arm-linux-gnueabihf [!s390x] +Depends: meson, g++, g++-arm-linux-gnueabihf +Restrictions: skip-not-installable diff --minimal -Nru meson-0.58.1/debian/tests/crossbuild meson-0.58.1/debian/tests/crossbuild --- meson-0.58.1/debian/tests/crossbuild 2021-02-14 13:58:40.000000000 +0100 +++ meson-0.58.1/debian/tests/crossbuild 2021-06-14 07:45:09.000000000 +0200 @@ -2,11 +2,6 @@ set -e -if ! which g++-arm-linux-gnueabihf > /dev/null 2> /dev/null; then - echo Arm cross compiler not found, not running test. - exit 0 -fi - cd "${AUTOPKGTEST_TMP:-/tmp}" mkdir testproject cd testproject