From d228ecdbe7cb4b87861dc38c57d953f6d3b3c8e9 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Sat, 20 Sep 2025 08:13:06 +0200 Subject: [PATCH] Fix test.sh to work on all distributions and newer QEMU --- tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.sh b/tests.sh index d540a54..a5e43f6 100755 --- a/tests.sh +++ b/tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Runs a series of sample programs in QEMU and checks that the standard output # is as expected. @@ -66,7 +66,7 @@ done # These tests only run on QEMU 9 or higher. # Ubuntu 24.04 supplies QEMU 8, which doesn't support the machine we have configured for this target -if qemu-system-arm --version | grep "version 9"; then +if qemu-system-arm --version | grep "version \(9\|10\)"; then # armv8r-none-eabihf tests for bin_path in $(ls examples/mps3-an536/src/bin/*.rs); do filename=${bin_path##*/}