From a7ea4a7783011ab410ae8f6881e857e169e0a8e8 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Thu, 12 Jan 2023 15:54:02 +0000 Subject: [PATCH] Include tests when using QEMU (#288) * Include tests when using QEMU * Also add `set -e` so we fail when tests fail --- scripts/run_integration.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/run_integration.sh b/scripts/run_integration.sh index 8376360..3f84e12 100755 --- a/scripts/run_integration.sh +++ b/scripts/run_integration.sh @@ -329,10 +329,15 @@ function run_test() { RUN_CMD="${QEMU_INSTALL}/bin/qemu-${QEMU_ARCH} ${QEMU_ARGS[*]}" cd "${BUILD_DIR}" || exit 2 + declare -a TEST_BINARIES=() + TEST_BINARIES+=($(find "${BUILD_DIR}"/test -executable -type f)) + TEST_BINARIES+=($(find "${BUILD_DIR}" -maxdepth 1 -executable -type f)) set -x - for test_binary in "${BUILD_DIR}"/list_cpu_feature* ; do + set -e + for test_binary in ${TEST_BINARIES[*]} ; do ${RUN_CMD} "${test_binary}" done + set +e set +x }