Commit 1f074257 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

Merge branch '905-running-self-test-without-debugging-macro' of...

Merge branch '905-running-self-test-without-debugging-macro' of https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec into 905-running-self-test-without-debugging-macro
parents ee01877a 36fe16ad
Loading
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -93,16 +93,19 @@ stages:
  # needed when depth is lower than the number of commits in the branch
  - git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME:$CI_MERGE_REQUEST_TARGET_BRANCH_NAME

.mr-get-target-commit:
  &mr-get-target-commit # compare to last target branch commit before pipeline was created
.mr-get-target-commit: &mr-get-target-commit # compare to last target branch commit before pipeline was created
  - target_commit=$(git log $CI_MERGE_REQUEST_TARGET_BRANCH_NAME -1 --oneline --before=${CI_PIPELINE_CREATED_AT} --format=%H)

.check-for-testvectors:
  &check-for-testvectors # check if the testvector files specified in scripts/config/ci_linux*.json are present
.check-for-testvectors: &check-for-testvectors # check if the testvector files specified in scripts/config/ci_linux*.json are present
  - python3 -m pytest ci/test_vectors_available.py

.merge-request-comparison-setup-codec:
  &merge-request-comparison-setup-codec ### build test binaries, initial clean for paranoia reasons
.disable-debugging-macro: &disable-debugging-macro
# automatically disable #DEBUGGING macro in options.h using /**/-comment
  - sed -i.bak -e "s/^[[:space:]]*\(#define[[:space:]]*DEBUGGING\)/\/\*\1\*\//g" lib_com/options.h

.merge-request-comparison-setup-codec: &merge-request-comparison-setup-codec 
  ### build test binaries, initial clean for paranoia reasons
  - *disable-debugging-macro
  - make clean
  - mkdir build
  - cd build
@@ -119,11 +122,11 @@ stages:

  ### checkout version to compare against
  - *mr-fetch-target-branch

  - *mr-get-target-commit
  - git checkout $target_commit

  ### build reference binaries
  - *disable-debugging-macro
  - cd build
  - cmake ..
  - make -j