From ef24de24a82fe681581cc130f342363c47c0969a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jun 2024 07:48:48 +0200 Subject: Merging upstream version 1.75.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/packed_simd/ci/test-runner-linux | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 vendor/packed_simd/ci/test-runner-linux (limited to 'vendor/packed_simd/ci/test-runner-linux') diff --git a/vendor/packed_simd/ci/test-runner-linux b/vendor/packed_simd/ci/test-runner-linux new file mode 100755 index 000000000..0654f63bf --- /dev/null +++ b/vendor/packed_simd/ci/test-runner-linux @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +arch=$1 +prog=$2 + +cd /qemu/init +cp -f $2 prog +find . | cpio --create --format='newc' --quiet | gzip > ../initrd.gz +cd .. + +timeout 30s qemu-system-$arch \ + -m 1024 \ + -nographic \ + -kernel kernel \ + -initrd initrd.gz \ + -append init=/prog > output || true + +# remove kernel messages +tr -d '\r' < output | egrep -v '^\[' + +# if the output contains a failure, return error +! grep FAILED output > /dev/null -- cgit v1.2.3