From 08126de5f28ed9bc5915fc59bf8c4853b3194161 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 17 Oct 2023 22:30:00 +0200 Subject: [PATCH] tests: add another test for abuild deps Test that passing only `CHOST=... abuild deps` works as expected --- tests/abuild_test | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/abuild_test b/tests/abuild_test index 4d183ac..60b09d0 100755 --- a/tests/abuild_test +++ b/tests/abuild_test @@ -1125,4 +1125,13 @@ abuild_deps_body() { -e match:'apk add .*--arch s390x.*hostdep' \ -e not-match:'apk add.*checkdep' \ abuild deps + + # crosscompile, set only CHOST + CHOST='armhf' atf_check \ + -e match:'apk add.*builddep' \ + -e not-match:'apk add.*--root.*builddep' \ + -e match:'apk add.*--root.*--arch armhf.*hostdep' \ + -e not-match:'apk add.*--arch armhf.*builddep' \ + abuild deps + }