Commit 153eb49a authored by Jan Kiene's avatar Jan Kiene
Browse files

add second test

parent 677ceb23
Loading
Loading
Loading
Loading
Loading
+30 −2
Original line number Diff line number Diff line
test_audiotools_convert:
variables:
  BIN_DIR: "/bin"
  CODEC_DIR: "/codec"


default:
  interruptible: true


# script anchor for updating the codec repo
.get-codec-binaries: &get-codec-binaries
  - dir=$(pwd)
  - cd $CODEC_DIR
  # make sure that we are at latest main
  - git pull
  # only builds if code has actually changed
  - make -j
  - cp IVAS_* ${dir}/
  - cd $dir


test_audiotools_convert:
  tags:
    - linux
  script:
    - python3 -m pytest -n auto tests/test_audiotools_convert.py


test_processing:
  tags:
    - linux
  script:
    - python3 -m pytest -q -n auto tests/test_audiotools_convert.py
    - *get-codec-binaries
    - python3 -m pytest -n auto tests/test_processing.py
+49 −0
Original line number Diff line number Diff line
#!/usr/bin/env python3

#
#  (C) 2022-2023 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB,
#  Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD.,
#  Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange,
#  Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other
#  contributors to this repository. All Rights Reserved.
#
#  This software is protected by copyright law and by international treaties.
#  The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB,
#  Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD.,
#  Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange,
#  Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other
#  contributors to this repository retain full ownership rights in their respective contributions in
#  the software. This notice grants no license of any kind, including but not limited to patent
#  license, nor is any license granted by implication, estoppel or otherwise.
#
#  Contributors are required to enter into the IVAS codec Public Collaboration agreement before making
#  contributions.
#
#  This software is provided "AS IS", without any express or implied warranties. The software is in the
#  development stage. It is intended exclusively for experts who have experience with such software and
#  solely for the purpose of inspection. All implied warranties of non-infringement, merchantability
#  and fitness for a particular purpose are hereby disclaimed and excluded.
#
#  Any dispute, controversy or claim arising under or in relation to providing this software shall be
#  submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in
#  accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and
#  the United Nations Convention on Contracts on the International Sales of Goods.
#

import pytest

from ivas_processing_scripts import main as generate_test
from tests.constants import INPUT_CONFIG_FILES


class Arguments:
    def __init__(self, config):
        self.config = config
        self.debug = True


@pytest.mark.parametrize("cfg", INPUT_CONFIG_FILES)
def test_generate_test_items(cfg):
    args = Arguments(cfg)

    generate_test(args)