Commit 526f8106 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[tests] move renderer tests to tests/renderer in the root directory

- update CMakeLists.txt to copy IVAS_crend_unit_test to the same
  location as `make unittests` does
- update .gitlab-ci.yml accordingly
- update paths in the corresponding renderer pytest scripts
parent 5330b348
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -47,8 +47,8 @@ scripts/ref/
scripts/test/
scripts/out/
scripts/self_test_summary.txt
scripts/tests/cut/
scripts/tests/ref/
tests/renderer/cut
tests/renderer/ref
tests/dut
tests/ref

+2 −2
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ external-renderer-cmake-asan-pytest:
  stage: test
  script:
    - python3 ci/disable_ram_counting.py
    - cmake -B cmake-build -G "Unix Makefiles" -DCLANG=asan -DCOPY_EXECUTABLES_TO_ROOT=true
    - cmake -B cmake-build -G "Unix Makefiles" -DCLANG=asan -DCOPY_EXECUTABLES_FROM_BUILD_DIR=true
    - cmake --build cmake-build -- -j
    - python3 -m pytest scripts/tests/test_renderer.py -q --log-level ERROR -n auto

@@ -343,7 +343,7 @@ external-renderer-cmake-msan-pytest:
  stage: test
  script:
    - python3 ci/disable_ram_counting.py
    - cmake -B cmake-build -G "Unix Makefiles" -DCLANG=msan  -DCOPY_EXECUTABLES_TO_ROOT=true
    - cmake -B cmake-build -G "Unix Makefiles" -DCLANG=msan  -DCOPY_EXECUTABLES_FROM_BUILD_DIR=true
    - cmake --build cmake-build -- -j
    - python3 -m pytest scripts/tests/test_renderer.py -q --log-level ERROR -n auto

+2 −2
Original line number Diff line number Diff line
@@ -172,10 +172,10 @@ endif()
add_executable(IVAS_rend apps/renderer.c)
target_link_libraries(IVAS_rend lib_rend lib_util)

if(COPY_EXECUTABLES_TO_ROOT)
if(COPY_EXECUTABLES_FROM_BUILD_DIR)
  # Optionally copy executables to root directory after build
  add_custom_command(TARGET IVAS_cod POST_BUILD VERBATIM COMMAND "${CMAKE_COMMAND}" -E copy "$<TARGET_FILE:IVAS_cod>" "${CMAKE_CURRENT_SOURCE_DIR}/")
  add_custom_command(TARGET IVAS_dec POST_BUILD VERBATIM COMMAND "${CMAKE_COMMAND}" -E copy "$<TARGET_FILE:IVAS_dec>" "${CMAKE_CURRENT_SOURCE_DIR}/")
  add_custom_command(TARGET IVAS_rend POST_BUILD VERBATIM COMMAND "${CMAKE_COMMAND}" -E copy "$<TARGET_FILE:IVAS_rend>" "${CMAKE_CURRENT_SOURCE_DIR}/")
  add_custom_command(TARGET IVAS_crend_unit_test POST_BUILD VERBATIM COMMAND "${CMAKE_COMMAND}" -E copy "$<TARGET_FILE:IVAS_crend_unit_test>" "${CMAKE_CURRENT_SOURCE_DIR}/")
  add_custom_command(TARGET IVAS_crend_unit_test POST_BUILD VERBATIM COMMAND "${CMAKE_COMMAND}" -E copy "$<TARGET_FILE:IVAS_crend_unit_test>" "${CMAKE_CURRENT_SOURCE_DIR}/scripts/ivas_pytests/tests/unit_tests/crend/")
endif()
+0 −0

File moved.

+5 −0
Original line number Diff line number Diff line
@@ -26,10 +26,15 @@
   the United Nations Convention on Contracts on the International Sales of Goods.
"""

import sys
import warnings
from typing import Tuple

import numpy as np

from .constants import SCRIPTS_DIR

sys.path.append(str(SCRIPTS_DIR))
from pyaudio3dtools.audioarray import getdelay


Loading