From 8ba83e8939c0eea6b22ab1ae853635782ce82a46 Mon Sep 17 00:00:00 2001 From: Anton Bondarenko Date: Mon, 17 Feb 2025 11:15:12 +0100 Subject: [PATCH] Make sure positive CPU feature test crash detected When adding negative tests a potential crash from positive one got masked. Enforce exit from a test script for positive test crash. Signed-off-by: Anton Bondarenko --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d6fc4e2d..7a4653e0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -274,7 +274,7 @@ test-linux-aarch64: - if [ ! -f /opt/devtools/linux-rootfs.img ]; then tar xJf /opt/devtools/linux-rootfs.img.xz; fi - > echo "#!/bin/bash - set -x + set -ex echo '==================================================' echo '== START ==' echo '==================================================' @@ -441,7 +441,7 @@ test-linux-aarch64-v8only-fvp: - | echo -e "#\!/bin/bash -ex" > run_tests.sh echo -e "echo \"Perform a positive test where advanced instructions feature detected\"" >> run_tests.sh - echo "./build-clang/kleidiai_test --gtest_output=xml:kleidiai-${CI_JOB_NAME_SLUG}.xml --gtest_brief=1" >> run_tests.sh + echo "./build-clang/kleidiai_test --gtest_output=xml:kleidiai-${CI_JOB_NAME_SLUG}.xml --gtest_brief=1 || exit 1" >> run_tests.sh echo -e "echo \"Perform a negative test with illegal instructions\"" >> run_tests.sh for EXAMPLE in `ls -1 build`; do echo -e "echo \"Run ${EXAMPLE}\"\n./build/${EXAMPLE} || true" >> run_tests.sh -- GitLab