Commit 9b064ce8 authored by Jan Kiene's avatar Jan Kiene
Browse files

cleanup: remove script and put content into yaml directly

was only used at one place anyway
parent 4179737c
Loading
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -371,7 +371,21 @@ workflow:
    - if [ "$DELTA_ODG" = "true" ]; then comp_args="${comp_args} --odg_bin"; MEASURES_FOR_REPORT="$MEASURES_FOR_REPORT DELTA_ODG"; fi
    - if [ "$SPLIT_COMPARISON" = "true" ]; then comp_args="${comp_args} --split-comparison"; fi

    - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/build-and-create-float-ref-outputs.sh
    - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/build-binaries.sh float-ref
    - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/build-binaries.sh dut
    - python3 tests/create_short_testvectors.py

    - enc_stats_arg=""
    - |
      if [ "$ENCODER_TEST" = "true" ]; then
          enc_stats_arg="--enc_stats"
      fi
    - enc_dmx_arg=""
    - |
      if [ "$COMPARE_DMX" = "true" ]; then
        enc_dmx_arg="--compare_enc_dmx"
      fi
    - python3 -m pytest $TEST_SUITE --update_ref 1 $enc_stats_arg $enc_dmx_arg --create_ref -n auto --ref_encoder_path $REF_ENCODER_PATH --ref_decoder_path $REF_DECODER_PATH --dut_encoder_path $DUT_ENCODER_PATH --dut_decoder_path $DUT_DECODER_PATH || true

    # DMX comparison only in manual job with no other metrics
    - if [ "$COMPARE_DMX" = "true" ]; then
+0 −28
Original line number Diff line number Diff line
#! /bin/bash

set -euxo pipefail

cd "${CI_PROJECT_DIR}"

bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/build-binaries.sh float-ref

bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/build-binaries.sh dut

### prepare pytest
# create short test vectors
python3 tests/create_short_testvectors.py

# create references
exit_code=0

enc_stats_arg=""
if [ "$ENCODER_TEST" = "true" ]; then
  enc_stats_arg="--enc_stats"
fi

enc_dmx_arg=""
if [ "$COMPARE_DMX" = "true" ]; then
  enc_dmx_arg="--compare_enc_dmx"
fi

python3 -m pytest $TEST_SUITE --update_ref 1 $enc_stats_arg $enc_dmx_arg --create_ref -n auto --ref_encoder_path $REF_ENCODER_PATH --ref_decoder_path $REF_DECODER_PATH --dut_encoder_path $DUT_ENCODER_PATH --dut_decoder_path $DUT_DECODER_PATH || exit_code=$?