Files
winf-photobooth/support/testing/tests/package/test_opus_tools.py
Michael b8783708ae Initial Commit
- initial default booting image
2026-11-06 20:45:42 +01:00

19 lines
538 B
Python

from tests.package.test_audio_codec_base import TestAudioCodecBase
class TestOpusTools(TestAudioCodecBase):
__test__ = True
config = TestAudioCodecBase.config + \
"""
BR2_PACKAGE_OPUS_TOOLS=y
"""
encoded_file = "encoded.opus"
def encode_test(self, input_filename):
cmd = f"opusenc {input_filename} {self.encoded_file}"
self.assertRunOk(cmd)
def decode_test(self, output_filename):
cmd = f"opusdec {self.encoded_file} {output_filename}"
self.assertRunOk(cmd)