From bfc646ee8b8a763c6192993ba3b725516e9c662f Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Thu, 28 Apr 2022 22:09:45 +0300 Subject: [PATCH] [CI] Verbose test output in gitlab-ci and fix the working directory of test --- .gitlab-ci.yml | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4d071529..f21aba7a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,7 @@ test-kvazaar: &test-template - export PATH="${HOME}/bin:${PATH}" - cmake -DUSE_SHARED_LIB=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false) - make install --jobs=8 - - make check --jobs=8 VERBOSE=1 + - env CTEST_OUTPUT_ON_FAILURE=1 make test --jobs=8 artifacts: paths: - bin/uvg266 diff --git a/CMakeLists.txt b/CMakeLists.txt index 969b6289..af82625c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,5 +142,5 @@ if(EXISTS "${PROJECT_SOURCE_DIR}/greatest/greatest.h") endif() if(NOT DEFINED MSVC) - add_test( NAME external_symbols COMMAND ${PROJECT_SOURCE_DIR}/tests/test_external_symbols.sh) + add_test( NAME external_symbols COMMAND ${PROJECT_SOURCE_DIR}/tests/test_external_symbols.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests) endif() \ No newline at end of file