From 304bd234394460d8ceaf60df14f6a9e5e79d8d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Dalleau?= <frederic.dalleau@collabora.com> Date: Mon, 20 Aug 2018 10:21:26 +0000 Subject: [PATCH] Add a variable specifying arch-specific folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests can use it to locate architecture specific files Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.com> --- update-test-path | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/update-test-path b/update-test-path index c4a8e93..1766cbb 100644 --- a/update-test-path +++ b/update-test-path @@ -6,7 +6,10 @@ PATH=${TESTPATH}/common:${TESTPATH}/bin:$PATH # Path for architecture specific binaries case `uname -m` in -x86_64) PATH=${TESTPATH}/amd64/bin:$PATH; ;; -armv7l) PATH=${TESTPATH}/armhf/bin:$PATH; ;; -aarch64) PATH=${TESTPATH}/arm64/bin:$PATH; ;; +x86_64) ARCHDIR=amd64 ;; +armv7l) ARCHDIR=armhf ;; +aarch64) ARCHDIR=arm64 ;; esac + +PATH=${TESTPATH}/${ARCHDIR}/bin:$PATH + -- GitLab