diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c3800a2a774a337156d0d92d8f7f7a8d98e2a1c..61b1d72dd9412c83720bfcc89adb896d9ce3c11e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -148,10 +148,10 @@ test-examples: script: - > for EXAMPLE in `ls build -1`; do + [[ $EXAMPLE == *sme* ]] && continue echo "-----------------------------------------------------------" echo "Run ${EXAMPLE}" echo "-----------------------------------------------------------" - [[ $EXAMPLE == *sme* ]] && continue build/${EXAMPLE} | tee -a example_${EXAMPLE}.log done artifacts: @@ -495,6 +495,31 @@ test-linux-aarch64-sme1only-fvp: reports: junit: kleidiai-${CI_JOB_NAME_SLUG}.xml +test-examples-sme-fvp: + extends: + - .standard-rules + stage: test + needs: + - build-examples + script: + - | + echo -e "#\!/bin/bash -ex" | tee run_tests.sh + for EXAMPLE in `ls -1 build`; do + [[ $EXAMPLE == *sme* ]] || continue + echo "-----------------------------------------------------------" | tee run_tests.sh + echo "Run ${EXAMPLE}" | tee run_tests.sh + echo "-----------------------------------------------------------" | tee run_tests.sh + echo -e "echo \"Run ${EXAMPLE}\"\n./build/${EXAMPLE} | tee -a example_${EXAMPLE}.log" | tee run_tests.sh + done + chmod a+x run_tests.sh + - FVP_TEST_EXECUTABLE="./run_tests.sh" + - *test-linux-fvp + artifacts: + expire_in: 1 day + paths: + - "example_*.log" + + coverage: extends: - .standard-rules