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

Move snippets from ivas-codec

parent 1039ebd1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
#! /bin/bash

set -euo pipefail

cd "${CI_PROJECT_DIR}"

exec python3 -m pytest ci/test_vectors_available.py
+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/
+8 −0
Original line number Diff line number Diff line
#! /bin/bash

set -euo pipefail

cd "${CI_PROJECT_DIR}"

# automatically disable #DEBUGGING macro in options.h using /**/-comment
sed -i.bak -e "s/^[[:space:]]*\(#define[[:space:]]*DEBUGGING\)/\/\*\1\*\//g" lib_com/options.h
+9 −0
Original line number Diff line number Diff line
#! /bin/bash

set -euo pipefail

cd "${CI_PROJECT_DIR}"

# automatically enable #DEBUGGING macro in options.h using either /**/-comment or //-comment
sed -i.bak -e "s/\/\*\ *\(#define\ *DEBUGGING\ *\)\*\//\1/g" lib_com/options.h
sed -i.bak -e "s/\/\/\ *\(#define\ *DEBUGGING\ *\)/\1/g" lib_com/options.h
+10 −0
Original line number Diff line number Diff line
#! /bin/bash

set -euo pipefail

cd "${CI_PROJECT_DIR}"

echo "CI_COMMIT_SHA: ${CI_COMMIT_SHA}" 1>&2
echo "CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}" 1>&2

git rev-list --count "$CI_COMMIT_SHA"..origin/"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
Loading