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

Replace enable-debugging-macro with shell script

parent a6cfd593
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -66,11 +66,6 @@ stages:
    echo "Commit time was $CI_COMMIT_TIMESTAMP"
    ("echo 'System time is'", "Get-Date -Format 'dddd dd/MM/yyyy HH:mm K'") | Invoke-Expression

.enable-debugging-macro: &enable-debugging-macro
# 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

.get-basop-float-reference: &get-basop-float-reference
  - git clone -b $BASOP_REFERENCE_BRANCH https://forge.3gpp.org/rep/sa4/audio/ivas-basop.git --single-branch --depth 1 ivas-basop
  - cd ivas-basop
@@ -1680,7 +1675,7 @@ check-clipping:
      - 123
  script:
    - bash "$CI_PROJECT_DIR"/.gitlab-ci/snippets/print-common-info.sh
    - *enable-debugging-macro
    - bash "$CI_PROJECT_DIR"/.gitlab-ci/snippets/enable-debugging-macro.sh
    - make -j
    - tests/scale_pcm.py ./scripts/testv/ $SCALE_FACTOR # Default: 3.162 (+10 dB). Can be set in manual trigger.
    - python3 -m pytest $TESTS_DIR_CODEC_BE_ON_MR -v --update_ref 1 --html=report.html --self-contained-html --junit-xml=report-junit.xml --ref_encoder_path ./IVAS_cod --ref_decoder_path ./IVAS_dec
+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