Commit b748715d authored by Fabian Müller's avatar Fabian Müller
Browse files

Replace copy-ltv-files-to-testv-dir with shell script

parent 2bb41991
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -170,11 +170,6 @@ stages:
.check-commits-behind-count-in-compare-jobs: &check-commits-behind-count-in-compare-jobs
  - if [ $commits_behind_count -ne 0 ]; then echo "Your branch is not up-to-date with main -> Compare tests will not run as they can contain false negatives this way.\nMain might have changed during your pipeline run. Run 'git merge origin/main' to update."; exit 1; fi

.copy-ltv-files-to-testv-dir: &copy-ltv-files-to-testv-dir
    - cp "$LTV_DIR"/*.wav scripts/testv/
    - cp "$LTV_DIR"/*.met scripts/testv/
    - cp "$LTV_DIR"/*.csv scripts/testv/

.copy-ltv-files-to-testv-dir-win: &copy-ltv-files-to-testv-dir-win
    - cp $LTV_DIR_WIN\*.wav scripts\testv
    - cp $LTV_DIR_WIN\*.met scripts\testv
@@ -193,7 +188,7 @@ stages:
.sanitizer-selftest-anchor:
  script:
    - bash "$CI_PROJECT_DIR"/.gitlab-ci/snippets/print-common-info.sh
    - bash .gitlab-ci/snippets/copy-ltv-files-to-testv-dir.sh
    - bash "$CI_PROJECT_DIR"/.gitlab-ci/snippets/copy-ltv-files-to-testv-dir.sh
    - make clean
    - make -j CLANG=$CLANG_NUM
    - testcase_timeout=$SELFTEST_SANITY_TIMEOUT
@@ -431,7 +426,7 @@ branch-is-up-to-date-with-main-post:
    - python3 scripts/prepare_combined_format_inputs.py

    - *update-ltv-repo
    - *copy-ltv-files-to-testv-dir
    - bash "$CI_PROJECT_DIR"/.gitlab-ci/snippets/copy-ltv-files-to-testv-dir.sh

    - *get-basop-float-reference

@@ -1664,7 +1659,7 @@ test-long-self-test:
    ### prepare pytest

    # Copy test vectors from LTV to TESTV
    - *copy-ltv-files-to-testv-dir
    - bash "$CI_PROJECT_DIR"/.gitlab-ci/snippets/copy-ltv-files-to-testv-dir.sh

    # create references
    - exit_code_ref=0
@@ -2356,7 +2351,7 @@ coverage-test-on-main-scheduled:
  script:
    - bash "$CI_PROJECT_DIR"/.gitlab-ci/snippets/print-common-info.sh
    - *update-ltv-repo
    - *copy-ltv-files-to-testv-dir
    - bash "$CI_PROJECT_DIR"/.gitlab-ci/snippets/copy-ltv-files-to-testv-dir.sh
    - make GCOV=1 -j
    - cp IVAS_rend IVAS_rend_ref # Copy exec to be able to run renderer script

+9 −0
Original line number Diff line number Diff line
#! /bin/bash

set -euo pipefail

cd "${CI_PROJECT_DIR}"

cp "$LTV_DIR"/*.wav scripts/testv/
cp "$LTV_DIR"/*.met scripts/testv/
cp "$LTV_DIR"/*.csv scripts/testv/