From f694a63cc0539eb7cd0895d37dd7b3795fcb5c10 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Fri, 29 Apr 2022 09:35:14 +0300 Subject: [PATCH] [CI] Fix parallel test execution and rename KVZ_TEST_VALGRIND to UVG_TEST_VALGRIND --- .gitlab-ci.yml | 6 +++--- tests/util.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ecb33349..fb7904db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,8 +8,8 @@ test-kvazaar: &test-template - bash .travis-install.bash - export PATH="${HOME}/bin:${PATH}" - cmake -DUSE_SHARED_LIB=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - - make install --jobs=8 - - env CTEST_OUTPUT_ON_FAILURE=1 make test --jobs=8 + - make install + - env CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test artifacts: paths: - bin/uvg266 @@ -41,7 +41,7 @@ test-ubsan: test-valgrind: <<: *test-template variables: - KVZ_TEST_VALGRIND: 1 + UVG_TEST_VALGRIND: 1 # TODO: If someone knows YAML better, there has to be some better way to # concatenate stuff into the test-template script than just manually copy diff --git a/tests/util.sh b/tests/util.sh index f765209d..91035ca0 100644 --- a/tests/util.sh +++ b/tests/util.sh @@ -36,9 +36,9 @@ valgrind_test() { prepare "${dimensions}" "${frames}" "${format}" - # If $KVZ_TEST_VALGRIND is defined and equal to "1", run the test with + # If $UVG_TEST_VALGRIND is defined and equal to "1", run the test with # valgrind. Otherwise, run without valgrind. - if [ "${KVZ_TEST_VALGRIND:-0}" = '1' ]; then + if [ "${UVG_TEST_VALGRIND:-0}" = '1' ]; then valgrind='valgrind --leak-check=full --error-exitcode=1 --' else valgrind=''