From b0a5bcda3bf51af579795ffe76342eff87872c0b Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Thu, 28 Apr 2022 22:14:11 +0300 Subject: [PATCH] [CI] Add some actual tests to CMakeLists.txt and fix tests/util.sh --- CMakeLists.txt | 6 ++++++ tests/util.sh | 9 ++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af82625c..280842fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,4 +143,10 @@ endif() if(NOT DEFINED MSVC) add_test( NAME external_symbols COMMAND ${PROJECT_SOURCE_DIR}/tests/test_external_symbols.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests) + add_test( NAME test_intra COMMAND ${PROJECT_SOURCE_DIR}/tests/test_intra.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests) + add_test( NAME test_invalid_input COMMAND ${PROJECT_SOURCE_DIR}/tests/test_invalid_input.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests) + add_test( NAME test_monochrome COMMAND ${PROJECT_SOURCE_DIR}/tests/test_monochrome.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests) + add_test( NAME test_lmcs COMMAND ${PROJECT_SOURCE_DIR}/tests/test_lmcs.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests) + add_test( NAME test_tools COMMAND ${PROJECT_SOURCE_DIR}/tests/test_tools.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests) + add_test( NAME test_slices COMMAND ${PROJECT_SOURCE_DIR}/tests/test_slices.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests) endif() \ No newline at end of file diff --git a/tests/util.sh b/tests/util.sh index 9658837a..f765209d 100644 --- a/tests/util.sh +++ b/tests/util.sh @@ -47,8 +47,8 @@ valgrind_test() { # No quotes for $valgrind because it expands to multiple (or zero) # arguments. print_and_run \ - ../libtool execute $valgrind \ - ../src/kvazaar -i "${yuvfile}" "--input-res=${dimensions}" -o "${vvcfile}" "$@" + $valgrind \ + ../bin/uvg266 -i "${yuvfile}" "--input-res=${dimensions}" -o "${vvcfile}" "$@" print_and_run \ DecoderAppStatic -b "${vvcfile}" @@ -69,9 +69,8 @@ encode_test() { prepare "${dimensions}" "${frames}" "${format}" set +e - print_and_run \ - ../libtool execute \ - ../src/kvazaar -i "${yuvfile}" "--input-res=${dimensions}" -o "${vvcfile}" "$@" + print_and_run \ + ../bin/uvg266 -i "${yuvfile}" "--input-res=${dimensions}" -o "${vvcfile}" "$@" actual_status="$?" set -e [ ${actual_status} -eq ${expected_status} ]