Commit ea6586d4 authored by kinuthia's avatar kinuthia
Browse files

test ref generation for all tests

- end, dec (including head rotation, render_conf)
parent 8b5f6c2c
Loading
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -1177,7 +1177,32 @@ test-be-to-release:
    - $tmp=((Get-content logs/report-junit-dec-const_br-binaural.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]

    # decoder, head_rot
    - $zero_errors_dec_head_rot=0
    - ("& python -m pytest .\tests\codec_be_to_accepted_release\decoder\test_decoder_head_rotation.py --update_ref 1 --html=report-dec-head_rot.html --self-contained-html --junit-xml=logs/report-junit-dec-head_rot.xml --testcase_timeout 40 -n $NPROC | out-null") | Invoke-Expression
    - IF (!(Select-String logs/report-junit-dec-head_rot.xml -Pattern 'errors="0"')){$zero_errors_dec_head_rot=1; echo "Errors encountered"}

    - $tmp=((Get-content logs/report-junit-dec-head_rot.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]

    # decoder, non-diegetic
    - $zero_errors_dec_non_diegetic=0
    - ("& python -m pytest .\tests\codec_be_to_accepted_release\decoder\test_decoder_non_diegetic_pan.py --update_ref 1 --html=report-dec-non_diegetic.html --self-contained-html --junit-xml=logs/report-junit-dec-non_diegetic.xml --testcase_timeout 40 -n $NPROC | out-null") | Invoke-Expression
    - IF (!(Select-String logs/report-junit-dec-non_diegetic.xml -Pattern 'errors="0"')){$zero_errors_dec_non_diegetic=1; echo "Errors encountered"}

    - $tmp=((Get-content logs/report-junit-dec-non_diegetic.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]

    # decoder, render_conf
    - $zero_errors_dec_render_conf=0
    - ("& python -m pytest .\tests\codec_be_to_accepted_release\decoder\test_decoder_render_config.py --update_ref 1 --html=report-dec-render_conf.html --self-contained-html --junit-xml=logs/report-junit-dec-render_conf.xml --testcase_timeout 40 -n $NPROC | out-null") | Invoke-Expression
    - IF (!(Select-String logs/report-junit-dec-render_conf.xml -Pattern 'errors="0"')){$zero_errors_dec_render_conf1; echo "Errors encountered"}

    - $tmp=((Get-content logs/report-junit-dec-render_conf.xml) -split 'name="pytest" ')[1]
    - echo ($tmp -split -split 'timestamp="')[0]

    - IF($zero_errors_enc_const_br -ne 0 -or $zero_errors_dec_const_br_no_binaural -ne 0 -or $zero_errors_dec_const_br_binaural -ne 0 ) {echo "Errors encountered"; exit $EXIT_CODE_FAIL}
    - IF($zero_errors_dec_head_rot -ne 0 -or $zero_errors_dec_non_diegetic -ne 0 -or $zero_errors_dec_render_conf -ne 0 ) {echo "Errors encountered"; exit $EXIT_CODE_FAIL}

  artifacts:
    name: "test-be-to-release--sha-$CI_COMMIT_SHORT_SHA--results"