1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 15:12:30 +02:00

Fix running tests

This commit is contained in:
Guillaume Chatelet 2019-01-17 15:04:14 +01:00
parent d724ac04fc
commit 1ee19cd683

View File

@ -97,18 +97,16 @@ function integrate() {
if [[ "${QEMU_ARCH}" == "DISABLED" ]]; then
return
fi
RUN_CMD=""
if [[ -n "${QEMU_ARCH}" ]]; then
installqemuifneeded
QEMU="${QEMU_INSTALL}/bin/qemu-${QEMU_ARCH} ${QEMU_ARGS}"
for test_binary in ${BUILD_DIR}/test/*_test; do
${QEMU} ${test_binary}
done
${QEMU} ${DEMO}
else
export CTEST_OUTPUT_ON_FAILURE=1
cmake --build "${BUILD_DIR}" ${CMAKE_TEST_ARGS}
${DEMO}
RUN_CMD="${QEMU_INSTALL}/bin/qemu-${QEMU_ARCH} ${QEMU_ARGS}"
fi
for test_binary in ${BUILD_DIR}/test/*_test; do
${RUN_CMD} ${test_binary} &
done
wait -n
${RUN} ${DEMO}
}
function expand_linaro_config() {