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 }