# template for test jobs on linux that need the TESTV_DIR
.test-job-linux-needs-testv-dir:
extends:.test-job-linux
before_script:
-if [ ! -d "$TESTV_DIR" ]; then mkdir -p $TESTV_DIR; fi
-cp -r scripts/testv/* $TESTV_DIR/
@@ -75,7 +79,7 @@ build-codec-sanitizers-linux:
# test that runs all modes with 1s input signals
codec-smoke-test:
extends:.test-job-linux
extends:.test-job-linux-needs-testv-dir
rules:
-if:$CI_PIPELINE_SOURCE == 'merge_request_event'
stage:test
@@ -104,8 +108,8 @@ self-test-on-merge-request:
-cd ..
-rm -rf build/*
### backup testvectors from source branch before switching to arget branch -> makes sure that up-to-date testv folder is used in case the branch makes changes to it
-cp -r scripts/testv scripts/testv.bak
### store the current commit hash
-source_branch_commit_sha=$(git rev-parse HEAD)
### checkout version to compare against
# first delete local target branch to avoid conflicts when branch is cached and there are merge conflicts during fetching
@@ -126,10 +130,8 @@ self-test-on-merge-request:
-mv IVAS_dec ../IVAS_dec_ref
-cd ..
# TODO: instead check out the source commit again
### restore testv folder from branch
-rm -rf scripts/testv
-cp -r scripts/testv.bak scripts/testv
### re-checkout the commit from the source branch to have up-to-date self_test.py and scripts/testv (and actually everything)