Commit eb57e18b authored by norvell's avatar norvell
Browse files

Enable DEBUGGING in encoder log job

parent e0683947
Loading
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ variables:
  LONG_TEST_SUITE: "tests/codec_be_on_mr_nonselection tests/renderer --param_file scripts/config/self_test_ltv.prm --use_ltv"
  SHORT_TEST_SUITE: "tests/codec_be_on_mr_nonselection"
  TEST_SUITE: ""
  DEBUGGING: ""
  DUT_ENCODER_PATH: "./IVAS_cod"
  DUT_DECODER_PATH: "./IVAS_dec"
  REF_ENCODER_PATH: "./IVAS_cod_ref"
@@ -116,6 +117,9 @@ stages:
  ### build reference binaries
  - git checkout $REFERENCE_BRANCH
  - git pull
  - if [ $DEBUGGING == "1" ];then
  -    *enable-debugging
  - fi
  - make clean
  - make -j
  - mv ./IVAS_cod ./$REF_ENCODER_PATH
@@ -125,9 +129,18 @@ stages:
  ### build test binaries
  - git restore .
  - git checkout $current_commit_sha
  - if [ $DEBUGGING == "1" ];then
  -    *enable-debugging
  - fi
  - make clean
  - make -j

.enable-debugging: &enable-debugging
  - 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
  - sed -i.bak -e "s/\/\*\ *\(#define\ *DEBUG_MODE_INFO\ *\)\*\//\1/g" lib_com/options.h
  - sed -i.bak -e "s/\/\/\ *\(#define\ *DEBUG_MODE_INFO\ *\)/\1/g" lib_com/options.h

.build-and-create-reference-outputs: &build-and-create-reference-outputs
  - *build-reference-and-dut-binaries

@@ -790,6 +803,7 @@ encoder-parameter-log-test:
  script:
    - *print-common-info
    - *update-scripts-repo
    - DEBUGGING="1"
    - *build-reference-and-dut-binaries
    - exit_code_ref=0
    - exit_code_dut=0